Add LdapRealm authentication functions

#52