Skip to content

Commit

Permalink
5.5 - Fix for ACLs not applying on first initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Aug 16, 2018
1 parent 25eb9f6 commit b734bdf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.5 2018-08-16 <dave at tiredofit dot ca>

* Fix for ACLs not applying on initial boot

## 5.4 2018-08-08 <dave at tiredofit dot ca>

* Add alternative Password Checking Module ppm.so
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ RUN set -x && \
cyrus-sasl \
coreutils \
cracklib \
cracklib-words \
libressl \
libltdl \
libuuid \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
dn: olcDatabase={1}<BACKEND>,cn=config
changeType: modify

add: olcAccess
olcAccess: to attrs=userPassword,shadowLastChange by self write by dn="cn=admin,<BASE_DN>" write by anonymous auth by * none
olcAccess: to * by self write by dn="cn=admin,<BASE_DN>" write by * none
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ delete: olcAccess
-
add: olcAccess
olcAccess: to attrs=userPassword,shadowLastChange by self write by dn="cn=admin,<BASE_DN>" write by anonymous auth by * none
olcAccess: to * by self write by dn="cn=admin,<BASE_DN>" write by dn="cn=<READONLY_USER_USER>,<BASE_DN>" read by * none
olcAccess: to * by self read by dn="cn=admin,<BASE_DN>" write by dn="cn=<READONLY_USER_USER>,<BASE_DN>" read by * none
3 changes: 2 additions & 1 deletion install/etc/cont-init.d/10-openldap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function is_new_schema() {

function ldap_add_or_modify (){
local LDIF_FILE=$1
log-helper debug "Processing file ${LDIF_FILE}"
echo "** [openldap] Processing file ${LDIF_FILE}"
sed -i "s|<BASE_DN>|${BASE_DN}|g" $LDIF_FILE
sed -i "s|<BACKEND>|${BACKEND}|g" $LDIF_FILE
if [ "${READONLY_USER,,}" == "true" ]; then
Expand Down Expand Up @@ -339,6 +339,7 @@ chown -R ldap:ldap /etc/openldap
ldap_add_or_modify "$f"
done


# Add ppolicy schema
echo "** [openldap] Adding ppolicy Schema"
schema2ldif /etc/openldap/schema/ppolicy.schema && \
Expand Down

0 comments on commit b734bdf

Please sign in to comment.