Description
Name Error: global name 'normalizeNTLMUsername' is not defined
Steps to reproduce
Just try NTLM authentication with moin 1.3.5.
Details
MoinMoin Version |
moin--main--1.3--patch-935 |
OS and Version |
Windows XP Pro |
Python Version |
2.4.2 |
Server Setup |
Apache 2.0.54, modpython 3.2.0b |
Server Details |
sspi-authentication |
Workaround
In file "request.py" a "self." was missing. Here is a patch (maybe line numbers are slightly off!):
- {{{Index: request.py
=================================================================== --- request.py (moin-1.3.5-patchlevel-935) +++ request.py (revision 23) @@ -437,7 +437,7 @@
- if auth_type in ['Basic', 'Digest', 'NTLM', ]:
username = env.get('REMOTE_USER',) if auth_type == 'NTLM':
- username = normalizeNTLMUsername(username) + username = self.normalizeNTLMUsername(username)
- self.auth_username = username
- def normalizeNTLMUsername(self, username):
}}}
Discussion
Plan
- Priority:
Assigned to: ThomasWaldmann
- Status: should be fixed in 1.5 as code was rewritten and moved to auth.py