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>
Tue, 1 Jun 2010 08:33:13 +0000 (10:33 +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 4aa229cd6623ed34ff74f3aadc88bd5f4442e4de..2294f396c4aefec99994288b39f2cc0d29ad448d 100644 (file)
@@ -428,6 +428,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;
        }