Skip to content

Commit

Permalink
Do not use winbind if given an NTLM password
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 19, 2014
1 parent 988cfc1 commit 8411274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ntlm.c
Expand Up @@ -167,7 +167,8 @@ int ntlm_authorization(struct openconnect_info *vpninfo, struct oc_text_buf *buf
if (vpninfo->ntlm_auth.state == AUTH_AVAILABLE) {
vpninfo->ntlm_auth.state = NTLM_MANUAL;
#ifndef _WIN32
if (!ntlm_helper_spawn(vpninfo, buf)) {
/* Don't attempt automatic NTLM auth if we were given a password */
if (!vpninfo->proxy_pass && !ntlm_helper_spawn(vpninfo, buf)) {
vpninfo->ntlm_auth.state = NTLM_SSO_REQ;
return 0;
}
Expand Down

0 comments on commit 8411274

Please sign in to comment.