diff --git a/README.rst b/README.rst index 0203e2e..39aa0ea 100644 --- a/README.rst +++ b/README.rst @@ -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. diff --git a/pyntlm.py b/pyntlm.py index 9d3f219..d080f32 100644 --- a/pyntlm.py +++ b/pyntlm.py @@ -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 = []