[Date Prev][Date Next] [Chronological] [Thread] [Top]

DIGEST-MD5 issues in ldap_sasl_interactive_bind_s


I am using ldap_sasl_interactive_bind_s in the following way in a function (which consists of just the code below):

void* defaults = NULL; int rc = 0; defaults = lutil_sasl_defaults( ld, (char*)mechanism, NULL, (char*) dn, cred->bv_val, NULL );

rc= ldap_sasl_interactive_bind_s( ld, (char*) dn, (char*) mechanism, NULL, NULL,
LDAP_SASL_AUTOMATIC, lutil_sasl_interact, defaults );

				lutil_sasl_freedefs( defaults );

When using DIGEST-MD5, it works fine for the first time within a process, however when calling it again in a separate LDAP connection, it returns "Invalid Credentials".
Is there a problem in the code?

Any help is appreciated.


NRIs, does your family in India need money? http://creative.mediaturf.net/creatives/icicibank/ICICI_NRI_ERA.htm Open an ICICI Bank NRI savings A/c