return NT_STATUS_OK;
}
-NTSTATUS dcesrv_auth_bind_ack(struct dcesrv_call_state *call, struct ncacn_packet *pkt)
-{
- struct dcesrv_connection *dce_conn = call->conn;
- NTSTATUS status;
-
- status = dcesrv_auth_prepare_bind_ack(call, pkt);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
-
- if (dce_conn->auth_state.auth_finished) {
- return NT_STATUS_OK;
- }
-
- status = gensec_update_ev(dce_conn->auth_state.gensec_security,
- call, call->event_ctx,
- call->in_auth_info.credentials,
- &call->out_auth_info->credentials);
-
- return dcesrv_auth_complete(call, status);
-}
-
-
/*
process the final stage of a auth request
*/
return true;
}
-bool dcesrv_auth_auth3(struct dcesrv_call_state *call)
-{
- struct dcesrv_connection *dce_conn = call->conn;
- NTSTATUS status;
- bool ok;
-
- ok = dcesrv_auth_prepare_auth3(call);
- if (!ok) {
- return false;
- }
-
- /* Pass the extra data we got from the client down to gensec for processing */
- status = gensec_update_ev(dce_conn->auth_state.gensec_security,
- call, call->event_ctx,
- call->in_auth_info.credentials,
- &call->out_auth_info->credentials);
-
- status = dcesrv_auth_complete(call, status);
- if (!NT_STATUS_IS_OK(status)) {
- return false;
- }
-
- return true;
-}
-
/*
parse any auth information from a dcerpc alter request
return false if we can't handle the auth request for some
return NT_STATUS_OK;
}
-NTSTATUS dcesrv_auth_alter_ack(struct dcesrv_call_state *call, struct ncacn_packet *pkt)
-{
- struct dcesrv_connection *dce_conn = call->conn;
- NTSTATUS status;
-
- status = dcesrv_auth_prepare_alter_ack(call, pkt);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
-
- if (dce_conn->auth_state.auth_finished) {
- return NT_STATUS_OK;
- }
-
- status = gensec_update_ev(dce_conn->auth_state.gensec_security,
- call, call->event_ctx,
- call->in_auth_info.credentials,
- &call->out_auth_info->credentials);
-
- return dcesrv_auth_complete(call, status);
-}
-
/*
check credentials on a packet
*/