Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions user_saml-dirsrv/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM quay.io/389ds/dirsrv:latest

ENV DS_DM_PASSWORD admin

Check warning on line 3 in user_saml-dirsrv/Dockerfile

View workflow job for this annotation

GitHub Actions / Push Docker image user_saml-dirsrv:2 to GitHub Packages

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "DS_DM_PASSWORD") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/

Check warning on line 3 in user_saml-dirsrv/Dockerfile

View workflow job for this annotation

GitHub Actions / Push Docker image user_saml-dirsrv:2 to GitHub Packages

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV DS_SUFFIX_NAME dc=idptestbed

Check warning on line 4 in user_saml-dirsrv/Dockerfile

View workflow job for this annotation

GitHub Actions / Push Docker image user_saml-dirsrv:2 to GitHub Packages

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

ADD conf/* /var/opt/

RUN rm -Rf /data/*

RUN /usr/libexec/dirsrv/dscontainer -r & \
sleep 60; \
WAIT_TIME=60; \
WAIT_TIME=25; \
sleep ${WAIT_TIME}; \
while : ; do \
if /usr/libexec/dirsrv/dscontainer -H; then \
break; \
Expand All @@ -25,8 +26,9 @@
dsconf localhost schema reload; \
dsconf localhost plugin memberof enable; \
dsconf localhost plugin memberof set --autoaddoc inetOrgPerson; \
dsctl localhost restart; \
echo "### Memberof Status" \
dsconf localhost plugin memberof status; \
echo "### Memberof Show" \
dsconf localhost plugin memberof show; \
dsconf localhost backend import "dc=idptestbed" /var/opt/entries.ldif; \
rm /var/opt/entries.ldif;
Expand Down
21 changes: 21 additions & 0 deletions user_saml-dirsrv/conf/entries.ldif
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ mail: student2@idptestbed.edu
userPassword: password
nextcloudQuota: 1 GB

dn: uid=student3,ou=People,dc=idptestbed
objectClass: organizationalPerson
objectClass: person
objectClass: top
objectClass: inetuser
objectClass: inetOrgPerson
objectClass: nextcloudUser
givenName: Alice
uid: student3
sn: Alisson
cn: Alice Alisson
mail: student3@idptestbed.edu
userPassword: password
nextcloudQuota: 5 GB

dn: uid=staff1,ou=People,dc=idptestbed
objectClass: organizationalPerson
objectClass: person
Expand All @@ -78,6 +93,7 @@ objectClass: groupOfNames
cn: Students
member: uid=student1,ou=People,dc=idptestbed
member: uid=student2,ou=People,dc=idptestbed
member: uid=student3,ou=People,dc=idptestbed

dn: cn=Professors,ou=Groups,dc=idptestbed
objectClass: groupOfNames
Expand All @@ -89,3 +105,8 @@ objectClass: groupOfNames
cn: Astrophysics
member: uid=student1,ou=People,dc=idptestbed
member: uid=staff1,ou=People,dc=idptestbed

dn: cn=AGroupNameContainingMoreThan64CharactersRepeatAGroupNameContainingMoreThan64Characters,ou=Groups,dc=idptestbed
objectClass: groupOfNames
cn: AGroupNameContainingMoreThan64CharactersRepeatAGroupNameContainingMoreThan64Characters
member: uid=student3,ou=People,dc=idptestbed
Loading