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:
@ -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):
|
||||
|
Reference in New Issue
Block a user