mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
dsdb: Use samdb_system_container_dn() in samldb.c
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9959 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 97b682e0eb0450513dcecb74be672e18e84fe7a2)
This commit is contained in:
parent
c14fbf24d9
commit
820752e377
@ -5390,14 +5390,9 @@ static int check_rename_constraints(struct ldb_message *msg,
|
||||
|
||||
/* Objects under CN=System */
|
||||
|
||||
dn1 = ldb_dn_copy(ac, ldb_get_default_basedn(ldb));
|
||||
dn1 = samdb_system_container_dn(ldb, ac);
|
||||
if (dn1 == NULL) return ldb_oom(ldb);
|
||||
|
||||
if ( ! ldb_dn_add_child_fmt(dn1, "CN=System")) {
|
||||
talloc_free(dn1);
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
|
||||
if ((ldb_dn_compare_base(dn1, olddn) == 0) &&
|
||||
(ldb_dn_compare_base(dn1, newdn) != 0)) {
|
||||
talloc_free(dn1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user