Skip to content

Commit ff005c3

Browse files
committed
fixes slapd tcp bind is network not interface, and so does not respond on overlay networks #35
1 parent eb326d3 commit ff005c3

File tree

8 files changed

+12
-2
lines changed

8 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Changelog
22

33
## 1.1.2
4-
Merge pull request Honor LDAP_LOG_LEVEL on startup #39
4+
Merge pull request :
5+
- Honor LDAP_LOG_LEVEL on startup #39
6+
7+
Fix :
8+
- slapd tcp bind is network not interface, and so does not respond on overlay networks #35
9+
- specify base_dn without domain #37
510

611
## 1.1.1
712
Update to light-baseimage:0.2.2

image/service/slapd/process.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ log-helper level eq trace && set -x
99
# see https://github.com/docker/docker/issues/8231
1010
ulimit -n 1024
1111

12-
exec /usr/sbin/slapd -h "ldap://$HOSTNAME ldaps://$HOSTNAME ldap://localhost ldaps://localhost ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL
12+
exec /usr/sbin/slapd -h "ldap://$HOSTNAME ldaps://$HOSTNAME ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL

image/service/slapd/startup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,4 +337,9 @@ fi
337337
ln -sf ${CONTAINER_SERVICE_DIR}/slapd/assets/.ldaprc $HOME/.ldaprc
338338
ln -sf ${CONTAINER_SERVICE_DIR}/slapd/assets/ldap.conf /etc/ldap/ldap.conf
339339

340+
# force OpenLDAP to listen on all interfaces
341+
ETC_HOSTS=$(cat /etc/hosts | sed "/$HOSTNAME/d")
342+
echo "0.0.0.0 $HOSTNAME" > /etc/hosts
343+
echo "$ETC_HOSTS" >> /etc/hosts
344+
340345
exit 0

test/database/__db.001

0 Bytes
Binary file not shown.

test/database/__db.002

0 Bytes
Binary file not shown.

test/database/__db.003

0 Bytes
Binary file not shown.

test/database/alock

0 Bytes
Binary file not shown.

test/database/log.0000000001

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)