Skip to content

Commit f310b2e

Browse files
committed
Removed NTLM -- duh.
1 parent b0b473f commit f310b2e

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

changelog.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
3.5.0
2-
- Support NTLM.
2+
- Retooled authentication.
33

44
3.4.0
55
- Allows choice of configuration filenames. Easy to support those with multiple Qualys accounts, and need to automate tasks.

qualysapi/config.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,6 @@ def __init__(self, filename=qcs.default_filename, remember_me=False, remember_me
145145
password = getpass.getpass('QualysGuard Password: ')
146146
self._cfgparse.set('info', 'password', password)
147147

148-
# Check for NTLM auth.
149-
if not self._cfgparse.has_option('info', 'ntlm'):
150-
self.ntlm = False
151-
else:
152-
if self._cfgparse.get('info', 'ntlm') == 'True':
153-
self.ntlm = True
154-
155148
logging.debug(self._cfgparse.items('info'))
156149

157150
if remember_me or remember_me_always:
@@ -187,10 +180,7 @@ def get_config(self):
187180

188181
def get_auth(self):
189182
''' Returns username from the configfile. '''
190-
if not self.ntlm:
191-
return (self._cfgparse.get('info', 'username'), self._cfgparse.get('info', 'password'))
192-
else:
193-
return HttpNtlmAuth(self._cfgparse.get('info', 'username'), self._cfgparse.get('info', 'password'))
183+
return (self._cfgparse.get('info', 'username'), self._cfgparse.get('info', 'password'))
194184

195185
def get_hostname(self):
196186
''' Returns hostname. '''

0 commit comments

Comments
 (0)