diff options
author | Nadezhda Ivanova <nivanova@samba.org> | 2010-11-25 14:25:28 +0200 |
---|---|---|
committer | Nadezhda Ivanova <nivanova@samba.org> | 2010-11-25 14:12:52 +0100 |
commit | db403ac35dde415231498aee41b2306dfbe6a983 (patch) | |
tree | 2a90d05a4351d9c6d7b7750cf8be88e1973ee083 /source4 | |
parent | 05b8e078f4649239bda42c66966dfa5567485b6d (diff) | |
download | samba-db403ac35dde415231498aee41b2306dfbe6a983.tar.gz samba-db403ac35dde415231498aee41b2306dfbe6a983.tar.bz2 samba-db403ac35dde415231498aee41b2306dfbe6a983.zip |
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
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 6 |
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 |