diff options
Diffstat (limited to 'source3/winbindd/idmap.c')
-rw-r--r-- | source3/winbindd/idmap.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 4aa229cd66..7aa2853df1 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -428,6 +428,16 @@ fail: static struct idmap_domain *idmap_init_passdb_domain(TALLOC_CTX *mem_ctx) { + /* + * 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; } |