r2752: Fix the paranoia-check to ensure the ldap-attribute and the
commitc5b8bc6c2e9a3f789f41742438b31152721c0bf4
authorGünther Deschner <gd@samba.org>
Wed, 29 Sep 2004 13:34:41 +0000 (29 13:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:50 +0000 (10 10:52 -0500)
tree8d465cb74923cb112155b7dd9cea242fa5c3b49f
parent4886d6663d7479978e2c395602392accb5939fa0
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
source/passdb/pdb_ldap.c