cancel
Showing results for 
Search instead for 
Did you mean: 

Customize login username properties

sergio_tejera
Champ in-the-making
Champ in-the-making

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.

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

You could configurate an additional LDAP with:

ldap.authentication.userNameFormat = %s

So both formats are accepted.

Hyland Developer Evangelist

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?