Apache SVN module and LUA authentification hook
From: Stefan Hauffe <Stefan.Hauffe_at_mgm-tp.com>
Date: Fri, 5 Jan 2018 15:00:32 +0000
I have an Apache 2.4 which shall deliver SVN repos by the http-Protocol. I'm experienced with standard Basic Authentification and path-based authorization for the Subversion repo.
In my new application, the authentication will be done by a LUA-script using the directive "LuaHookCheckUserID". Generally, the LUA script works as expected (used this documentation<https://httpd.apache.org/docs/trunk/mod/mod_lua.html#luahookcheckuserid>).
Unfortunately it seems, that the authorization file (Subversion Accessfile) is not read out correctly. I see an empty repo with my (authorized) user.
From the logfile (Debug/Error) I see, that LUA granted my user. But also a "Access denied" message on a SVN file path:
[lua:debug] [pid 6872:tid ] @/path/to/hook.lua(29): [client ip] Accepted user myuser
My simplest working LUA-Scripts goes here:
This is the configuration for the Repo:
I have a basic-auth secured repo with the same accessfile nearby and it works correctly.
Question: How can I give the "authz_svn" module my username from LUA? I think this is the problem.
Thanks and Kind Regards,
This is an archived mail posted to the Subversion Users mailing list.