Add LDAP support to /api/session