version 1.19, 2005/02/05 23:00:47
|
version 1.20, 2005/04/22 20:20:11
|
|
|
// Amit K Arora, IBM (amita@in.ibm.com) for PEP#101 | // Amit K Arora, IBM (amita@in.ibm.com) for PEP#101 |
// Josephine Eskaline Joyce (jojustin@in.ibm.com) for PEP#101 | // Josephine Eskaline Joyce (jojustin@in.ibm.com) for PEP#101 |
// Josephine Eskaline Joyce (jojustin@in.ibm.com) for Bug#2486 | // Josephine Eskaline Joyce (jojustin@in.ibm.com) for Bug#2486 |
|
// David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
// | // |
//%//////////////////////////////////////////////////////////////////////////// | //%//////////////////////////////////////////////////////////////////////////// |
| |
|
|
{ | { |
_loadAllUsers(); | _loadAllUsers(); |
} | } |
catch (Exception& e) |
catch (const Exception&) |
{ | { |
throw e; |
throw; |
} | } |
| |
// | // |
|
|
{ | { |
_passwordFile->save(_passwordTable); | _passwordFile->save(_passwordTable); |
} | } |
catch (CannotOpenFile& e) |
catch (const CannotOpenFile&) |
{ | { |
_mutex->unlock(); | _mutex->unlock(); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
throw e; |
throw; |
} | } |
catch (CannotRenameFile& e) |
catch (const CannotRenameFile&) |
{ | { |
// | // |
// reload password hash table from file | // reload password hash table from file |
|
|
| |
_mutex->unlock(); | _mutex->unlock(); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
throw e; |
throw; |
} | } |
_mutex->unlock(); | _mutex->unlock(); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
|
|
throw PasswordMismatch(userName); | throw PasswordMismatch(userName); |
} | } |
} | } |
catch (Exception& e) |
catch (const Exception&) |
{ | { |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
throw e; |
throw; |
} | } |
| |
// encrypt new password | // encrypt new password |