You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2010/04/06 20:10:00 UTC
svn commit: r931250 -
/incubator/vcl/trunk/web/.ht-inc/authmethods/ldapauth.php
Author: jfthomps
Date: Tue Apr 6 18:10:00 2010
New Revision: 931250
URL: http://svn.apache.org/viewvc?rev=931250&view=rev
Log:
modified validateLDAPUser to search for 'dn' instead of the what is defined for 'email' in the $auth array
added closing php tag to file
Modified:
incubator/vcl/trunk/web/.ht-inc/authmethods/ldapauth.php
Modified: incubator/vcl/trunk/web/.ht-inc/authmethods/ldapauth.php
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/authmethods/ldapauth.php?rev=931250&r1=931249&r2=931250&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/authmethods/ldapauth.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/authmethods/ldapauth.php Tue Apr 6 18:10:00 2010
@@ -133,7 +133,7 @@ function validateLDAPUser($type, $logini
if(! $res)
return -1;
- $return = array($auth['email']);
+ $return = array('dn');
$search = ldap_search($ds,
$auth['binddn'],
@@ -431,3 +431,4 @@ function updateEXAMPLE1Groups($user) {
$newusergroups = array_unique($newusergroups);
updateGroups($newusergroups, $user["id"]);
}
+?>