Closed dorianim closed 3 years ago
Alright, I did some troubleshooting, and it turns out that octoprint has to be restarted every time a new group is added. So for things to work, I had to:
Now I have the opposite Problem though: all users are members of all groups and not just the ones they should be in ...
I also found the cuase for that:
Its looks like the result
is not None over here:
https://github.com/gillg/OctoPrint-LDAP/blob/01016c2ddeb622069688db88c4acedfdf33a8afa/octoprint_auth_ldap/ldap.py#L80
Even when the group is not found.
Changing this line to
if result is not None and result[DISTINGUISHED_NAME] is not None:
Solved the issue :)
Just tuning back into this. I'll incorporate this into the codebase. Thank you!
Hi there,
I tried to set this plugin today. And I got the login to work properly :)
I am unable to sync groups, though. My settings are: Organizational Units:
role-globaladministrator
OU Filter:cn=%s
OU Member Filter:member=%s
The DN of my user is:
CN=global-admin,OU=Management,OU=GLOBAL,DC=linuxmuster,DC=lan
The DN of my group is:CN=role-globaladministrator,OU=Groups,OU=GLOBAL,DC=linuxmuster,DC=lan
Search Base is:DC=linuxmuster,DC=lan
When I try to log in, no groups are created. I also tried to crate the group
ldap
and a subgroupldap_role-globaladministrator
but that didn't work either. Am I missing something?This is the log:
Thanks in advance :)