s4-upgradeprovision: don't print dn in the list of modified attributes
authorMatthieu Patou <mat@matws.net>
Mon, 13 Jun 2011 13:15:37 +0000 (17:15 +0400)
committerMatthieu Patou <mat@samba.org>
Sun, 19 Jun 2011 21:21:08 +0000 (23:21 +0200)
source4/scripting/bin/upgradeprovision

index 85f21678d61e3ae5e765c437a55cdb902b2ab32f..b197c6cb840b2881a4005150507f98bfb030b3e6 100755 (executable)
@@ -1054,7 +1054,8 @@ def update_present(ref_samdb, samdb, basedn, listPresent, usns):
 
         delta.dn = dn
         if len(delta.items()) >1:
-            attributes=", ".join(delta.keys())
+            # Skip dn as the value is not really changed ...
+            attributes=", ".join(delta.keys()[1:])
             modcontrols = []
             relaxedatt = ['iscriticalsystemobject', 'grouptype']
             # Let's try to reduce as much as possible the use of relax control