Skip to content

Commit 2e9b486

Browse files
committed
fix listening ports, add libldap
1 parent 965e81c commit 2e9b486

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ LABEL maintainer="aptalca"
88

99
# install packages
1010
RUN \
11+
apk add --no-cache \
12+
libldap && \
1113
apk add --no-cache --virtual=build-dependencies \
1214
build-base \
1315
openldap-dev \

root/app/ldap-backend-app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
1515
from cryptography.fernet import Fernet
1616

17-
Listen = ('localhost', 9000)
17+
Listen = ('0.0.0.0', 9000)
1818

1919
import threading
2020
from SocketServer import ThreadingMixIn

root/app/nginx-ldap-auth-daemon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
1111
from cryptography.fernet import Fernet
1212

13-
Listen = ('localhost', 8888)
13+
#Listen = ('localhost', 8888)
1414
#Listen = "/tmp/auth.sock" # Also uncomment lines in 'Requests are
1515
# processed with UNIX sockets' section below
1616

root/etc/services.d/ldap-app/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/with-contenv bash
22
exec \
3-
s6-setuidgid abc python /app/ldap-backend-app.py
3+
s6-setuidgid abc python /app/ldap-backend-app.py --host 0.0.0.0 --port 9000

root/etc/services.d/ldap-daemon/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/with-contenv bash
22

3-
exec s6-setuidgid python /app/nginx-ldap-auth-daemon.py
3+
exec s6-setuidgid abc python /app/nginx-ldap-auth-daemon.py --host 0.0.0.0 --port 8888

0 commit comments

Comments
 (0)