summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/python/samba/samdb.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index b0a1c1239c..109e948d5c 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -659,10 +659,8 @@ accountExpires: %u
:param sd: security descriptor of the object, can be
an SDDL string or security.descriptor type
"""
- m = ldb.Message()
- m.dn = ldb.Dn(self, ou_dn)
- m["ou"] = ou_dn.split(",")[0][3:]
- m["objectClass"] = "organizationalUnit"
+ m = {"dn": ou_dn,
+ "objectClass": "organizationalUnit"}
if description:
m["description"] = description