summaryrefslogtreecommitdiffstats
path: root/saslauthd
diff options
context:
space:
mode:
Diffstat (limited to 'saslauthd')
-rw-r--r--saslauthd/__init__.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py
index f04a232..4eaba67 100644
--- a/saslauthd/__init__.py
+++ b/saslauthd/__init__.py
@@ -194,7 +194,14 @@ class SASLAuthDaemon(object):
auth = Auth(domain=realm)
auth.connect()
- if auth.authenticate(login):
+ success = False
+
+ try:
+ success = auth.authenticate(login)
+ except:
+ success = False
+
+ if success:
# #1170: Catch broken pipe error (incomplete authentication request)
try:
clientsocket.send(struct.pack("!H2s", 2, "OK"))