Explorar o código

170816 - Don't consume password changes if modify fails

Nathan Kinder %!s(int64=20) %!d(string=hai) anos
pai
achega
1d20c35b27
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      ldap/synctools/passwordsync/passsync/syncserv.cpp

+ 5 - 0
ldap/synctools/passwordsync/passsync/syncserv.cpp

@@ -345,6 +345,11 @@ int PassSyncService::SyncPasswords()
 					// log modify failure.
 					timeStamp(&outLog);
 					outLog << "Modify password failed for remote entry: " << dn << endl;
+					// defer this change for later
+					timeStamp(&outLog);
+					outLog << "Deferring password change for " << currentPassInfo->username << endl;
+					currentPassInfo++;
+					continue;
 				}
 				else
 				{