1
0
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:
Simo Sorce 2010-07-20 17:26:32 -04:00
parent 2463a87177
commit b00f9a0a2d

View File

@ -998,11 +998,18 @@ out_free:
pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_NTLMSSP;
}
if (binding->flags & DCERPC_AUTH_NTLM) {
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;
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)) {