mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 00:05:50 +03:00
[GH-ISSUE #863] [INTEGRATION] Trying to use LLDAP with etherpad (plus ep_ldapauth_ng plugin) #312
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @esp13 on GitHub (Mar 11, 2024).
Original GitHub issue: https://github.com/lldap/lldap/issues/863
Description of the service
I'm a beginner so I have difficulties to configure correctly etherpad + ep_ldapauth_ng plugin (https://github.com/daschr/ep_ldapauth_ng#readme) to use LLDAP authentication.
Adding a working configuration for Etherpad in https://github.com/lldap/lldap/tree/main/example_configs could be usefull for other beginners :)
What you've tried
I tried this without success:
I'm not sure but this seems to be a valid command to test if an user is member of a group :
(&(objectClass=person)(memberof=cn=mylldapgroupforwitchuserscanhaveadminrights,ou=groups,dc=mysubdomain,dc=mydomain,dc=org))bug no idea how to put this into the configurationWhat's not working
In Etherpad logs I get:
Failed authentication from IP myIPWhen the password is right (more error messages when the password is wrong)
Working Bonus
I have an other etherpad plugin (ep_mypads: https://www.npmjs.com/package/ep_mypads) that is working great with this configuration:
@nitnelave commented on GitHub (Mar 12, 2024):
I think for the admin group you need to set
groupSearchto(&(objectClass=groupOfUniqueNames)(uid=mylldapgroupforwitchuserscanhaveadminrights)).If you want to have another group to control access to the directory, you can plug that in the
accountPattern:(&(objectClass=person)(uid={{username}})(memberOf=uid=mylldapgroupforwitchuserscanaccess,ou=groups,dc=example,dc=com))I think you also want
groupAttributeIsDNto be true.I don't know why you'd get an authentication error, though. Can you post the verbose LLDAP logs from trying to log in?
@esp13 commented on GitHub (Mar 12, 2024):
Thank you for your answer.
With this configuration: (I didn't add the other group to control access for now (step by step :) )so each user should be able to get standard access)
With an user test that is not part of the group mylldapgroupforwitchuserscanhaveadminrights I get this in LLDAP logs:
@nitnelave commented on GitHub (Mar 12, 2024):
That all looks correct: it first tries to bind as "test", to check the password, and that works. Then it connects as your read-only bind user to get the "test" user details, and the admin group details (which does not contain test).
What issues are you facing?
@esp13 commented on GitHub (Mar 13, 2024):
Etherpad doesn't grant access (it ask for login one more time) and in Etherpad logs I get:
Failed authentication from IP myIPEdit: I'm asking myself if I am wasting a lot of time for a plugin issue or if I misunderstood the doc. https://github.com/daschr/ep_ldapauth_ng/ I thought I could connect through ldap directly OR through ldap + OIDC but maybe I'm wrong.
@nitnelave commented on GitHub (Mar 14, 2024):
Hmm, I can help you debug the LDAP part, but it seems to be working well. At this point, you'll be better served by asking the etherpad community (or the plugin author) for help. Maybe also looking at the etherpad logs.
@esp13 commented on GitHub (Mar 29, 2024):
I think the main problem is that this ep_ldapauth_ng plugin (https://github.com/daschr/ep_ldapauth_ng#readme) isn't working with last etherpad version anymore.
Curious, I tried the older one ep_ldapauth (non _ng) plugin (https://github.com/tykeal/ep_ldapauth#readme) with this configuration :
It worked for regular users. But doesn't work for users from the mylldapgroupforwitchuserscanhaveadminrights group that don't get etherpad admin permission.
Maybe the etherpad admin login mechanism has been modified since last plugin update.