Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php |
— | — | @@ -749,8 +749,9 @@ |
750 | 750 | $values["userpassword"] = $pass; |
751 | 751 | $values["objectclass"] = array( "inetorgperson" ); |
752 | 752 | |
| 753 | + $result = true; |
753 | 754 | # Let other extensions modify the user object before creation |
754 | | - wfRunHooks( 'LDAPSetCreationValues', array( $this, &$values, &$result ) ); |
| 755 | + wfRunHooks( 'LDAPSetCreationValues', array( $this, $username, &$values, &$result ) ); |
755 | 756 | if ( ! $result ) { |
756 | 757 | $this->printDebug( "Failed to add user because LDAPSetCreationValues returned false", NONSENSITIVE ); |
757 | 758 | @ldap_unbind(); |