Skip to content

cli options for the daemon and basic debian packaging #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 3, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ensure required parameters are set at the time of a request
  • Loading branch information
oxpa committed Nov 2, 2016
commit 438518509deb7965e931e2760d2898a96f218df2
9 changes: 9 additions & 0 deletions nginx-ldap-auth-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,15 @@ def do_GET(self):
return

try:
# check that uri and baseDn are set
# either from cli or a request
if not ctx['url']:
self.log_message('LDAP URL is not set!')
return
if not ctx['basedn']:
self.log_message('LDAP baseDN is not set!')
return

ctx['action'] = 'initializing LDAP connection'
ldap_obj = ldap.initialize(ctx['url']);

Expand Down