Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update ad.py

Fixed issue with passing None to ADUser
  • Loading branch information...
commit 114396536b1f3a569e10dcf4747608f6edfb6531 1 parent 0a5360f
@liveaverage liveaverage authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/baruwa/auth/ad.py
View
2  src/baruwa/auth/ad.py
@@ -275,7 +275,7 @@ def authenticate(self, username=None, password=None):
aduser = ADUser(username, host.address, host.port, adset.ad_search_dn, adset.ad_admin_group, adset.ad_user_group, adset.ad_auth_domain)
except MailADAuthHost.DoesNotExist:
logger.warning("No MySQL MailADAuthHost; using setting.py AD config\n")
- aduser = ADUser(username, host.address, host.port, None, None, None, None)
+ aduser = ADUser(username, host.address, host.port, adset, adset, adset, adset)
if not aduser.connect(password):
logger.warning("AD bind failed for %s\n" % username)
Please sign in to comment.
Something went wrong with that request. Please try again.