if hardcoded userDn/password works then there's something setting
ldap.base.userDn and ldap.base.password to incorrect values