1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-14 12:59:07 +03:00

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
This commit is contained in:
Andrew Bartlett
2009-03-20 17:32:19 +11:00
parent 27c6eca04c
commit 13be4d7ff4

View File

@ -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):