Skip to content
Browse files

Update ad.py

Fixed issue with passing None to ADUser
  • Loading branch information...
1 parent 0a5360f commit 114396536b1f3a569e10dcf4747608f6edfb6531 @liveaverage liveaverage committed
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)

0 comments on commit 1143965

Please sign in to comment.
Something went wrong with that request. Please try again.