s3:winbind Ensure we always init idmap_passdb before we use it
authorAndrew Bartlett <abartlet@samba.org>
Mon, 24 May 2010 04:55:17 +0000 (14:55 +1000)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jun 2010 10:40:40 +0000 (12:40 +0200)
It seems that it is possible for idmap_init_passdb_domain() to be run
before idmap_init_domain(), so ensure we run the static init functions
in both.

Andrew Bartlett

Signed-off-by: Michael Adam <obnox@samba.org>
source3/winbindd/idmap.c

index 4bb54a328e9ad37d1bbd5519676459ce6626194c..532a90ed3d8df147296e49ed7d8ad20e65b8ffa9 100644 (file)
@@ -432,6 +432,10 @@ fail:
 
 static struct idmap_domain *idmap_init_passdb_domain(TALLOC_CTX *mem_ctx)
 {
+       DEBUG(10, ("idmap_init_passdb_domain: calling static_init_idmap\n"));
+
+       static_init_idmap;
+
        if (passdb_idmap_domain != NULL) {
                return passdb_idmap_domain;
        }