move ldap conf out of config, call ldap connection with user and password args