add ldap realm support