I have added the ldap conn and search functions.