r78354 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78353‎ | r78354 | r78355 >
Date:04:09, 14 December 2010
Author:laner
Status:deferred
Tags:
Comment:
Adding explicit request for memberOf, since it is an operation attribute in many directory servers.
Modified paths:
  • /trunk/extensions/LdapAuthentication/LdapAuthentication.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php
@@ -1089,7 +1089,7 @@
10901090 return $this->userInfo;
10911091 }
10921092
1093 - $entry = @ldap_read( $this->ldapconn, $this->userdn, "objectclass=*" );
 1093+ $entry = @ldap_read( $this->ldapconn, $this->userdn, "objectclass=*", array( '*', 'memberof' ) );
10941094 $userInfo = @ldap_get_entries( $this->ldapconn, $entry );
10951095 if ( $userInfo["count"] < 1 ) {
10961096 $this->fetchedUserInfo = false;

Status & tagging log