Bug 32506

Summary: Apache mod_auth_pam doesn't works
Product: Ports & Packages Reporter: Conrado Vardanega <cvarda>
Component: Individual Port(s)Assignee: Dag-Erling Smørgrav <des>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Conrado Vardanega 2001-12-04 16:00:00 UTC
After compiling it, installing and setting it up, it doesn't authenticates users on system's user database through PAM as proposed. Apache asks user for a username/password and refuses access all the time. /var/log/messages presents these lines everytime a user tries to authenticate via web:

Dec  4 13:26:13 rock httpd: adding faulty module: /usr/lib/pam_unix.so
Dec  4 13:26:13 rock httpd: unable to dlopen(/usr/lib/pam_unix.so)
Dec  4 13:26:13 rock httpd: [dlerror: /usr/lib/pam_unix.so: Undefined
symbol "pam_get_item"]
 
The /usr/lib/pam_unix.so is set as default:
-r--r--r--  1 root  wheel  4828 Oct 18 19:03 /usr/lib/pam_unix.so

Searching the web for this problem, it appears to happen only on FreeBSD. Forum posts have no replies.

Fix: 

Not known.
How-To-Repeat: Simply install it, enable the module on Apache (made automatically by port install) and set a directory to authenticate through it, as documentation states:

        AuthType Basic
        AuthName "secure area"
        require valid-user
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2002-01-30 12:47:53 UTC
Responsible Changed
From-To: freebsd-ports->ache

Over to the Apache maintainer.  This assignment would have happened 
sooner if the originator hadn't left it to us to guess which 
version of Apache he was talking about.  I've changed the Synopsis 
accordingly. :-)
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2002-01-30 13:12:47 UTC
Responsible Changed
From-To: ache->des

It have nothing common with Apache. Undefined symbol is PAM problem.
Comment 3 des 2002-01-30 16:28:42 UTC
Does this problem still occur?  If so, please show me the output of

$ objdump -T /usr/lib/pam_unix.so | grep item
$ objdump -T /usr/lib/libpam.so | grep item

DES
-- 
Dag-Erling Smorgrav - des@ofug.org
Comment 4 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2002-10-30 15:39:49 UTC
State Changed
From-To: open->closed

Feedback timeout.