summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-03-20 17:32:19 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-03-20 17:32:19 +1100
commit13be4d7ff42bd2b8bf5702a499c482404e5cd164 (patch)
tree5416304fb7f8fe797bcbc379cc536a4009c7bdb4 /source4/scripting
parent27c6eca04c4c1bb40ff36f3a08748e2f45770aa8 (diff)
downloadsamba-13be4d7ff42bd2b8bf5702a499c482404e5cd164.tar.gz
samba-13be4d7ff42bd2b8bf5702a499c482404e5cd164.tar.bz2
samba-13be4d7ff42bd2b8bf5702a499c482404e5cd164.zip
s4:schema Remove 'cn' from the final output of ms_schema.py
This avoids one more point of difference between this an the output from minschema and fullschema Andrew Bartlett
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/ms_schema.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/ms_schema.py b/source4/scripting/python/samba/ms_schema.py
index f23bf0cdfe..2e8050e503 100644
--- a/source4/scripting/python/samba/ms_schema.py
+++ b/source4/scripting/python/samba/ms_schema.py
@@ -227,6 +227,12 @@ def __transform_entry(entry, objectClass):
entry.insert(0, ["dn", "CN=%s,${SCHEMADN}" % cn])
entry.insert(1, ["objectClass", ["top", objectClass]])
+ for l in entry:
+ key = l[0].lower()
+
+ if key == "cn":
+ entry.remove(l)
+
return entry
def __parse_schema_file(filename, objectClass):