diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-03-20 16:47:34 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-03-20 16:47:34 +1100 |
commit | 37f130fd89d02e77bf55cbd8da731d87bb4ab1e8 (patch) | |
tree | bf360aa3b0778a810e1b95a736c7dc86e3ff206d | |
parent | 4a45b0da5743f76f77c812d03ee625af10fb2a54 (diff) | |
download | samba-37f130fd89d02e77bf55cbd8da731d87bb4ab1e8.tar.gz samba-37f130fd89d02e77bf55cbd8da731d87bb4ab1e8.tar.bz2 samba-37f130fd89d02e77bf55cbd8da731d87bb4ab1e8.zip |
s4:fullschema Use server-side sort to make the output deterministic
-rw-r--r-- | source4/scripting/bin/fullschema | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/scripting/bin/fullschema b/source4/scripting/bin/fullschema index d3bf398e65..41c45f30c8 100644 --- a/source4/scripting/bin/fullschema +++ b/source4/scripting/bin/fullschema @@ -157,7 +157,8 @@ rootDse = res[0] if opts.dump_attributes: res = ldb.search(expression="objectClass=attributeSchema", - base=rootDse["schemaNamingContext"][0], scope=SCOPE_SUBTREE,attrs=attrib_attrs) + base=rootDse["schemaNamingContext"][0], scope=SCOPE_SUBTREE,attrs=attrib_attrs, + controls=["server_sort:1:0:cn"]) for msg in res: o = Objectclass(ldb, msg["ldapDisplayName"]) @@ -167,7 +168,8 @@ if opts.dump_attributes: if opts.dump_classes: res = ldb.search(expression="objectClass=classSchema", - base=rootDse["schemaNamingContext"][0], scope=SCOPE_SUBTREE,attrs=class_attrs) + base=rootDse["schemaNamingContext"][0], scope=SCOPE_SUBTREE,attrs=class_attrs, + controls=["server_sort:1:0:cn"]) for msg in res: o = Objectclass(ldb, msg["ldapDisplayName"]) |