Skip to content

Commit f759047

Browse files
authored
Update nginx-ldap-auth-daemon.py
adds support for self-signed CA certificates
1 parent cabfaa7 commit f759047

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)