Do not try to do an ldap modify with no changes - now show command to changes@ should...
authorPeter Palfrader <peter@palfrader.org>
Sat, 10 Mar 2012 18:04:15 +0000 (19:04 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sat, 10 Mar 2012 18:04:30 +0000 (19:04 +0100)
ud-mailgate

index 8d79959..fdc3cfd 100755 (executable)
@@ -624,8 +624,7 @@ def HandleChange(Reply,DnRecord,Key):
          CommitChanges = 0
          Result = Result + "FinishConfirmSudopassword raised an error (%s) - no changes committed\n"%(e);
 
-   # Modify the record
-   if CommitChanges == 1:
+   if CommitChanges == 1 and len(Attrs) > 0:
       Dn = "uid=" + GetAttr(DnRecord,"uid") + "," + BaseDn;
       l.modify_s(Dn,Attrs);