passdb: Allow a passdb module to do idmap for everything
commitb359b0c160e6c13249a6226583dec9553874b232
authorAndrew Bartlett <abartlet@samba.org>
Fri, 28 Mar 2014 02:36:22 +0000 (28 15:36 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 15 Jun 2014 22:26:26 +0000 (16 00:26 +0200)
treeeb1f72604c283eebee90649a05895c53f0123fab
parentc70932827812cf3b3fc8323e11abf4c98f15ddec
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>
source3/include/passdb.h
source3/lib/util_sid_passdb.c
source3/passdb/ABI/pdb-0.1.1.sigs [new file with mode: 0644]
source3/passdb/pdb_interface.c
source3/passdb/pdb_samba_dsdb.c
source3/wscript_build