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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
while's avatar
23
while
asked 11 years ago, updated 11 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago, updated 11 years ago
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 (11 years ago)
see more comments