Fix for permission issues and ldapi socket path
This commit is contained in:
parent
5ce358e414
commit
ef721290ce
@ -9,6 +9,7 @@ RUN if [ -n ${HTTP_PROXY} ] ; then sed -i -e s'/https/http/' /etc/apk/repositori
|
|||||||
RUN apk add --no-cache bash openldap openldap-back-mdb openldap-clients
|
RUN apk add --no-cache bash openldap openldap-back-mdb openldap-clients
|
||||||
|
|
||||||
ADD acl.ldif samba.ldif wurley.ldif /etc/openldap/schema/
|
ADD acl.ldif samba.ldif wurley.ldif /etc/openldap/schema/
|
||||||
|
ADD certinfo.ldif /etc/openldap/
|
||||||
RUN sed -i -e 's/dc=my-domain,dc=com/c=AU/' /etc/openldap/slapd.ldif \
|
RUN sed -i -e 's/dc=my-domain,dc=com/c=AU/' /etc/openldap/slapd.ldif \
|
||||||
&& sed -i -e 's/openldap-data/data/' /etc/openldap/slapd.ldif \
|
&& sed -i -e 's/openldap-data/data/' /etc/openldap/slapd.ldif \
|
||||||
&& mv /var/lib/openldap/openldap-data /var/lib/openldap/data \
|
&& mv /var/lib/openldap/openldap-data /var/lib/openldap/data \
|
||||||
@ -18,10 +19,9 @@ RUN sed -i -e 's/dc=my-domain,dc=com/c=AU/' /etc/openldap/slapd.ldif \
|
|||||||
&& slapadd -b cn=config -l /etc/openldap/schema/samba.ldif \
|
&& slapadd -b cn=config -l /etc/openldap/schema/samba.ldif \
|
||||||
&& slapadd -b cn=config -l /etc/openldap/schema/wurley.ldif \
|
&& slapadd -b cn=config -l /etc/openldap/schema/wurley.ldif \
|
||||||
&& slapmodify -b cn=config -l /etc/openldap/schema/acl.ldif \
|
&& slapmodify -b cn=config -l /etc/openldap/schema/acl.ldif \
|
||||||
&& chown -R ldap:ldap /etc/openldap/slapd.d /var/lib/openldap/data
|
&& slapmodify -b cn=config -l /etc/openldap/certinfo.ldif \
|
||||||
|
&& mkdir /var/lib/openldap/run \
|
||||||
ADD certinfo.ldif /etc/openldap/
|
&& chown -R ldap:ldap /etc/openldap/slapd.d /var/lib/openldap/data /var/lib/openldap/run
|
||||||
RUN slapmodify -b cn=config -l /etc/openldap/certinfo.ldif
|
|
||||||
|
|
||||||
# Starting
|
# Starting
|
||||||
ENTRYPOINT [ "/usr/sbin/slapd" ]
|
ENTRYPOINT [ "/usr/sbin/slapd" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user