(file) Return to UserFileHandler.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Security / UserManager

Diff for /pegasus/src/Pegasus/Security/UserManager/UserFileHandler.cpp between version 1.6 and 1.7

version 1.6, 2002/08/16 22:48:29 version 1.7, 2002/08/29 00:27:52
Line 301 
Line 301 
     // encrypt password     // encrypt password
     _GetSalt(salt);     _GetSalt(salt);
  
     ArrayDestroyer<char> pw(password.allocateCString());      encryptedPassword = System::encryptPassword(password.getCString(),salt);
   
     encryptedPassword = System::encryptPassword(pw.getPointer(),salt);  
  
     // add the user to the cache and password file     // add the user to the cache and password file
     _Update(ADD_USER,userName, encryptedPassword);     _Update(ADD_USER,userName, encryptedPassword);
Line 344 
Line 342 
     // encrypt new password     // encrypt new password
     _GetSalt(salt);     _GetSalt(salt);
  
     ArrayDestroyer<char> npw(newPassword.allocateCString());      encryptedPassword = System::encryptPassword(newPassword.getCString(),salt);
   
     encryptedPassword = System::encryptPassword(npw.getPointer(),salt);  
  
     _Update(MODIFY_USER, userName, encryptedPassword);     _Update(MODIFY_USER, userName, encryptedPassword);
  
Line 415 
Line 411 
     }     }
  
     saltStr = curPassword.subString(0,2);     saltStr = curPassword.subString(0,2);
     ArrayDestroyer<char> oldsalt(saltStr.allocateCString());  
     ArrayDestroyer<char> pw(password.allocateCString());  
  
     encryptedPassword =     encryptedPassword =
                 System::encryptPassword(pw.getPointer(),oldsalt.getPointer());          System::encryptPassword(password.getCString(),saltStr.getCString());
  
     if ( curPassword != encryptedPassword )     if ( curPassword != encryptedPassword )
     {     {


Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2