gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge-plugin-ldapextauth/include LdapExtAuthPlugin.cla


From: gsmet
Subject: [Gforge-commits] gforge-plugin-ldapextauth/include LdapExtAuthPlugin.class, 1.4, 1.5
Date: Sat, 25 Dec 2004 11:14:39 -0600

Update of /cvsroot/gforge/gforge-plugin-ldapextauth/include
In directory db.perdue.net:/tmp/cvs-serv852/include

Modified Files:
        LdapExtAuthPlugin.class 
Log Message:
returns an error if the dn is empty (useful if we have to look for the dn in 
the ldap directory)

Index: LdapExtAuthPlugin.class
===================================================================
RCS file: 
/cvsroot/gforge/gforge-plugin-ldapextauth/include/LdapExtAuthPlugin.class,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- LdapExtAuthPlugin.class     29 Oct 2004 22:57:17 -0000      1.4
+++ LdapExtAuthPlugin.class     25 Dec 2004 17:14:36 -0000      1.5
@@ -82,6 +82,10 @@
                        ldap_set_option ($this->ldap_conn, 
LDAP_OPT_PROTOCOL_VERSION, $GLOBALS['sys_ldap_version']);
                }
                $dn = plugin_ldapextauth_getdn ($this, $loginname) ;
+               if(empty($dn)) {
+                       $GLOBALS['ldap_auth_failed']=true;
+                       return false;
+               }
 
                $u = user_get_object_by_name ($loginname) ;
                if ($u) {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]