forked from hrektts/docker-fusiondirectory-openldap
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Fekide/testing
Fix issues with ldif files
- Loading branch information
Showing
7 changed files
with
93 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
FROM osixia/openldap:1.2.4 | ||
MAINTAINER Feki.de e.V. "[email protected]" | ||
LABEL version="1.2.4-1.3-1" | ||
|
||
ADD bootstrap /var/fusiondirectory/bootstrap | ||
ADD certs /container/service/slapd/assets/certs | ||
ADD environment /container/environment/01-custom | ||
LABEL maintainer="[email protected]"\ | ||
version="1.2.5" | ||
|
||
ARG FUSIONDIRECTORY_VERSION=1.3-1 | ||
|
||
RUN apt-key adv --keyserver keys.gnupg.net --receive-keys D744D55EACDA69FF \ | ||
&& (echo "deb https://repos.fusiondirectory.org/fusiondirectory-current/debian-stretch stretch main"; \ | ||
echo "deb https://repos.fusiondirectory.org/fusiondirectory-extra/debian-stretch stretch main") \ | ||
> /etc/apt/sources.list.d/fusiondirectory-stretch.list \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
fusiondirectory-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-argonaut-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-autofs-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-gpg-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-mail-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-postfix-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-ssh-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-sudo-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-systems-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-weblink-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-webservice-schema=${FUSIONDIRECTORY_VERSION} \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
&& (echo "deb https://repos.fusiondirectory.org/fusiondirectory-current/debian-stretch stretch main"; \ | ||
echo "deb https://repos.fusiondirectory.org/fusiondirectory-extra/debian-stretch stretch main") \ | ||
> /etc/apt/sources.list.d/fusiondirectory-stretch.list \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
fusiondirectory-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-argonaut-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-autofs-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-gpg-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-mail-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-postfix-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-ssh-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-sudo-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-systems-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-weblink-schema=${FUSIONDIRECTORY_VERSION} \ | ||
fusiondirectory-plugin-webservice-schema=${FUSIONDIRECTORY_VERSION} \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
ADD bootstrap /var/fusiondirectory/bootstrap | ||
ADD certs /container/service/slapd/assets/certs | ||
ADD environment /container/environment/01-custom | ||
|
||
COPY init.sh /sbin/init.sh | ||
RUN chmod 755 /sbin/init.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
dn: {{ LDAP_BASE_DN }} | ||
changetype: modify | ||
add: ou | ||
ou: {{ LDAP_BASE_DOMAIN }} | ||
- | ||
add: description | ||
description: {{ LDAP_BASE_DOMAIN }} | ||
- | ||
add: objectClass | ||
objectClass: gosaDepartment | ||
changetype: modify | ||
objectClass: gosaAcl | ||
changetype: modify | ||
- | ||
add: gosaAclEntry | ||
gosaAclEntry: 0:subtree:{{ CN_ADMIN_BS64 }}:{{ UID_FD_ADMIN_BS64 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '3' | ||
services: | ||
openldap: | ||
restart: always | ||
image: fekide/fusiondirectory-openldap:latest | ||
environment: | ||
- LDAP_ORGANISATION="Example Organization" | ||
- LDAP_DOMAIN=example.org | ||
- LDAP_ADMIN_PASSWORD=adminpwd | ||
- LDAP_CONFIG_PASSWORD=configpwd | ||
|
||
- LDAP_READONLY_USER=true | ||
- LDAP_READONLY_USER_USERNAME=reader | ||
- LDAP_READONLY_USER_PASSWORD=readerpwd | ||
|
||
- FD_ADMIN_PASSWORD=fdadminpwd | ||
|
||
- LDAP_TLS=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters