create ldap conection and login files