This is now exactly the same actions, but just uses common code to do it.
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>
/* work out the system_dn - useful for so many calls its worth
fetching here */
- state->system_dn = ldb_dn_copy(state, state->domain_dn);
+ state->system_dn = samdb_system_container_dn(state->sam_ldb, state);
if (state->system_dn == NULL) {
return NT_STATUS_NO_MEMORY;
}
- if (!ldb_dn_add_child_fmt(state->system_dn, "CN=System")) {
- return NT_STATUS_NO_MEMORY;
- }
-
state->builtin_sid = dom_sid_parse_talloc(state, SID_BUILTIN);
if (!state->builtin_sid) {
return NT_STATUS_NO_SUCH_DOMAIN;