s3:winbind:idmap: remove idmap_alloc_context from idmap.c
authorMichael Adam <obnox@samba.org>
Mon, 31 May 2010 09:55:18 +0000 (11:55 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 31 May 2010 15:34:07 +0000 (17:34 +0200)
The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.

No list of alloc backends is maintained any more in the top level.

source3/winbindd/idmap.c

index f4b748dec32a8cd45a7eb130ec725e7be78ae61e..43c3a362ce7f07a291cdd65f102d8421b83c6699 100644 (file)
@@ -40,16 +40,6 @@ struct idmap_backend {
 };
 static struct idmap_backend *backends = NULL;
 
-/**
- * The idmap alloc context that is configured via "idmap alloc
- * backend". Defaults to "idmap backend" in case the module (tdb, ldap) also
- * provides alloc methods.
- */
-struct idmap_alloc_context {
-       struct idmap_alloc_methods *methods;
-};
-static struct idmap_alloc_context *idmap_alloc_ctx = NULL;
-
 /**
  * Default idmap domain configured via "idmap backend".
  */
@@ -438,10 +428,6 @@ static struct idmap_domain *idmap_find_domain(const char *domname)
 
 void idmap_close(void)
 {
-        if (idmap_alloc_ctx) {
-                idmap_alloc_ctx->methods->close_fn();
-                idmap_alloc_ctx->methods = NULL;
-        }
        TALLOC_FREE(default_idmap_domain);
        TALLOC_FREE(passdb_idmap_domain);
        TALLOC_FREE(idmap_domains);