Hi all,
I manage an XNAT (1.8.4.1) with around 200 users who are all using LDAP accounts. For various reasons, they would now like all of these accounts to become XNAT (localdb) ones, and detach this XNAT from their LDAP system.
Using examples given in
this thread, in a testing setup I have been able to use the following SQL command to create a localdb user "dtest" for an existing LDAP account with the same name:
INSERT INTO
xhbm_xdat_user_auth (created, disabled, timestamp, auth_method, auth_user, failed_login_attempts, password_updated, xdat_username)
VALUES
(now(),'1970-01-01 00:00:00', now(), 'localdb', 'dtest', 0, now(), 'dtest');
Initially I am unable to login with the localdb method for this user, but after creating a password using the "Change User Password" function from the Users page in XNAT, I can then login. I can then see the "dtest" user has both auth methods now listed in the "View Authorization Details" page.
I wanted to check before using this approach on the production instance of this XNAT, is this the correct approach to take? Are there any issues that I may run into, or things I need to be aware of?
Secondly, after using the above SQL command and creating a localdb user like that, is there a default password that would allow authentication? Or is it the case until a password is set within the UI as explained above, it would be unusable?
Thanks for your help,
Duncan