Browse files

Removed original call to ADUser

Should only be called in the try/except statements.
  • Loading branch information...
1 parent 7c0b3be commit fab8a30224ce35dc8401baad391ea5381e45632a @liveaverage liveaverage committed Apr 10, 2013
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/baruwa/auth/ad.py
View
2 src/baruwa/auth/ad.py
@@ -277,8 +277,6 @@ def authenticate(self, username=None, password=None):
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.ad_search_dn, adset.ad_admin_group, adset.ad_user_group, adset.ad_auth_domain)
-
if not aduser.connect(password):
logger.warning("AD bind failed for %s\n" % username)
continue

0 comments on commit fab8a30

Please sign in to comment.