Commit f501787d8ec08b6ebd8b6bd4e1809063603f5411

Authored by Michael Joseph
1 parent cbdf00d7

fixed dn retrieval


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@96 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 5 additions and 2 deletions
lib/class.AuthLdap.php
@@ -375,9 +375,12 @@ class AuthLdap { @@ -375,9 +375,12 @@ class AuthLdap {
375 // Modify these as you see fit. 375 // Modify these as you see fit.
376 $uname = $info[$i]["uid"][0]; 376 $uname = $info[$i]["uid"][0];
377 // add to the array for each attribute in my list 377 // add to the array for each attribute in my list
378 - // add to the array for each attribute in my list  
379 for ( $j = 0; $j < count( $attributeArray); $j++) { 378 for ( $j = 0; $j < count( $attributeArray); $j++) {
380 - $userslist["$uname"]["$attributeArray[$j]"] = $info[$i][strtolower($attributeArray[$j])][0]; 379 + if (strtolower($attributeArray[$j]) == "dn") {
  380 + $userslist["$uname"]["$attributeArray[$j]"] = $info[$i][strtolower($attributeArray[$j])];
  381 + } else {
  382 + $userslist["$uname"]["$attributeArray[$j]"] = $info[$i][strtolower($attributeArray[$j])][0];
  383 + }
381 } 384 }
382 } 385 }
383 386