summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-11-16 18:45:21 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-11-17 10:38:02 +1100
commit0238147a855c65ea0a81b0a945ae8ffd9b260c75 (patch)
tree5c92a65cc25652334944a6c29e35ac7b37a41219 /source4/scripting
parent39b8f31d669d157ab750e11952c7c1d26ad5e29f (diff)
downloadsamba-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')
-rw-r--r--source4/scripting/python/samba/ms_schema.py2
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()