Fix ldap creation