Simple authentication:
When using LDAP browser, I can log into company's LDAP server using plain text password by providing: CN=username,OU=users,DC=my,DC=company,DC=com. If I copy-paste this string to Tomcat's server.xml connectionName tag, and use simple authentication (plain text password is visible by using wireshark), everything works.
Encrypted password:
To server.xml JNDI realm I added the following
authentication="DIGEST-MD5"
digest='MD5'
Now, Tomcat can't bind to the LDAP.
With LDAP browser I have to provide credentials in form: domain/user, and then I can bind to LDAP using DIGEST-MD5.
Is there a special way that connectionName is specified in server.xml file so Tomcat can successfully perform binding?