瀏覽代碼

170816 - Don't consume password changes if modify fails

Nathan Kinder 20 年之前
父節點
當前提交
1d20c35b27
共有 1 個文件被更改,包括 5 次插入0 次删除
  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
 				{