add LDAP connection functions