Initial ldap connect code