idmap_gid_to_sid: Fix a cut-a-npaste error.
[kai/samba.git] / source3 / winbindd / idmap_rid.c
index f1cd77853cda0755cd1eadd429fa220f6554c0ab..9d1898708cb9f5bf4fa3ad763a686a1c147a5231 100644 (file)
@@ -36,7 +36,8 @@ struct idmap_rid_context {
   we support multiple domains in the new idmap
  *****************************************************************************/
 
-static NTSTATUS idmap_rid_initialize(struct idmap_domain *dom)
+static NTSTATUS idmap_rid_initialize(struct idmap_domain *dom,
+                                    const char *params)
 {
        NTSTATUS ret;
        struct idmap_rid_context *ctx;
@@ -95,7 +96,6 @@ static NTSTATUS idmap_rid_initialize(struct idmap_domain *dom)
        ctx->domain_name = talloc_strdup( ctx, dom->name );
        
        dom->private_data = ctx;
-       dom->initialized = True;
 
        talloc_free(config_option);
        return NT_STATUS_OK;
@@ -171,14 +171,6 @@ static NTSTATUS idmap_rid_unixids_to_sids(struct idmap_domain *dom, struct id_ma
        NTSTATUS ret;
        int i;
 
-       /* Initilization my have been deferred because of an error, retry or fail */
-       if ( ! dom->initialized) {
-               ret = idmap_rid_initialize(dom);
-               if ( ! NT_STATUS_IS_OK(ret)) {
-                       return ret;
-               }
-       }
-
        ridctx = talloc_get_type(dom->private_data, struct idmap_rid_context);
 
        ctx = talloc_new(dom);
@@ -213,14 +205,6 @@ static NTSTATUS idmap_rid_sids_to_unixids(struct idmap_domain *dom, struct id_ma
        NTSTATUS ret;
        int i;
 
-       /* Initilization my have been deferred because of an error, retry or fail */
-       if ( ! dom->initialized) {
-               ret = idmap_rid_initialize(dom);
-               if ( ! NT_STATUS_IS_OK(ret)) {
-                       return ret;
-               }
-       }
-
        ridctx = talloc_get_type(dom->private_data, struct idmap_rid_context);
 
        ctx = talloc_new(dom);