mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
dsdb: Add assert in drepl_take_FSMO_role
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
ae0ba6bd83
commit
e9faf50ee1
@ -91,11 +91,10 @@ NTSTATUS drepl_take_FSMO_role(struct irpc_message *msg,
|
||||
extended_op = DRSUAPI_EXOP_FSMO_REQ_PDC;
|
||||
break;
|
||||
default:
|
||||
DEBUG(2,("Unknown role %u in role transfer\n",
|
||||
DEBUG(0,("Unknown role %u in role transfer\n",
|
||||
(unsigned)role));
|
||||
r->out.result = WERR_DS_DRA_INTERNAL_ERROR;
|
||||
talloc_free(tmp_ctx);
|
||||
return NT_STATUS_OK;
|
||||
/* IRPC messages are trusted, so this really should not happen */
|
||||
smb_panic("Unknown role despite dsdb_get_fsmo_role_info success");
|
||||
}
|
||||
|
||||
ret = samdb_dn_is_our_ntdsa(service->samdb, role_owner_dn, &is_us);
|
||||
|
Loading…
x
Reference in New Issue
Block a user