Skip to content
Snippets Groups Projects
Commit 2560aa4a authored by Troels Liebe Bentsen's avatar Troels Liebe Bentsen
Browse files

Make this be the $user instead of cn as returned by ldap search, this also...

Make this be the $user instead of cn as returned by ldap search, this also makes it behave like the documentation says.

darcs-hash:20050511181943-ee6b9-13cfe24969f8cce4d22ab1bfb4de610218c3e125.gz
parent fbe2891d
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ function auth_getUserData($user){
//get groups for given user if grouptree is given
if ($cnf['grouptree'] != '') {
$filter = str_replace('%i', $info['uid'], $cnf['groupfilter']);
$filter = str_replace('%u', $info['name'], $filter);
$filter = str_replace('%u', $user, $filter);
$filter = str_replace('%g', $gid, $filter);
$sr = @ldap_search($conn, $cnf['grouptree'], $filter);
if(!$sr){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment