mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-winbindd: Honour pdb_is_responsible_for_everything_else()
This allows us to avoid running idmap_init_default_domain() which gives an error in the default AD DC config. Andrew Bartlett Change-Id: I923bd941951f6a907e6fa1ad167e5218a01040ff Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
This commit is contained in:
parent
b359b0c160
commit
ad533709e5
@ -25,6 +25,7 @@
|
||||
#include "winbindd.h"
|
||||
#include "idmap.h"
|
||||
#include "lib/util_sid_passdb.h"
|
||||
#include "passdb.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_IDMAP
|
||||
@ -330,6 +331,7 @@ static struct idmap_domain *idmap_passdb_domain(TALLOC_CTX *mem_ctx)
|
||||
{
|
||||
idmap_init();
|
||||
|
||||
if (!pdb_is_responsible_for_everything_else()) {
|
||||
/*
|
||||
* Always init the default domain, we can't go without one
|
||||
*/
|
||||
@ -339,6 +341,7 @@ static struct idmap_domain *idmap_passdb_domain(TALLOC_CTX *mem_ctx)
|
||||
if (default_idmap_domain == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (passdb_idmap_domain != NULL) {
|
||||
return passdb_idmap_domain;
|
||||
|
Loading…
Reference in New Issue
Block a user