[task] optimized java ldap configuration