hjone72/LDAP-for-Plex

Wordpress Plugin Integration

Opened this issue · 11 comments

I'm trying to use my Plex LDAP server and integrate it into a wordpress plugin so that my shared users can login to a webpage using their plex credentials.

The plugin is asking for the following:

Service Account DN:
Specify the Service Account DN(distinguished Name) of the LDAP server.

Service Account Password:
Password for the Service Account in the LDAP Server.

Thank you

Tried to give that a shot earlier, but they’re required fields.

The plugin I’m trying to use is this one: https://wordpress.org/plugins/ldap-login-for-intranet-sites/

See this screenshot for the fields I need:
https://ps.w.org/ldap-login-for-intranet-sites/assets/screenshot-1.png?rev=1251801

Have you tried just putting a value in those fields?

Yeah, it just fails.

Is there a way I can add a service account to the config file?

Ended up getting it working, Just put a space for both fields and it took that.

Now users that login to the wordpress site are authenticated using the LDAP, and wordpress creates them a user based on that LDAP info. Not sure how password resets and things of that nature will work going forward, but at least they are able to login.

One other question I have. Are there attributes for Email address, First name and Last name? Ideally it'd be nice if I can pull that info into the wordpress user as well as their "username"

image

Ended up getting it working, Just put a space for both fields and it took that.

Now users that login to the wordpress site are authenticated using the LDAP, and wordpress creates them a user based on that LDAP info. Not sure how password resets and things of that nature will work going forward, but at least they are able to login.

One other question I have. Are there attributes for Email address, First name and Last name? Ideally it'd be nice if I can pull that info into the wordpress user as well as their "username"

image

I did the space and successfully tested connection to the plex-ldap container like you suggested. However when I try to test the authentication I am getting unable to find user. I have this working with nextcloud just fine and would like to have it working with wordpress as well.
What are you using for search base? I am using "ou=users, o=plex.tv"
What are you using for Username Attribute? I am using "email"

ok I can login with the email associated with the plex account. with my settings above. is there a way to use the username instead?

Have you tried (cn={0}) ?

apologies for not seeing your response. I tried what you suggested it does not work. For some reason the only authentication attribute working is "email" . Is there a way to browse the attributes and values i.e. the mappings?

never-mind - saw you had jxplorer working and used it to view the entries and thier attributes. just putting note here for anyone who comes across this.

and with the free version of the WP plugin listed here it works fine. you can only use one search attribute for free. if you want support for either you have to pay the 1 time fee for the plugin.
In free mode for search attribute you use one of the 2 below :
cn = username authentication
email = email authentication