Removing LDAP/AD specific code