cancel
Showing results for 
Search instead for 
Did you mean: 

Disable login with e-mail address?

sscbrian
Champ on-the-rise
Champ on-the-rise
An user recently found and interesting thing with our Alfresco 5.0a installation (integrated with our Active Directory servers for login).  Normally one logs in with a simple username and all is well.  However, occasionally we'll have users forget and use their e-mail address instead of simple username.  Rather than reject them, it will allow them to login, but not give them their normal dashboard and permissions!

Is there a configuration change I could easily make to disallow this e-mail address based login completely to help avoid confusion?
3 REPLIES 3

kavilash23
Champ on-the-rise
Champ on-the-rise
try to add the following line to alfresco-global.properties and restart alfresco

synchronization.autoCreatePeopleOnLogin = false

While good to know about, it unfortunately won't work in our case.  We depend on the user's account being auto-created on login as we're using LDAP authentication.  Adding users manually doesn't even seem to be an option when using LDAP.

eswbitto
Confirmed Champ
Confirmed Champ
@SSCBrian,

Unless I'm mistaken in your config. You should have your ldap settings in alfresco-global.properties configured according to the wiki. So when you restart the alfresco service the query for the ldap goes and gets updates from your ldap server. It also does this at midnight (default install) as well.

When you have

synchronization.autoCreatePeopleOnLogin = false


All it does is prohibit Alfresco from auto creating a user. It will do a check against your AD query and if it finds the user then it will authenticate. Otherwise it will create the user. By defining no auto creation then all your doing is authenticating with the AD query that you have and nothing else.

When I first was getting into Alfresco this was one of the first mistakes that I learned.