Explorar el Código

170816 - Don't consume password changes if modify fails

Nathan Kinder hace 20 años
padre
commit
1d20c35b27
Se han modificado 1 ficheros con 5 adiciones y 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
 				{