[Bps-public-commit] r16740 - RT-Authen-ExternalAuth/trunk/lib/RT/Authen/ExternalAuth

zordrak at bestpractical.com zordrak at bestpractical.com
Fri Nov 7 13:04:08 EST 2008


Author: zordrak
Date: Fri Nov  7 13:04:07 2008
New Revision: 16740

Modified:
   RT-Authen-ExternalAuth/trunk/lib/RT/Authen/ExternalAuth/LDAP.pm

Log:
zordrak | 2008-11-07 18:04 +0000
 * 0.07_01
 * Added fix for Novell eDirectory from John McCoy

Modified: RT-Authen-ExternalAuth/trunk/lib/RT/Authen/ExternalAuth/LDAP.pm
==============================================================================
--- RT-Authen-ExternalAuth/trunk/lib/RT/Authen/ExternalAuth/LDAP.pm	(original)
+++ RT-Authen-ExternalAuth/trunk/lib/RT/Authen/ExternalAuth/LDAP.pm	Fri Nov  7 13:04:07 2008
@@ -452,10 +452,10 @@
 
     my $msg = undef;
 
-    # Can't decide whether to add a little more error checking here..
-    # Perhaps, if user && pass, else dont pass a pass etc..
-    if ($ldap_user) {
+    if (($ldap_user) and ($ldap_pass)) {
         $msg = $ldap->bind($ldap_user, password => $ldap_pass);
+    } elsif (($ldap_user) and ( ! $ldap_pass)) {
+        $msg = $ldap->bind($ldap_user);
     } else {
         $msg = $ldap->bind;
     }



More information about the Bps-public-commit mailing list