mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3-rpcclient: Allow choosing spnego mech: (ntlm/krb5)
This commit is contained in:
parent
2463a87177
commit
b00f9a0a2d
@ -998,11 +998,18 @@ out_free:
|
||||
pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_NTLMSSP;
|
||||
}
|
||||
if (binding->flags & DCERPC_AUTH_NTLM) {
|
||||
pipe_default_auth_type = DCERPC_AUTH_TYPE_NTLMSSP;
|
||||
if (pipe_default_auth_type == DCERPC_AUTH_TYPE_SPNEGO) {
|
||||
pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_NTLMSSP;
|
||||
} else {
|
||||
pipe_default_auth_type = DCERPC_AUTH_TYPE_NTLMSSP;
|
||||
}
|
||||
}
|
||||
if (binding->flags & DCERPC_AUTH_KRB5) {
|
||||
pipe_default_auth_type = DCERPC_AUTH_TYPE_SPNEGO;
|
||||
pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_KRB5;
|
||||
if (pipe_default_auth_type == DCERPC_AUTH_TYPE_SPNEGO) {
|
||||
pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_KRB5;
|
||||
} else {
|
||||
pipe_default_auth_type = DCERPC_AUTH_TYPE_KRB5;
|
||||
}
|
||||
}
|
||||
|
||||
if (get_cmdline_auth_info_use_kerberos(rpcclient_auth_info)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user