First time here? Check out the FAQ!
1

Howto migrate from openid to LDAP?

I started out using openid with Google oauth. One problem I have found is that is very dependent on the address used to reach the site and this will not fly with my current implementation. I was thinking of moving over to using LDAP instead. I got the authentication working but when I login it wants me to create a new user and then it complains that the current email and screen name is taken. How can I add an LDAP auth to exiting accounts? I already have ~30 users using the site and I don't want therm all to create new accounts. If there is some manual way to add it to their accounts I could however easily do this myself manually.

Question:

How do I migrate my current accounts from OpenID (Google) to LDAP authentication?

while's avatar
23
while
asked 2014-03-05 06:59:56 -0600, updated 2014-03-05 07:05:14 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

First, set up the LDAP configuration

  1. Get the latest version of Askbot from the github (just made a patch allowing this migration)
  2. Fill out LDAP parameters in the LDAP section of settings and enable LDAP

Then migrate each user account:

  1. Recover account via email, or log in via different login method (anything other than login name + password will work)
  2. Go to your user profile page, click "manage login methods"
  3. Enter LDAP login name and password.

Now if authentication was successful, your account is associated with the LDAP credentials.

Note: there is a common issue with setting the user login name field for the Active Directory - it is not the same as default - have a look at the help text on that setting field.

Evgeny's avatar
13.2k
Evgeny
answered 2014-03-05 20:36:28 -0600, updated 2014-03-05 20:37:56 -0600
edit flag offensive 0 remove flag delete link

Comments

Thanks! I managed to migrate the users manually in the openid association section of the admin console by entering the information manually for all users.

while's avatar while (2014-03-06 01:58:36 -0600) edit
add a comment see more comments