-
Notifications
You must be signed in to change notification settings - Fork 13
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
Debian package needs to be rebuilt on Debian update #114
Comments
Can't reproduce on my side:
Do you see what could be different on my installation? |
My startup script is |
My OpenLDAP 2.5.18 instance on debian 12.6 is also working perfectly. Could you give more details for reproducing the bug? |
Also no problem with debian:stable docker image:
|
Here is my Dockerfile (users are Lemonldap Demo users): FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
gpg \
wget && \
curl https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project | gpg --dearmor > /usr/share/keyrings/ltb-project-openldap-archive-keyring.gpg && \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/ltb-project-openldap-archive-keyring.gpg] https://ltb-project.org/debian/openldap25/bookworm bookworm main" > /etc/apt/sources.list.d/ltb-project.list && \
apt-get update && \
apt-get install -y openldap-ltb openldap-ltb-contrib-overlays openldap-ltb-mdb-utils ldap-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./ldif/config-20230322180123.ldif /var/backups/openldap/
COPY ./ldif/base_ldap_users.ldif /tmp
RUN rm -rf /usr/local/openldap/var/lib/ldap /usr/local/openldap/etc/openldap/slapd.d && \
mkdir -p /usr/local/openldap/var/lib/ldap && \
chown -R ldap:ldap /usr/local/openldap/var/lib/ldap && \
mkdir -p /usr/local/openldap/etc/openldap/slapd.d && \
chown -R ldap:ldap /usr/local/openldap/etc/openldap/slapd.d && \
usr/local/openldap/sbin/slapd-cli restoreconfig -b /var/backups/openldap/config-20230322180123.ldif && \
mkdir -p /usr/local/openldap/var/lib/ldap/data && \
chown -R ldap:ldap /usr/local/openldap/var/lib/ldap/data && \
/usr/local/openldap/sbin/slapadd -F /usr/local/openldap/etc/openldap/slapd.d/ -b "dc=example,dc=com" -l /tmp/base_ldap_users.ldif
EXPOSE 389
VOLUME /usr/local/openldap/var/openldap-data
CMD ["/usr/local/openldap/libexec/slapd", "-h", "ldap://*", "-u", "ldap", "-g", "ldap", "-d", "256"] Worked fine until this month |
@guimard I have rebuilt and run your image just fine. No problem at all. I suspect a problem with:
Especially, take care about the permissions: are the permissions correct on the data? If you have mounted a volume, you must ensure that your data belongs to ldap:ldap. Anyway, there does not seem to be any problem with openldap-ltb packaging by themselves. |
Hi, May be related to rroemhild/docker-test-openldap#51 ? Could you try to add François |
Thanks a lot, this fixes my issue! |
After Bookworm update, my Openldap-LTB refuses to start:
(same with Bullseye)
The text was updated successfully, but these errors were encountered: