Skip to content

Commit

Permalink
Merge 3a1cde1 into a548183
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRaad committed Jul 8, 2017
2 parents a548183 + 3a1cde1 commit fdc6e9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ldap.c
Expand Up @@ -235,7 +235,6 @@ static int ldap_win_bind(struct connectdata *conn, LDAP *server,
const char *user, const char *passwd)
{
int rc = LDAP_INVALID_CREDENTIALS;
ULONG method = LDAP_AUTH_SIMPLE;

PTCHAR inuser = NULL;
PTCHAR inpass = NULL;
Expand All @@ -244,7 +243,7 @@ static int ldap_win_bind(struct connectdata *conn, LDAP *server,
inuser = Curl_convert_UTF8_to_tchar((char *) user);
inpass = Curl_convert_UTF8_to_tchar((char *) passwd);

rc = ldap_bind_s(server, inuser, inpass, method);
rc = ldap_simple_bind_s(server, inuser, inpass);

Curl_unicodefree(inuser);
Curl_unicodefree(inpass);
Expand Down

0 comments on commit fdc6e9e

Please sign in to comment.