Make AuthProxy LDAP bind code more robust
authorDan Wells <dbw2@calvin.edu>
Thu, 27 Sep 2012 21:35:03 +0000 (17:35 -0400)
committerDan Wells <dbw2@calvin.edu>
Thu, 11 Jul 2013 20:56:33 +0000 (16:56 -0400)
commiteb22934b7b1b5a30a92497dcc45e78e84cd80f42
treef1edb1c2726c4536de21134214ce1936aed33fae
parent64475ab576d6bc7ee4fd27e0255c0d30ba369c1f
Make AuthProxy LDAP bind code more robust

The existing version of LDAP_Auth.pm assumed that the user's
bind DN could be derived from the base DN, the ID attribute, and
the user's ID.  This is frequently the case, but not always,
particularly in Active Directory setups using sAMAccountName. This
commit instead uses the initial LDAP lookup as the authority for
determining the user's DN.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/AuthProxy/LDAP_Auth.pm