version 1.23, 2007/04/03 18:50:58
|
version 1.24, 2007/07/31 19:13:50
|
|
|
// | // |
// Load the user information in to the cache. | // Load the user information in to the cache. |
// | // |
try |
|
{ |
|
_loadAllUsers(); | _loadAllUsers(); |
} |
|
catch (const Exception&) |
|
{ |
|
throw; |
|
} |
|
| |
// | // |
// Initialize the mutex, mutex lock needs to be held for any updates | // Initialize the mutex, mutex lock needs to be held for any updates |
|
|
// | // |
// Check if the given password matches the passwd in the file | // Check if the given password matches the passwd in the file |
// | // |
try |
|
{ |
|
if ( !verifyCIMUserPassword (userName,password) ) | if ( !verifyCIMUserPassword (userName,password) ) |
{ | { |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
throw PasswordMismatch(userName); | throw PasswordMismatch(userName); |
} | } |
} |
|
catch (const Exception&) |
|
{ |
|
PEG_METHOD_EXIT(); |
|
throw; |
|
} |
|
| |
// encrypt new password | // encrypt new password |
_GetSalt(salt); | _GetSalt(salt); |