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

Why does ActiveDirectory have to be the only one how gets to fill in the uid...

Why does ActiveDirectory have to be the only one how gets to fill in the uid field, besides it should not be needed anymore if the new flexible LDAP syntax is accepted. $gid is not needed anymore, you can get it with the new syntax.

darcs-hash:20050511195726-ee6b9-5d0546b7ce40040811baa4d7b89522dc16a7964c.gz
parent 2984f237
No related branches found
No related tags found
No related merge requests found
......@@ -159,16 +159,6 @@ function auth_getUserData($user){
$info['mail']= $user_result['mail'][0];
$info['name']= $user_result['cn'][0];
//use ActiveDirectory sAMAccountName as uid
if(isset($result[0]['sAMAccountName'][0])){
$info['uid'] = $result[0]['sAMAccountName'][0];
}else{
$info['uid'] = $result[0]['uid'][0];
}
//get primary group id
$gid = $result[0]['gidnumber'][0];
//handle ActiveDirectory memberOf
if(is_array($result[0]['memberof'])){
foreach($result[0]['memberof'] as $grp){
......
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