Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php |
— | — | @@ -1128,7 +1128,7 @@ |
1129 | 1129 | foreach ( array_keys( $prefs ) as $key ) { |
1130 | 1130 | $attr = strtolower( $prefs[$key] ); |
1131 | 1131 | if ( isset( $this->userInfo[0][$attr] ) ) { |
1132 | | - $value = $this->userInfo[0][$attr]; |
| 1132 | + $value = $this->userInfo[0][$attr][0]; |
1133 | 1133 | } else { |
1134 | 1134 | continue; |
1135 | 1135 | } |
— | — | @@ -1147,7 +1147,7 @@ |
1148 | 1148 | break; |
1149 | 1149 | case "realname": |
1150 | 1150 | $this->realname = $value; |
1151 | | - $this->printDebug( "Retrieved realname ($this->realname) using attribute ($attr)", NONSENSITIVE ); |
| 1151 | + $this->printDebug( "Retrieved realname ($this->realname) using attribute ($prefs[$key])", NONSENSITIVE ); |
1152 | 1152 | break; |
1153 | 1153 | } |
1154 | 1154 | } |