s4-dns: fixed CNAME automatic DNS updates
[samba.git] / source4 / scripting / bin / fullschema
old mode 100644 (file)
new mode 100755 (executable)
index 41c45f3..4a01b6a
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 # 
-#  work out the minimal schema for a set of objectclasses 
+# Works out the full schema
 #
 
 import base64
@@ -139,7 +139,12 @@ def write_ldif_one(o, attrs):
             continue
         # special case for oMObjectClass, which is a binary object
         v = o[a]
+        list = []
         for j in v:
+            value = fix_dn(j)
+            list.append(value)
+        list.sort()
+        for j in list:
             value = fix_dn(j)
             if a != "cn":
                 if a == "oMObjectClass":