s4:rpc_server/drsuapi: make use of dcesrv_auth_session_key()
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2018 10:52:29 +0000 (11:52 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:33 +0000 (03:13 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/drsuapi/getncchanges.c

index f3f819a..9c6b980 100644 (file)
@@ -3069,7 +3069,7 @@ allowed:
        ncRoot->guid = getnc_state->ncRoot_guid;
 
        /* we need the session key for encrypting password attributes */
-       status = dcesrv_inherited_session_key(dce_call->conn, &session_key);
+       status = dcesrv_auth_session_key(dce_call, &session_key);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0,(__location__ ": Failed to get session key\n"));
                return WERR_DS_DRA_INTERNAL_ERROR;