By: Frederic Benoit user 02 Jul 2018 at 7:48 a.m. CDT

10 Responses
Frederic Benoit gravatar
Hello, I need to use GLUU for authentication on a Wordpress website. How can I import existing users (+20'000) with their current hashed passwords so they can login without changing password ? Thanks for you help.

By Michael Schwartz Account Admin 02 Jul 2018 at 9:37 a.m. CDT

Michael Schwartz gravatar
You should be able to do this by using prefixing the passwords with the hash algorithm. You may have to write a script to do this. Just google `opendj pre-encoded password import` For example, I turned up [this article](https://marginnotes2.wordpress.com/2011/07/21/opendj-using-pre-encoded-passwords/) You should also maybe check out oxd. There is a wordpress plugin: [https://gluu.org/docs/oxd/plugin/wordpress/](https://gluu.org/docs/oxd/plugin/wordpress/)

By Thomas Gasmyr Mougang staff 03 Jul 2018 at 12:08 p.m. CDT

Thomas Gasmyr Mougang gravatar
Hi Frederic, Have you managed to import users? Let's know if you need assistance. Thanks, Gasmyr.

By Frederic Benoit user 04 Jul 2018 at 1:04 a.m. CDT

Frederic Benoit gravatar
Hi Gasmyr, Thank you for your message. I was not able to import the password so far. Apparently they are salted MD5. It looks like Wordpress uses the portable PHP password hashing framework. All the passwords I have starts with $P$ So no luck so far.. Fred

By Thomas Gasmyr Mougang staff 06 Jul 2018 at 4:06 p.m. CDT

Thomas Gasmyr Mougang gravatar
Can you test this https://fr.wordpress.org/plugins/simple-ldap-login/#installation?

By Frederic Benoit user 09 Jul 2018 at 4:06 a.m. CDT

Frederic Benoit gravatar
Hi Gasmyr. Thanks for pointing me to this plugin, but unfortunately I can't find the right settings to connect to oxd / gluu. Though the approach of this plugin (fallback to WP login if LDAP fails) looks fine to me. But in my case I want to login using the form on OP server. I don't want to use the wordpress login form. So I'm now thinking of using an interception script to check credentials on WP server using some webservice when LDAP fails and to create an LDAP account if credentials match on Wordpress. Do you think this is a valid approach ? Thanks again for your help.

By Thomas Gasmyr Mougang staff 09 Jul 2018 at 11:27 a.m. CDT

Thomas Gasmyr Mougang gravatar
Hi, The idea was that you can use that plugin to migrate users from Wordpress to ldap then remove it and configure this(https://gluu.org/docs/oxd/plugin/wordpress/). > I can't find the right settings to connect to oxd / gluu. What de you mean? I thing there is a tab were you have to provide Gluu Ldap settings. Which setting is missing? > Do you think this is a valid approach ? Not sure.

By Thomas Gasmyr Mougang staff 16 Jul 2018 at 2:06 a.m. CDT

Thomas Gasmyr Mougang gravatar
Hello, Still need assistance on this ticket?

By Frederic Benoit user 16 Jul 2018 at 2:44 a.m. CDT

Frederic Benoit gravatar
Hello, No I think you can close the ticket. Thanks, Fred

By Alejandro Calderon user 29 Jan 2019 at 12:34 p.m. CST

Alejandro Calderon gravatar
I had been having troubles trying to connect with oxd-server, I want to connect my WordPress site with Gluu Server and to do it, I have to use oxd-server because of the plugin (OpenID Connect Single Sign-On (SSO) Plugin By Gluu) and that´s my only impediment to do it. On the other hand, I also want to import my current WP users to Gluu, even with their passwords.

By William Lowe user 29 Jan 2019 at 1:59 p.m. CST

William Lowe gravatar
You don't have to use the oxd plugin... you can use any WordPress OAuth or OpenID Connect plugin. Follow the guidance above for importing users.. you don't do that via oxd (OAuth), you do that manually by exporting from WP and importing to Gluu. If you run into specific issues, feel free to open a new ticket with information for us to reproduce.