summaryrefslogtreecommitdiffstats
path: root/source3/passdb/pdb_samba_dsdb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-03-28 15:36:22 +1300
committerAndrew Bartlett <abartlet@samba.org>2014-06-16 00:26:26 +0200
commitb359b0c160e6c13249a6226583dec9553874b232 (patch)
treeeb1f72604c283eebee90649a05895c53f0123fab /source3/passdb/pdb_samba_dsdb.c
parentc70932827812cf3b3fc8323e11abf4c98f15ddec (diff)
downloadsamba-b359b0c160e6c13249a6226583dec9553874b232.tar.gz
samba-b359b0c160e6c13249a6226583dec9553874b232.tar.xz
samba-b359b0c160e6c13249a6226583dec9553874b232.zip
passdb: Allow a passdb module to do idmap for everything
This patch seems odd, but the pdb_samba_dsdb module has exactly this semantics. That is, the pdb_samba_dsdb is responsible for all IDMAP values, due to backing on to the idmap.ldb allocator. This option is added so we can continue to support the mappings written into that database even when switching winbindd implementations - the source4/ winbind code would only ask the idmap_ldb code, no matter what the SID. Almost all of the behaviour for this is already in winbindd, but we need this extra flag function so as to avoid (currently intentional) errors at startup due to not having a per-domain allocation configured in the smb.conf. Andrew Bartlett Change-Id: I6b0d7a1463fe28dfd36715af0285911ecc07585c Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
Diffstat (limited to 'source3/passdb/pdb_samba_dsdb.c')
-rw-r--r--source3/passdb/pdb_samba_dsdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/passdb/pdb_samba_dsdb.c b/source3/passdb/pdb_samba_dsdb.c
index e9255c7cfc5..7e7468dcdb1 100644
--- a/source3/passdb/pdb_samba_dsdb.c
+++ b/source3/passdb/pdb_samba_dsdb.c
@@ -2152,6 +2152,11 @@ static bool pdb_samba_dsdb_is_responsible_for_wellknown(struct pdb_methods *m)
return true;
}
+static bool pdb_samba_dsdb_is_responsible_for_everything_else(struct pdb_methods *m)
+{
+ return true;
+}
+
static void pdb_samba_dsdb_init_methods(struct pdb_methods *m)
{
m->name = "samba_dsdb";
@@ -2205,6 +2210,8 @@ static void pdb_samba_dsdb_init_methods(struct pdb_methods *m)
m->enum_trusteddoms = pdb_samba_dsdb_enum_trusteddoms;
m->is_responsible_for_wellknown =
pdb_samba_dsdb_is_responsible_for_wellknown;
+ m->is_responsible_for_everything_else =
+ pdb_samba_dsdb_is_responsible_for_everything_else;
}
static void free_private_data(void **vp)