File_Passwd_Smb::verifyEncryptedPasswd

File_Passwd_Smb::verifyEncryptedPasswd() – Vérifie un mot de passe crypté

Synopsis

mixed File_Passwd_Smb::verifyEncryptedPasswd ( string $user , string $nthash , string $lmhash = '' )

Description

Vérifie le mot de passe crypté d'un utilisateur/machine.

Nous préférons NT-Hash au lieu de LAN-Manager-Hash.

Parameter

string $user

utilisateur

string $nthash

NT-Hash en hex

string $lmhash

LAN-Manager-Hash en hex

Return value

Retourne TRUE si les mots de passe sont égaux, FALSE sinon ou un objet PEAR_Error en cas d'échec.

Possible PEAR_Error values
Code erreur Signification
FILE_PASSWD_E_EXISTS_NOT l'utilisateur n'existe pas
FILE_PASSWD_E_UNDEFINED si le compte est désactivé

Note

This function can not be called statically.