From 7a4ea97b742c2b548ca55aad5f926fb11f9c86cf Mon Sep 17 00:00:00 2001 From: Troels Liebe Bentsen Date: Wed, 11 May 2005 21:57:26 +0200 Subject: 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 --- inc/auth_ldap.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'inc') diff --git a/inc/auth_ldap.php b/inc/auth_ldap.php index 6c4562313..71dc092a9 100644 --- a/inc/auth_ldap.php +++ b/inc/auth_ldap.php @@ -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){ -- cgit v1.2.3