Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Usage is best shown by an example of Apache configuration: ::
PythonOption Domain WDOMAIN
PythonOption PDC 192.1.2.45
PythonOption BDC 192.1.2.46
PythonOption Require valid-user

# Bypass authentication for local clients.
# Comment these lines if they should authenticate too.
Expand Down
2 changes: 1 addition & 1 deletion pyntlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def check_authorization(req, username, proxy):
@return True if the user is authorized, False otherwise.
'''

rules = ''.join(req.requires()).strip()
rules = ''.join(req.get_options()['Require'])
if rules=='valid-user' or cacheGroups.has(rules, username):
return True
groups = []
Expand Down