Actions
Bug #2763
closedSetting REMOTE_USER with lua does not work
ASK QUESTIONS IN Forums:
Description
Using a lua script for special authentication like this
lighty.req_env['REMOTE_USER'] = user
does not work, the recognized user is always REMOTE_USER.
Looking in the code of src/mod_magnet.c line 669 shows a typo that results in key = value:
const_buffer key = magnet_checkconstbuffer(L, 2); const_buffer val = magnet_checkconstbuffer(L, 2);
The second line must pick the third argument from the lua stack:
const_buffer key = magnet_checkconstbuffer(L, 2); const_buffer val = magnet_checkconstbuffer(L, 3);
Files
Updated by gstrauss about 8 years ago
- Status changed from New to Patch Pending
Thanks, flynn. Bug was introduced in c354229f and released in lighttpd 1.4.40. Will be fixed in lighttpd 1.4.44.
Updated by gstrauss almost 8 years ago
- Status changed from Patch Pending to Fixed
- % Done changed from 0 to 100
Applied in changeset c74bdf834b75dbc3e7dc566807913f91e07c6691.
Actions
Also available in: Atom