hjone72/LDAP-for-Plex

No items returned

pmow opened this issue · 2 comments

pmow commented

Hello,
My ldapsearch requests are coming up empty, and I see nothing beyond the initial load in the logs. I'm using the docker container, and options being passed to ldap-for-plex are:

/opt/LDAP-for-Plex/config # cat options.json
{
        "debug": true,
        "port": 2389,
        "host": "0.0.0.0",
        "rootDN": "ou=users, o=plex.tv",
        "plexToken": "[removed]",
        "plexMachineID": "ba28a71e-74a2-4957-b36c-59960c3bb1c9",
        "plexServerName": "RanchoGrande"
}

ldapsearch seems to be making the connection, but doesn't find anything whether or not I include filters (included in the example below)

ldapsearch   -x -P 2 -H 'ldap://localhost:2389' 'ou=users,o=plex.tv'
# extended LDIF
#
# LDAPv2
# base <> (default) with scope subtree
# filter: ou=users,o=plex.tv
# requesting: ALL
#

# search result
search: 2
result: 32 No such object
text: No tree found for:

# numResponses: 1

Am I doing something wrong?

This whole project was more of a proof of concept... I am using it with Booksonic and it is still working for me. See picture for my settings.

image

Looking at ldapsearch. The following worked for me. ldapsearch -x -P 2 -H 'ldap://172.18.0.1:2389' -b 'ou=users,o=plex.tv'

pmow commented

I can confirm results using the -b switch. Although it seems I wasted your time, maybe this will serve to help others and you certainly helped me in my troubleshooting. Thank you!