1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

s4-dsdb: Switched to using a dictionary in create_ou for consistency.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 14:12:52 CET 2010 on sn-devel-104
This commit is contained in:
Nadezhda Ivanova 2010-11-25 14:25:28 +02:00
parent 05b8e078f4
commit db403ac35d

View File

@ -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