LDAP User First Login RegisterExternalLogin.vm

86 views
Skip to first unread message

Mike Wunderlich

unread,
Jun 1, 2021, 9:57:55 AM6/1/21
to xnat_discussion
Hello,
We recently updated to Xnat 1.8 from xnat 1.74

Each time an LDAP user logs in for the first time they are directed to the url %siteurl%/app/template/RegisterExternalLogin.vm#! and must then press register. Which will then create the user in Xhbm_xdat_user_auth table

Is this expected behavior? We only have users access Xnat via LDAP (except the default admin account). Is there a way to simply have the ldap account register on log in if it does not already exist in the Xhbm_xdat_user_auth table?

I currently have Auto-Enable User Registration turned on, and the ldap1-providor.properties set up similar to the following.

name=AD
provider.id=ldap1
auth.method=ldap
visible=true
auto.enabled=true
auto.verified=true
address=ldap://company.com:389/DC=company,DC=com
userdn= company.com/Users/LDAPUser
password=SomePW
search.base=OU=Users
search.filter=(&(sAMAccountName={0})(memberof=CN=XnatGroup,OU=Groups,,OU=Users,DC=company,DC=com))







Duncan Smith

unread,
Jun 21, 2021, 8:08:28 AM6/21/21
to xnat_discussion
We've run into this same problem and have not found a way to bypass this RegisterExternalLogin.vm page. Our XNAT only uses LDAP authentication (aside from admin accounts) and we have no situations where a user would need to merge accounts, so this Registration page is something we'd like to remove (or hide from the user). We'd hoped the auto enable and verify would have helped, but in our testing this didn't change the first time login behaviour as you have also found.

We'd be keen to find a way to change this behaviour, if possible.

Duncan
Reply all
Reply to author
Forward
0 new messages