Skip to content

Commit b6d0815

Browse files
authored
Merge pull request #24 from linuxserver/self-signed-CA-support
Update nginx-ldap-auth-daemon.py
2 parents cabfaa7 + 7e724e2 commit b6d0815

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ app_setup_block: |
3434
3535
# changelog
3636
changelogs:
37+
- { date: "20.08.20:", desc: "Add support for self-signed CA certs." }
3738
- { date: "20.02.20:", desc: "Switch to python3." }
3839
- { date: "19.12.19:", desc: "Rebasing to alpine 3.11." }
3940
- { date: "01.07.19:", desc: "Fall back to base64 encoding when basic http auth is used." }

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ def do_GET(self):
214214
self.log_message('LDAP baseDN is not set!')
215215
return
216216

217+
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_ALLOW)
218+
217219
ctx['action'] = 'initializing LDAP connection'
218220
ldap_obj = ldap.initialize(ctx['url']);
219221

0 commit comments

Comments
 (0)