struct idmap_methods {
/* Called when backend is first loaded */
- NTSTATUS (*init)(struct idmap_domain *dom, const char *params);
+ NTSTATUS (*init)(struct idmap_domain *dom);
/* Map an array of uids/gids to SIDs. The caller specifies
the uid/gid and type. Gets back the SID. */
goto fail;
}
- status = result->methods->init(result, params);
+ status = result->methods->init(result);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("idmap initialization returned %s\n",
nt_errstr(status)));
/************************************************************************
***********************************************************************/
-static NTSTATUS idmap_ad_initialize(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS idmap_ad_initialize(struct idmap_domain *dom)
{
struct idmap_ad_context *ctx;
char *config_option;
it will be dropped from the idmap backend list.
*******************************************************************/
-static NTSTATUS _idmap_adex_init(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS _idmap_adex_init(struct idmap_domain *dom)
{
ADS_STRUCT *ads = NULL;
ADS_STATUS status;
ids[i]->status = ID_UNKNOWN;
}
- nt_status = _idmap_adex_init(dom, NULL);
+ nt_status = _idmap_adex_init(dom);
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
ids[i]->status = ID_UNKNOWN;
}
- nt_status = _idmap_adex_init(dom, NULL);
+ nt_status = _idmap_adex_init(dom);
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
static NTSTATUS _nss_adex_init(struct nss_domain_entry
*e)
{
- return _idmap_adex_init(NULL, NULL);
+ return _idmap_adex_init(NULL);
}
/**********************************************************************
NTSTATUS nt_status;
struct likewise_cell *cell;
- nt_status = _idmap_adex_init(NULL, NULL);
+ nt_status = _idmap_adex_init(NULL);
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
struct likewise_cell *cell = NULL;
- nt_status = _idmap_adex_init(NULL, NULL);
+ nt_status = _idmap_adex_init(NULL);
BAIL_ON_NTSTATUS_ERROR(nt_status);
if ((cell = cell_list_head()) == NULL) {
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
struct likewise_cell *cell = NULL;
- nt_status = _idmap_adex_init(NULL, NULL);
+ nt_status = _idmap_adex_init(NULL);
BAIL_ON_NTSTATUS_ERROR(nt_status);
if ((cell = cell_list_head()) == NULL) {
return status;
}
-static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
{
struct autorid_global_config *config;
struct autorid_global_config *storedconfig = NULL;
/*********************************************************************
********************************************************************/
-static NTSTATUS be_init(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS be_init(struct idmap_domain *dom)
{
struct sid_hash_table *hashed_domains;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
ids[i]->status = ID_UNKNOWN;
}
- nt_status = be_init(dom, NULL);
+ nt_status = be_init(dom);
BAIL_ON_NTSTATUS_ERROR(nt_status);
if (!ids) {
ids[i]->status = ID_UNKNOWN;
}
- nt_status = be_init(dom, NULL);
+ nt_status = be_init(dom);
BAIL_ON_NTSTATUS_ERROR(nt_status);
if (!ids) {
static NTSTATUS nss_hash_init(struct nss_domain_entry *e )
{
- return be_init(NULL, NULL);
+ return be_init(NULL);
}
/**********************************************************************
static NTSTATUS idmap_ldap_set_mapping(struct idmap_domain *dom,
const struct id_map *map);
-static NTSTATUS idmap_ldap_db_init(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS idmap_ldap_db_init(struct idmap_domain *dom)
{
NTSTATUS ret;
struct idmap_ldap_context *ctx = NULL;
Initialise idmap database.
*****************************/
-static NTSTATUS idmap_nss_int_init(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS idmap_nss_int_init(struct idmap_domain *dom)
{
return NT_STATUS_OK;
}
Initialise idmap database.
*****************************/
-static NTSTATUS idmap_pdb_init(struct idmap_domain *dom, const char *params)
+static NTSTATUS idmap_pdb_init(struct idmap_domain *dom)
{
return NT_STATUS_OK;
}
we support multiple domains in the new idmap
*****************************************************************************/
-static NTSTATUS idmap_rid_initialize(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS idmap_rid_initialize(struct idmap_domain *dom)
{
NTSTATUS ret;
struct idmap_rid_context *ctx;
static NTSTATUS idmap_tdb_set_mapping(struct idmap_domain *dom,
const struct id_map *map);
-static NTSTATUS idmap_tdb_db_init(struct idmap_domain *dom, const char *params)
+static NTSTATUS idmap_tdb_db_init(struct idmap_domain *dom)
{
NTSTATUS ret;
struct idmap_tdb_context *ctx;
/*
Initialise idmap database.
*/
-static NTSTATUS idmap_tdb2_db_init(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS idmap_tdb2_db_init(struct idmap_domain *dom)
{
NTSTATUS ret;
struct idmap_tdb2_context *ctx;