[SCM] Samba Shared Repository - branch master updated

Nadezhda Ivanova nivanova at samba.org
Thu Nov 25 06:13:01 MST 2010


The branch, master has been updated
       via  db403ac s4-dsdb: Switched to using a dictionary in create_ou for consistency.
       via  05b8e07 s4-dsdb: Fixed wrong assignment of name attribute to description atribute in create_ou.
      from  ae61408 s4:lsa RPC server / objectclass LDB module - fix the creation of trusted domain objects

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit db403ac35dde415231498aee41b2306dfbe6a983
Author: Nadezhda Ivanova <nivanova at samba.org>
Date:   Thu Nov 25 14:25:28 2010 +0200

    s4-dsdb: Switched to using a dictionary in create_ou for consistency.
    
    Autobuild-User: Nadezhda Ivanova <nivanova at samba.org>
    Autobuild-Date: Thu Nov 25 14:12:52 CET 2010 on sn-devel-104

commit 05b8e078f4649239bda42c66966dfa5567485b6d
Author: Nadezhda Ivanova <nivanova at samba.org>
Date:   Thu Nov 25 14:02:51 2010 +0200

    s4-dsdb: Fixed wrong assignment of name attribute to description atribute in create_ou.

-----------------------------------------------------------------------

Summary of changes:
 source4/scripting/python/samba/samdb.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index a59494f..109e948 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -659,15 +659,13 @@ 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
         if name:
-             m["description"] = name
+             m["name"] = name
 
         if sd:
             assert(isinstance(sd, str) or isinstance(sd, security.descriptor))


-- 
Samba Shared Repository


More information about the samba-cvs mailing list