summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-03-10 23:41:17 +0100
committerMichael Adam <obnox@samba.org>2011-03-22 22:49:58 +0100
commitf50a25cc8d4a154aa96d9259488909d60fc40c6c (patch)
treedb74076765e72d3f2d645aeb4f0277e75a81f4fb /source3/winbindd
parent0109604f53dee04e2c0feed0cafa5c94f39ba6a4 (diff)
downloadsamba-f50a25cc8d4a154aa96d9259488909d60fc40c6c.tar.gz
samba-f50a25cc8d4a154aa96d9259488909d60fc40c6c.tar.bz2
samba-f50a25cc8d4a154aa96d9259488909d60fc40c6c.zip
s3:idmap: make sure that the id mapping system is initialized for first access
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c
index 0fd987cf0b..49d7c3aa61 100644
--- a/source3/winbindd/idmap.c
+++ b/source3/winbindd/idmap.c
@@ -273,6 +273,8 @@ static struct idmap_domain *idmap_init_named_domain(TALLOC_CTX *mem_ctx,
char *config_option;
const char *backend;
+ idmap_init();
+
config_option = talloc_asprintf(talloc_tos(), "idmap config %s",
domname);
if (config_option == NULL) {
@@ -372,6 +374,8 @@ static struct idmap_domain *idmap_find_domain(const char *domname)
DEBUG(10, ("idmap_find_domain called for domain '%s'\n",
domname?domname:"NULL"));
+ idmap_init();
+
/*
* Always init the default domain, we can't go without one
*/