I am trying to set a svn server to use the linux system account for authentication instead an independent htpasswd file. I use Fedora 16 and followed this manual in order to install and set up mod_authnz_external and pwauth, then I set the /etc/httpd/conf.d/subversion.conf as follows:
LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so LoadModule authnz_external_module modules/mod_authnz_external.so AddExternalAuth pwauth /usr/local/libexec/pwauth SetExternalAuthMethod pwauth pipe <Location /svn> DAV svn SVNParentPath /var/www/svn AuthType Basic AuthName "Subversion repositories PAM" AuthBasicProvider external AuthExternal pwauth Require valid-user </Location>
But I cannot access to the repository, all passwords are rejected. The Apache log file shows the following error:
exec of '/usr/local/libexec/pwauth' failed: (13) Permission denied [Tue Jan 29 11:23:18 2013] [error] [client ::1] AuthExtern pwauth [/usr/local/libexec /pwauth]: Failed (255) for user tom [Tue Jan 29 11:23:18 2013] [error] [client ::1] user tom: authentication failure for "/svn/project/trunk": Password Mismatch
What am I doing wrong? Thanks in advance.
P.S. I have tried pwauth for apache user (sudo -u apache /usr/local/libexec/pwauth) and it works fine….