Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP Filter not set correctly #47

Closed
wrightsonm opened this issue Jan 19, 2021 · 2 comments
Closed

LDAP Filter not set correctly #47

wrightsonm opened this issue Jan 19, 2021 · 2 comments

Comments

@wrightsonm
Copy link

I don't think the initialisation script is setting the ldap filter correctly.

Observed setting:
/home/backuppc # cat /etc/lighttpd/auth-ldap.conf |grep ldap.filter
auth.backend.ldap.filter = "(LDAP_FILTER(objectClass=user)(sAMAccountName=$))"

Docker environment value setting:
LDAP_FILTER
(&(objectClass=user)(sAMAccountName=$))

@AngusMcGyver
Copy link
Contributor

I had the same problem. The & in the filter is a special character in sed, which is used in the entrypoint script to fill the template file.

As a quick workaround you can escape it as followed:
LDAP_FILTER=(\&(objectClass=user)(sAMAccountName=$))

AngusMcGyver added a commit to AngusMcGyver/docker-backuppc that referenced this issue Aug 3, 2021
AngusMcGyver added a commit to AngusMcGyver/docker-backuppc that referenced this issue Aug 3, 2021
@AngusMcGyver AngusMcGyver mentioned this issue Aug 3, 2021
adferrand pushed a commit that referenced this issue Aug 4, 2021
@adferrand
Copy link
Owner

This is fixed with 4.4.0-7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants