http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95925
Revision: 95925
Author: laner
Date: 2011-09-01 01:10:35 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
Also pass the userdn, in a way that can be modified, so that the hook can more
easily change it
Modified Paths:
--------------
trunk/extensions/LdapAuthentication/LdapAuthentication.php
Modified: trunk/extensions/LdapAuthentication/LdapAuthentication.php
===================================================================
--- trunk/extensions/LdapAuthentication/LdapAuthentication.php 2011-09-01
01:08:14 UTC (rev 95924)
+++ trunk/extensions/LdapAuthentication/LdapAuthentication.php 2011-09-01
01:10:35 UTC (rev 95925)
@@ -764,7 +764,7 @@
$writeloc = '';
}
# Let other extensions modify the user object before
creation
- wfRunHooks( 'LDAPSetCreationValues', array( $this,
$username, &$values, $writeloc, &$result ) );
+ wfRunHooks( 'LDAPSetCreationValues', array( $this,
$username, &$values, $writeloc, &$this->userdn, &$result ) );
if ( ! $result ) {
$this->printDebug( "Failed to add user because
LDAPSetCreationValues returned false", NONSENSITIVE );
@ldap_unbind();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs