diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-05-24 14:55:17 +1000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-06-01 10:33:13 +0200 |
commit | e67b0cf603483aefe823ab3c86b02db27c48b6eb (patch) | |
tree | f97fa8017bb41a28807ff414e17055e24df13838 | |
parent | b05c18cff275650b4caa74db6ba82975df3abe9d (diff) | |
download | samba-e67b0cf603483aefe823ab3c86b02db27c48b6eb.tar.gz samba-e67b0cf603483aefe823ab3c86b02db27c48b6eb.tar.bz2 samba-e67b0cf603483aefe823ab3c86b02db27c48b6eb.zip |
s3:winbind Ensure we always init idmap_passdb before we use it
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>
-rw-r--r-- | source3/winbindd/idmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 4aa229cd66..2294f396c4 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -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; } |