Using OID SASL (DIGEST-MD5) from java app (qop: auth-conf) Error - INFO: DIGEST41:Unmatched MACs
Hi,
I'm trying to use OID's (11.1.1.7.0) SASL authentication (DIGEST-MD5) from a small Java utility and that is working. Just using
QOP "auth" (Authentication Only) or "auto-int" (Authentication with Integrity Protection) works, but when I'm setting QOP to
"auth-conf" (Authentication with Integrity and Privacy Protection) authentication works, it even retrieves some results, but then
it fails with the follwing error and hangs:
com.sun.security.sasl.digest.DigestMD5Base$DigestPrivacy unwrap
INFO: DIGEST41:Unmatched MACs
Part of the java code:
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, strURL);
env.put(Context.SECURITY_AUTHENTICATION, "DIGEST-MD5");