[SCM] Samba Shared Repository - branch master updated

Nadezhda Ivanova nivanova at samba.org
Tue Mar 9 05:57:15 MST 2010


The branch, master has been updated
       via  deebbe7... A helper function to get the Infrastructure DN.
      from  4b8961bc.. Fixed a bug in acl tests - python error when we create user/group/ou with a descriptor.

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


- Log -----------------------------------------------------------------
commit deebbe7cfae309baed9654e6e8354886eb3c568f
Author: Nadezhda Ivanova <nadezhda.ivanova at postpath.com>
Date:   Tue Mar 9 14:56:46 2010 +0200

    A helper function to get the Infrastructure DN.

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

Summary of changes:
 source4/dsdb/common/util.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index f597c41..9c29509 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -1069,6 +1069,18 @@ struct ldb_dn *samdb_partitions_dn(struct ldb_context *sam_ctx, TALLOC_CTX *mem_
 	return new_dn;
 }
 
+struct ldb_dn *samdb_infrastructure_dn(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx)
+{
+       struct ldb_dn *new_dn;
+
+       new_dn = ldb_dn_copy(mem_ctx, samdb_base_dn(sam_ctx));
+       if ( ! ldb_dn_add_child_fmt(new_dn, "CN=Infrastructure")) {
+               talloc_free(new_dn);
+               return NULL;
+       }
+       return new_dn;
+}
+
 struct ldb_dn *samdb_sites_dn(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx)
 {
 	struct ldb_dn *new_dn;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list