mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
auth/gensec: keep a pointer to a possible child/sub gensec_security context
This is a hack in order to temporary implement something like: gensec_ntlmssp_server_domain(), which may be used within spnego. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11804 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 5e913af833721733c4f79f2636fc3ae19d5f42f0)
This commit is contained in:
parent
b474d135de
commit
2e6af15eb0
@ -110,6 +110,8 @@ struct gensec_security {
|
||||
* NTLM authentication backend, and user lookup (such as if no
|
||||
* PAC is found) */
|
||||
struct auth4_context *auth_context;
|
||||
|
||||
struct gensec_security *child_security;
|
||||
};
|
||||
|
||||
/* this structure is used by backends to determine the size of some critical types */
|
||||
|
@ -1260,6 +1260,9 @@ static NTSTATUS gensec_spnego_update_wrapper(struct gensec_security *gensec_secu
|
||||
&spnego_state->out_frag);
|
||||
data_blob_free(&spnego_state->in_frag);
|
||||
spnego_state->in_needed = 0;
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
gensec_security->child_security = spnego_state->sub_sec_security;
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status) &&
|
||||
!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user