By: Arthur Barrett user 12 Jun 2021 at 7:23 a.m. CDT

2 Responses
Arthur Barrett gravatar
I can login to CASA in a default install OK. I assume I'm using CASA 4.2, but version 4.1 is the highest available in this bug report screen... I can't see any easy way to confirm which I have installed... I then follow these instructions to change the login from uid to mail: https://gluu.org/docs/ce/4.2/operation/faq/#request-email-instead-of-username-for-login Now CASA login fails. In the oath logs I see something like 'incorrect username' (sorry, failed to save that message...) If I use email address in place of uid, it still fails and same message. In OXD I see 'person authentication scripts' and one for CASA which does seem to try and find the primary key: ``` def getLocalPrimaryKey(self): entryManager = CdiUtil.bean(PersistenceEntryManager) config = GluuConfiguration() config = entryManager.find(config.getClass(), "ou=configuration,o=gluu") #Pick (one) attribute where user id is stored (e.g. uid/mail) uid_attr = config.getOxIDPAuthentication().get(0).getConfig().getPrimaryKey() print "Casa. init. uid attribute is '%s'" % uid_attr return uid_attr ``` I do not see the message "Casa. init. uid attribute is " appearing in the casa logs though to confirm that. Any hints as to how to 'fix' this? I did find this reference to a client reset for CASA, and I wondered if maybe that was necessary after changing from uid to mail? https://gluu.org/docs/casa/4.2/administration/faq/#in-case-of-lockout Any help appreciated, thanks!

By Arthur Barrett user 12 Jun 2021 at 8:33 p.m. CDT

Arthur Barrett gravatar
OK - I found this other support post: https://support.gluu.org/single-sign-on/7649/unable-to-login-with-email/ In oxTrust go to “manage authentication” the “manage ldap authentication” tab and press activate. Pressing ‘activate’ fixed the CASA login. It now logs in OK with email and password! Yay! But I now can’t login to oxTrust :( I’ve put a comment on that post with the details of my current error… https://support.gluu.org/single-sign-on/7649/unable-to-login-with-email/#at70043

By Arthur Barrett user 13 Jun 2021 at 5:35 a.m. CDT

Arthur Barrett gravatar
I've got both oxTrust and CASA successfully logging in using email address instead of username! YAY! How? All the details here: https://support.gluu.org/identity-management/9703/activate-ldap-with-default-settings-cant-login-to-oxtrust-ui/