From 13be4d7ff42bd2b8bf5702a499c482404e5cd164 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 20 Mar 2009 17:32:19 +1100 Subject: 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 --- source4/scripting/python/samba/ms_schema.py | 6 ++++++ 1 file changed, 6 insertions(+) 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): -- cgit