updateUser() public method

Update a set of authentication credentials.
public updateUser ( string $oldID, string $newID, array $credentials, string $olddn = null, string $newdn = null )
$oldID string The old userId.
$newID string The new userId.
$credentials array The new credentials.
$olddn string The old user DN.
$newdn string The new user DN.
示例#1
0
文件: Ldap.php 项目: jubinpatel/horde
 /**
  * Update a set of authentication credentials.
  *
  * @param string $oldID       The old user ID.
  * @param string $newID       The new user ID.
  * @param array $credentials  The new credentials
  * @param string $olddn       NOT USED.
  * @param string $newdn       NOT USED.
  *
  * @throws Horde_Auth_Exception
  */
 public function updateUser($oldID, $newID, $credentials, $olddn = null, $newdn = null)
 {
     $auth = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Auth')->create();
     list($oldID, $old_credentials) = $auth->runHook($oldID, $credentials, 'preauthenticate', 'admin');
     list($newID, $new_credentials) = $auth->runHook($newID, $credentials, 'preauthenticate', 'admin');
     $olddn = isset($old_credentials['dn']) ? $old_credentials['dn'] : null;
     $newdn = isset($new_credentials['dn']) ? $new_credentials['dn'] : null;
     parent::updateUser($oldID, $newID, $new_credentials, $olddn, $newdn);
 }