summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-05-31 11:55:18 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:40 +0200
commit3a2487e66b85bcceba6d52881f7bc4810b757023 (patch)
treecf272acfa76d05b2ac03726c5f0871aa1ed88fd9 /source3
parent12a0ab3c96acf4333371b67d81d33b3bf0c5489a (diff)
downloadsamba-3a2487e66b85bcceba6d52881f7bc4810b757023.tar.gz
samba-3a2487e66b85bcceba6d52881f7bc4810b757023.tar.bz2
samba-3a2487e66b85bcceba6d52881f7bc4810b757023.zip
s3:idmap: remove idmap_alloc_context from idmap.c
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.
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c
index 7da3656aa7..c547262d81 100644
--- a/source3/winbindd/idmap.c
+++ b/source3/winbindd/idmap.c
@@ -56,16 +56,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".
*/
static struct idmap_domain *default_idmap_domain;
@@ -453,10 +443,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);