From 42f9ae875659e9e698a2875cf313c0d2173f94b2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 8 Nov 2010 13:38:13 -0800 Subject: First part of fix for bug #7777 - When requesting lookups for BUILTIN sids, winbindd allocates new uids/gids in error. Ensure idmap_init_passdb_domain() correctly initialized the default domain first. Jeremy. --- source3/winbindd/idmap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/winbindd/idmap.c') diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 102f4ebb7f..feaf297a7b 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -448,6 +448,16 @@ static struct idmap_domain *idmap_init_passdb_domain(TALLOC_CTX *mem_ctx) { idmap_init(); + /* + * Always init the default domain, we can't go without one + */ + if (default_idmap_domain == NULL) { + default_idmap_domain = idmap_init_default_domain(NULL); + } + if (default_idmap_domain == NULL) { + return NULL; + } + if (passdb_idmap_domain != NULL) { return passdb_idmap_domain; } -- cgit