[nycbug-talk] Apache 2 mod_auth_pam and DAV

Jonathan jonathan
Sun Dec 11 09:59:07 EST 2005


I'm trying to set up Apache 2 with mod_auth_pam and keep getting 401 
errors not matter what user and password I try.  The only entry in the 
logs is
[Sun Dec 11 09:37:04 2005] [error] [client 144.104.30.81] PAM: user 
'xxxxxxxx' - not authenticated: authentication error

My PAM.d file has (just for testing)
auth       required     /usr/lib/pam_permit.so
account    required     /usr/lib/pam_permit.so

My Apache server ID string is
Apache/2.0.55 (FreeBSD) DAV/2 PHP/5.1.1 SVN/1.3.0-rc2 mod_ssl/2.0.55 
OpenSSL/0.9.7e Server at www.kc8onw.net Port 443

uname -a
FreeBSD server.kc8onw.net 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Sat May  7 
22:11:02 EDT 2005 
root at server.kc8onw.net:/usr/obj/usr/src/sys/GENERIC  i386

My Apache config has the following for DAV and mod_auth_pam
LoadModule auth_pam_module    libexec/apache2/mod_auth_pam.so
DavLockDB /var/run/DavLock
Alias /dav /usr/local/www/dav
<Location /dav>
   AuthPAM_Enabled on
    AuthType Basic
    AuthName "General WebDAV access"
    require group svnusers
    require user jonathan
    Dav filesystem
</Location>

Does anyone have any ideas where to look next on this?  I've been poking 
around for days trying to figure this out and Google has not been much 
help in this instance (PAM: user  - "not authenticated: authentication 
error")
http://www.google.com/search?hl=en&lr=&q=PAM%3A+user++-+%22not+authenticated%3A+authentication+error%22&btnG=Search

Thank you,
Jonathan





More information about the talk mailing list