A new pdb_ldap!
authorAndrew Bartlett <abartlet@samba.org>
Mon, 28 Apr 2003 10:20:55 +0000 (10:20 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 28 Apr 2003 10:20:55 +0000 (10:20 +0000)
commit3e07406ade81e136f67439d4f8fd7fe1dbb6db14
tree6039db0e459939dc2ee5abc054f43f4f94c903bc
parent04d27381325561038bee1c27f10c748b9aaf447d
A new pdb_ldap!

This patch removes 'non unix account range' (same as idra's change in HEAD),
and uses the winbind uid range instead.

More importanly, this patch changes the LDAP schema to use 'ntSid' instead
of 'rid' as the primary attribute.  This makes it in common with the group
mapping code, and should allow it to be used closely with a future idmap_ldap.

Existing installations can use the existing functionality by using the
ldapsam_compat backend, and users who compile with --with-ldapsam will get
this by default.

More importantly, this patch adds a 'sambaDomain' object to our schema -
which contains 2 'next rid' attributes, the domain name and the domain sid.
Yes, there are *2* next rid attributes.  The problem is that we don't 'own'
the entire RID space - we can only allocate RIDs that could be 'algorithmic'
RIDs.  Therefore, we use the fact that UIDs in 'winbind uid' range will be
mapped by IDMAP, not the algorithm.

Andrew Bartlett
examples/LDAP/samba.schema
source/param/loadparm.c
source/passdb/pdb_ldap.c
source/passdb/pdb_smbpasswd.c
source/passdb/pdb_tdb.c