Customize login username properties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2021 05:36 AM
Hi, im new in Alfresco, i have configured the LDAP sync to my AD and it's working well, now i want to configure the login username input for ignore the text following the '@'.
I have configured this on alfresco-global.properties.
ldap.authentication.userNameFormat = %s@domain.xx
I need, in case an email is entered, only use the email fragment before @.
Is this possible?
What file do I need to modify to do this?
I thought of doing a "split" to the login input, but I don't know where the file is on the server.
Thank you so much.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2021 08:13 AM
You could configurate an additional LDAP with:
ldap.authentication.userNameFormat = %s
So both formats are accepted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2021 06:43 AM
Hi @angelborroy , thanks for your answer.
But I think it's not what I'm looking for, if I put this it will use the full email to log in, I guess.
I have two email accounts that are 'user@mail1' and 'user@mail2' that belong to the same user. This user wants to be validated with a single account (only with the "user" of both of the emails) regardless of the email that he enters for the validation.
Is there any way to do this configuration?