Skip to content

Commit

Permalink
Release 7.1.11 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Mar 16, 2021
1 parent 1fd264d commit 8a71d8c
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 30 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 7.1.11 2021-03-15 <dave at tiredofit dot ca>

### Changed
- Fix sloppy S3 backup configuration


## 7.1.10 2021-02-13 <dave at tiredofit dot ca>

### Changed
Expand Down
51 changes: 25 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# hub.docker.com/r/tiredofit/openldap

[![Build Status](https://img.shields.io/docker/build/tiredofit/openldap.svg)](https://hub.docker.com/r/tiredofit/openldap)
[![Docker Pulls](https://img.shields.io/docker/pulls/tiredofit/openldap.svg)](https://hub.docker.com/r/tiredofit/openldap)
[![Docker Stars](https://img.shields.io/docker/stars/tiredofit/openldap.svg)](https://hub.docker.com/r/tiredofit/openldap)
[![Docker Layers](https://images.microbadger.com/badges/image/tiredofit/openldap.svg)](https://microbadger.com/images/tiredofit/openldap)
Expand Down Expand Up @@ -152,13 +151,13 @@ available options that can be used to customize your installation.

If `BACKUP_LOCATION` = `S3` then the following options are used.

| Parameter | Description |
| ---------------------- | --------------------------------------------------------------------------------------- |
| `BACKUP_S3_BUCKET` | S3 Bucket name e.g. 'mybucket' |
| `BACKUP_S3_HOSTNAME` | Hostname of S3 Server e.g "s3.amazonaws.com" - You can also include a port if necessary |
| `BACKUP_S3_KEY_ID` | S3 Key ID |
| `BACKUP_S3_KEY_SECRET` | S3 Key Secret |
| `BACKUP_S3_PATH` | S3 Pathname to save to e.g. '`backup`' |
| Variable | Description | Default |
| ---------------------- | --------------------------------------------------------------------------------------- | ------------- |
| `BACKUP_S3_BUCKET` | S3 Bucket name e.g. 'mybucket' | |
| `BACKUP_S3_HOST` | Hostname of S3 Server e.g "s3.amazonaws.com" - You can also include a port if necessary | |
| `BACKUP_S3_KEY_ID` | S3 Key ID | |
| `BACKUP_S3_KEY_SECRET` | S3 Key Secret | |
| `BACKUP_S3_PATH` | S3 Pathname to save to e.g. '`backup`' | |
| `BACKUP_S3_PROTOCOL` | Use either `http` or `https` to access service | `https` |
| `BACKUP_S3_URI_STYLE` | Choose either `VIRTUALHOST` or `PATH` style | `VIRTUALHOST` |

Expand Down Expand Up @@ -207,33 +206,33 @@ If you already have a check_password.conf or ppm.conf in /etc/openldap/ the foll

#### Replication options

| Variable | Description | Default |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ENABLE_REPLICATION` | Add replication capabilities. Multimaster only at present. | `false` |
| `REPLICATION_CONFIG_SYNCPROV` | olcSyncRepl options used for the config database. Without rid and provider which are automatically added based on `REPLICATION_HOSTS`. | `binddn="cn=config" bindmethod=simple credentials=$CONFIG_PASS searchbase="cn=config" type=refreshAndPersist retry="5 5 60 +" timeout=1 filter="(!(objectclass=olcGlobal))"` |
| `REPLICATION_DB_SYNCPROV` | olcSyncRepl options used for the database. Without rid and provider which are automatically added based on `REPLICATION_HOSTS`. | `binddn="cn=admin,$BASE_DN" bindmethod=simple credentials=$ADMIN_PASS searchbase="$BASE_DN" type=refreshAndPersist interval=00:00:00:10 retry="5 5 60 +" timeout=1` |
| Variable | Description | Default |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ENABLE_REPLICATION` | Add replication capabilities. Multimaster only at present. | `false` |
| `REPLICATION_CONFIG_SYNCPROV` | olcSyncRepl options used for the config database. Without rid and provider which are automatically added based on `REPLICATION_HOSTS`. | `binddn="cn=config" bindmethod=simple credentials=$CONFIG_PASS searchbase="cn=config" type=refreshAndPersist retry="5 5 60 +" timeout=1 filter="(!(objectclass=olcGlobal))"` |
| `REPLICATION_DB_SYNCPROV` | olcSyncRepl options used for the database. Without rid and provider which are automatically added based on `REPLICATION_HOSTS`. | `binddn="cn=admin,$BASE_DN" bindmethod=simple credentials=$ADMIN_PASS searchbase="$BASE_DN" type=refreshAndPersist interval=00:00:00:10 retry="5 5 60 +" timeout=1` |
| `REPLICATION_HOSTS` | list of replication hosts seperated by a space, must contain the current container hostname set by --hostname on docker run command. If replicating all hosts must be set in the same order. Example - `ldap://ldap1.example.com ldap://ldap2.example.com ldap://ldap3.example.com` |
| `WAIT_FOR_REPLICAS` | should we wait for configured replicas to come online (respond to ping) before startup? | `false` |
| `WAIT_FOR_REPLICAS` | should we wait for configured replicas to come online (respond to ping) before startup? | `false` |

#### Other environment variables

| Variable | Description | Default |
| --------------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------- |
| `CONFIG_PATH` | Configuration files path | `/etc/openldap` |
| `DB_PATH` | Data Files path | `/var/lib/openldap` |
| `REMOVE_CONFIG_AFTER_SETUP` | Delete config folder after setup. | `true` |
| `SLAPD_ARGS` | If you want to override slapd runtime arguments place here . Default (null) | |
| `SLAPD_HOSTS` | Allow overriding the default listen parameters | `ldap://$HOSTNAME ldaps://$HOSTNAME ldapi:///` |
| `ULIMIT_N` | Set Open File Descriptor Limit | `1024` |
| Variable | Description | Default |
| --------------------------- | --------------------------------------------------------------------------- | ---------------------------------------------- |
| `CONFIG_PATH` | Configuration files path | `/etc/openldap` |
| `DB_PATH` | Data Files path | `/var/lib/openldap` |
| `REMOVE_CONFIG_AFTER_SETUP` | Delete config folder after setup. | `true` |
| `SLAPD_ARGS` | If you want to override slapd runtime arguments place here . Default (null) | |
| `SLAPD_HOSTS` | Allow overriding the default listen parameters | `ldap://$HOSTNAME ldaps://$HOSTNAME ldapi:///` |
| `ULIMIT_N` | Set Open File Descriptor Limit | `1024` |

### Networking

The following ports are exposed and available to public interfaces

| Port | Description |
| ----- | --------------------------------------------- |
| `389` | LDAP |
| `636` | TLS Encrypted LDAP |
| Port | Description |
| ----- | ------------------ |
| `389` | LDAP |
| `636` | TLS Encrypted LDAP |

## Maintenance

Expand Down
Empty file modified install/assets/defaults/10-openldap
100755 → 100644
Empty file.
Empty file modified install/assets/functions/10-openldap
100755 → 100644
Empty file.
Empty file modified install/assets/slapd/config/bootstrap/default/default.sh
100755 → 100644
Empty file.
Empty file modified install/assets/slapd/schema-to-ldif.sh
100755 → 100644
Empty file.
Empty file modified install/etc/cont-init.d/10-openldap
100755 → 100644
Empty file.
Empty file modified install/etc/services.available/10-openldap/run
100755 → 100644
Empty file.
8 changes: 4 additions & 4 deletions install/etc/services.available/20-openldap-backup/run
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ move_backup() {

if var_true "$BACKUP_MD5" ; then
s3_date="$(LC_ALL=C date -u +"%a, %d %b %Y %X %z")"
s3_md5="$(libressl md5 -binary < "${tmpdir}/${target}.md5" | base64)"
sig="$(printf "PUT\n$s3_md5\n${s3_content_type}\n$s3_date\n/$S3_BUCKET/$S3_PATH/${target}.md5" | libressl sha1 -binary -hmac "${S3_KEY_SECRET}" | base64)"
s3_md5="$(openssl md5 -binary < "${tmpdir}/${target}.md5" | base64)"
sig="$(printf "PUT\n$s3_md5\n${s3_content_type}\n$s3_date\n/$S3_BUCKET/$S3_PATH/${target}.md5" | openssl sha1 -binary -hmac "${S3_KEY_SECRET}" | base64)"
print_debug "Uploading ${target}.md5 to S3"
curl -T "${tmpdir}/${target}.md5" "${S3_PROTOCOL}"://"${s3_url}"/"${S3_PATH}"/"${target}".md5 \
-H "Date: $date" \
Expand All @@ -146,8 +146,8 @@ move_backup() {
fi

s3_date="$(LC_ALL=C date -u +"%a, %d %b %Y %X %z")"
s3_md5="$(libressl md5 -binary < "${tmpdir}/${target}" | base64)"
sig="$(printf "PUT\n$s3_md5\n${s3_content_type}\n$s3_date\n/$S3_BUCKET/$S3_PATH/${target}" | libressl sha1 -binary -hmac "${S3_KEY_SECRET}" | base64)"
s3_md5="$(openssl md5 -binary < "${tmpdir}/${target}" | base64)"
sig="$(printf "PUT\n$s3_md5\n${s3_content_type}\n$s3_date\n/$S3_BUCKET/$S3_PATH/${target}" | openssl sha1 -binary -hmac "${S3_KEY_SECRET}" | base64)"
print_debug "Uploading ${target} to S3"
curl -T ${tmpdir}/"${target}" "${S3_PROTOCOL}"://"${s3_url}"/"${S3_PATH}"/"${target}" \
-H "Date: $s3_date" \
Expand Down
Empty file modified install/etc/zabbix/zabbix_agentd.conf.d/scripts/ldap-stats.sh
100755 → 100644
Empty file.
Empty file modified install/usr/local/bin/backup-now
100755 → 100644
Empty file.
Empty file modified install/usr/local/bin/change-password
100755 → 100644
Empty file.
Empty file modified install/usr/local/bin/slapd-backup
100755 → 100644
Empty file.
Empty file modified install/usr/local/bin/slapd-backup-config
100755 → 100644
Empty file.
Empty file modified install/usr/local/bin/slapd-backup-data
100755 → 100644
Empty file.
Empty file modified install/usr/local/bin/slapd-restore
100755 → 100644
Empty file.
Empty file modified install/usr/local/bin/slapd-restore-config
100755 → 100644
Empty file.
Empty file modified install/usr/local/bin/slapd-restore-data
100755 → 100644
Empty file.

0 comments on commit 8a71d8c

Please sign in to comment.