r2752: Fix the paranoia-check to ensure the ldap-attribute and the
authorGünther Deschner <gd@samba.org>
Wed, 29 Sep 2004 13:34:41 +0000 (13:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:50 +0000 (10:52 -0500)
commit4edd6528f9f516c05c1ec3f5ad0880475c132c41
tree19578b068b4ec5532394b9072a63d56127d8e63f
parent676aa559fe80a50e9d0398d80aabc6d4e41db09e
r2752: Fix the paranoia-check to ensure the ldap-attribute and the
smb.conf-parameter for samba's "algorithmic rid base" in ldapsam are
identical.

It tried to get the value of LDAP_ATTR_ALGORITHMIC_RID_BASE via
get_userattr_key2string() for a very long time now. This just can not
work because LDAP_ATTR_ALGORITHMIC_RID_BASE is neither in attrib_map_v22
nor in attrib_map_v30. Instead, get it directly from dominfo_attr_list.

Ldapsam will now correctly refuse to initialize when admins tried
manually to have differing values for "algorithmic rid base" in ldap and
smb.conf. idmap_ldap is another story...

Guenther
(This used to be commit c5b8bc6c2e9a3f789f41742438b31152721c0bf4)
source3/passdb/pdb_ldap.c