s3:idmap: remove the params argument from the init function
authorMichael Adam <obnox@samba.org>
Wed, 2 Mar 2011 22:00:58 +0000 (23:00 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 22 Mar 2011 21:49:56 +0000 (22:49 +0100)
12 files changed:
source3/include/idmap.h
source3/winbindd/idmap.c
source3/winbindd/idmap_ad.c
source3/winbindd/idmap_adex/idmap_adex.c
source3/winbindd/idmap_autorid.c
source3/winbindd/idmap_hash/idmap_hash.c
source3/winbindd/idmap_ldap.c
source3/winbindd/idmap_nss.c
source3/winbindd/idmap_passdb.c
source3/winbindd/idmap_rid.c
source3/winbindd/idmap_tdb.c
source3/winbindd/idmap_tdb2.c

index 7b3d6decf2fe3ef977a6ebdb8201f62402fea369..800e69421dc5d9a7549d117c6824e18733b28cb7 100644 (file)
@@ -45,7 +45,7 @@ struct idmap_domain {
 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. */
index 94e164ef626a98256786ea2940f18db0a815fe34..a48f2e4f1aff020c7d47009436541e9401f20f36 100644 (file)
@@ -282,7 +282,7 @@ static struct idmap_domain *idmap_init_domain(TALLOC_CTX *mem_ctx,
                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)));
index 1984844d2a426ec3c2d6bf45b0bd6863d2695789..cf15f038ca0caf40cdaf7a022bc9844772d04ad7 100644 (file)
@@ -210,8 +210,7 @@ static int idmap_ad_context_destructor(struct idmap_ad_context *ctx)
 /************************************************************************
  ***********************************************************************/
 
-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;
index c8d616b4005771379580cb20f94216c93d3aa466..c13642e741a67976a6e991c76c222266c284181f 100644 (file)
@@ -42,8 +42,7 @@ NTSTATUS init_module(void);
  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;
@@ -168,7 +167,7 @@ static NTSTATUS _idmap_adex_get_sid_from_id(struct
                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;
 
@@ -221,7 +220,7 @@ static NTSTATUS _idmap_adex_get_id_from_sid(struct
                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;
 
@@ -264,7 +263,7 @@ static NTSTATUS _idmap_adex_get_id_from_sid(struct
 static NTSTATUS _nss_adex_init(struct nss_domain_entry
                                  *e)
 {
-       return _idmap_adex_init(NULL, NULL);
+       return _idmap_adex_init(NULL);
 }
 
 /**********************************************************************
@@ -281,7 +280,7 @@ static NTSTATUS _nss_adex_get_info(struct
        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;
 
@@ -303,7 +302,7 @@ static NTSTATUS _nss_adex_map_to_alias(TALLOC_CTX * mem_ctx,
        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) {
@@ -334,7 +333,7 @@ static NTSTATUS _nss_adex_map_from_alias(TALLOC_CTX * mem_ctx,
        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) {
index ff33a5d14f1bb6cff56f99711c773aee51f54e90..81919216d6daf1a5f5a5c9d0103cd1ee870590dd 100644 (file)
@@ -427,8 +427,7 @@ static NTSTATUS idmap_autorid_saveconfig(struct autorid_global_config *cfg)
        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;
index 61ae13ac3cd0ec2f06f7919b5172bc2ab431aaf4..474387918e48354d27664958a0b5d59306b16014 100644 (file)
@@ -104,8 +104,7 @@ static void separate_hashes(uint32_t id,
 /*********************************************************************
  ********************************************************************/
 
-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;
@@ -172,7 +171,7 @@ static NTSTATUS unixids_to_sids(struct idmap_domain *dom,
                ids[i]->status = ID_UNKNOWN;
        }
 
-       nt_status = be_init(dom, NULL);
+       nt_status = be_init(dom);
        BAIL_ON_NTSTATUS_ERROR(nt_status);
 
        if (!ids) {
@@ -222,7 +221,7 @@ static NTSTATUS sids_to_unixids(struct idmap_domain *dom,
                ids[i]->status = ID_UNKNOWN;
        }
 
-       nt_status = be_init(dom, NULL);
+       nt_status = be_init(dom);
        BAIL_ON_NTSTATUS_ERROR(nt_status);
 
        if (!ids) {
@@ -260,7 +259,7 @@ done:
 
 static NTSTATUS nss_hash_init(struct nss_domain_entry *e )
 {
-       return be_init(NULL, NULL);
+       return be_init(NULL);
 }
 
 /**********************************************************************
index 7edc72548aee01b677d7296aa10effeded30eaab..7195912fc38f6784fe21aa3074c88ff6c96d718c 100644 (file)
@@ -431,8 +431,7 @@ static int idmap_ldap_close_destructor(struct idmap_ldap_context *ctx)
 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;
index bfef7bb399fe5930bf818bbb48fc18ef8596d80a..1c49e76078aa55f94e0c446fbc4d7724ec5fe451 100644 (file)
@@ -31,8 +31,7 @@
  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;
 }
index ba179c331e8b9acc27cb62b7a79ba21ad2e3af54..276ae2c1047d9a647bebbee0be833748f9e9fbd9 100644 (file)
@@ -29,7 +29,7 @@
  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;
 }
index 935d7534fc33d035b57484183699dec8924383f9..8bb63fd534acddb5878e968925df221881df47b2 100644 (file)
@@ -35,8 +35,7 @@ struct idmap_rid_context {
   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;
index 537f6cfb3869756486e88422c2fccb4c72b9ce41..c83ebc53bf7b99fa60ec23b2113dbd6fe3c123a5 100644 (file)
@@ -486,7 +486,7 @@ static NTSTATUS idmap_tdb_get_new_id(struct idmap_domain *dom,
 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;
index 05d408ac1e11d8fe592aa16a83196bd6da2596ed..82121f8c0e0d17ca5b7f5c34bd6bda069381d60f 100644 (file)
@@ -273,8 +273,7 @@ static NTSTATUS idmap_tdb2_set_mapping(struct idmap_domain *dom,
 /*
   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;