-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
I've tested the module with both Apache 2.4 (Ubuntu 13.10) and Apache 2.2 (Ubuntu 12.04). Seems like it is not working with Apache 2.4. Although authentication works fine, authorization to view a location "Require valid-user" does not work.
My configuration:
<Directory /var/www/ad-test/>
AuthType NTLM
AuthName "AD-Test"
PythonAuthenhandler pyntlm
PythonOption Domain "TEST"
PythonOption PDC 192.168.10.99
Require valid-user
</Directory>error.log
[Tue Nov 19 13:22:31.192499 2013] [:notice] [pid 31473] [client 127.0.0.1:36344] PYNTLM: User Administrator/TEST has been authenticated to access URI /ad-test/
[Tue Nov 19 13:22:31.192574 2013] [:error] [pid 31473] [client 127.0.0.1:36344] PYNTLM: Authorization failed for Administrator and URI /ad-test/.
I've tried printing the requires passed to pyntlm.py at line 279:
rules = ''.join(req.requires()).strip()
req.log_error('PyNTLM: %s' % (rules))
if rules=='valid-user' or cacheGroups.has(rules, username):and it just outputs nothing more than 'PyNTLM: '
Metadata
Metadata
Assignees
Labels
No labels