From 1161a3c3072fd8e74171dd47aa9f4306e06a6c99 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 9 Jan 2017 11:01:36 -0500 Subject: [PATCH] SASL GSSAPI bind was not being completed. --- LDAPSASL.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDAPSASL.cc b/LDAPSASL.cc index 5f820cc..8767dac 100644 --- a/LDAPSASL.cc +++ b/LDAPSASL.cc @@ -53,7 +53,7 @@ int LDAPCnx::SASLBindNext(LDAPMessage** message) { ldap_msgfree(*message); - if(ldap_result(ld, msgid, LDAP_MSG_ALL, NULL, message) != LDAP_SUCCESS) { + if(ldap_result(ld, msgid, LDAP_MSG_ALL, NULL, message) == -1) { ldap_get_option(ld, LDAP_OPT_RESULT_CODE, &res); break; }