diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-11-16 18:45:21 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-11-17 10:38:02 +1100 |
commit | 0238147a855c65ea0a81b0a945ae8ffd9b260c75 (patch) | |
tree | 5c92a65cc25652334944a6c29e35ac7b37a41219 /source4/scripting/python | |
parent | 39b8f31d669d157ab750e11952c7c1d26ad5e29f (diff) | |
download | samba-0238147a855c65ea0a81b0a945ae8ffd9b260c75.tar.gz samba-0238147a855c65ea0a81b0a945ae8ffd9b260c75.tar.bz2 samba-0238147a855c65ea0a81b0a945ae8ffd9b260c75.zip |
s4:provision Generate a random objectGUID for each schema record
This is needed to then create extended DNs with GUID attributes in
them, when importing from the LDIF
Andrew Bartlett
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/ms_schema.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/ms_schema.py b/source4/scripting/python/samba/ms_schema.py index a0abc337ce..a4eed581c6 100644 --- a/source4/scripting/python/samba/ms_schema.py +++ b/source4/scripting/python/samba/ms_schema.py @@ -7,6 +7,7 @@ import re import base64 +import uuid bitFields = {} @@ -227,6 +228,7 @@ def __transform_entry(entry, objectClass): entry.insert(0, ["dn", "CN=%s,${SCHEMADN}" % cn]) entry.insert(1, ["objectClass", ["top", objectClass]]) entry.insert(2, ["cn", cn]) + entry.insert(2, ["objectGUID", str(uuid.uuid4())]) for l in entry: key = l[0].lower() |