summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroels Liebe Bentsen <tlb@rapanden.dk>2005-05-11 21:57:26 +0200
committerTroels Liebe Bentsen <tlb@rapanden.dk>2005-05-11 21:57:26 +0200
commit7a4ea97b742c2b548ca55aad5f926fb11f9c86cf (patch)
tree876c513485d30330eb77e54c37ae20dde0a15bcf
parent2984f237d5db7ebb53ff9b904626c974f74dc415 (diff)
downloadrpg-7a4ea97b742c2b548ca55aad5f926fb11f9c86cf.tar.gz
rpg-7a4ea97b742c2b548ca55aad5f926fb11f9c86cf.tar.bz2
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
-rw-r--r--inc/auth_ldap.php10
1 files changed, 0 insertions, 10 deletions
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){