git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05b8e07
)
s4-dsdb: Switched to using a dictionary in create_ou for consistency.
author
Nadezhda Ivanova
<nivanova@samba.org>
Thu, 25 Nov 2010 12:25:28 +0000
(14:25 +0200)
committer
Nadezhda Ivanova
<nivanova@samba.org>
Thu, 25 Nov 2010 13:12:52 +0000
(14:12 +0100)
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 14:12:52 CET 2010 on sn-devel-104
source4/scripting/python/samba/samdb.py
patch
|
blob
|
history
diff --git
a/source4/scripting/python/samba/samdb.py
b/source4/scripting/python/samba/samdb.py
index b0a1c1239c8f6f9ed588f8008d0c4a16c5f5eede..109e948d5c06ac8169d8afad9bb104c1486b5ce8 100644
(file)
--- 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