From 7863fa21884e699bceefcf4de348b89410272fb3 Mon Sep 17 00:00:00 2001 From: Long Date: Thu, 16 Jun 2016 21:01:08 +0800 Subject: [PATCH] Change the domain in password manager from dot to null if domain name no set from username. --- pyexchange/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyexchange/connection.py b/pyexchange/connection.py index 51feb5d..f030403 100644 --- a/pyexchange/connection.py +++ b/pyexchange/connection.py @@ -40,6 +40,8 @@ def build_password_manager(self): log.debug(u'Constructing password manager') self.password_manager = HttpNtlmAuth(self.username, self.password) + if self.password_manager.domain == '.': + self.password_manager.domain = '' return self.password_manager