Skip to content

Commit

Permalink
fixed user name output
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Oct 15, 2015
1 parent ee10476 commit 116d9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyAuthenNTLM2/ntlm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def print_help():
if 'member' in config and not 'group' in config:
print "Option '-m/--memeber can only be specified together with -g/--group'."
print_help()

if config['address'].startswith('ldap:'):
url = urlparse(config['address'])
port = url.port or 389
Expand All @@ -329,7 +329,7 @@ def print_help():
client.parse_ntlm_challenge(challenge)
authenticate = client.make_ntlm_authenticate()
if proxy.authenticate(authenticate):
print "User %s\\%s was authenticated." % (config['user'], config['domain'])
print "User %s\\%s was authenticated." % (config['domain'],config['user'])

# Group membership check
member = config.get('member', config['user'])
Expand Down

0 comments on commit 116d9b0

Please sign in to comment.