First things first, I know enough about Linux to get myself in
trouble, and that's about it. Sorry if my questions are dumb.
I've D/Led mod_auth_pam from http://pam.sourceforge.net/mod_auth_pam/
and got it to compile, no probs, following the instructions at
http://pam.sourceforge.net/mod_auth_pam/install.html (dynamic option).
Then I've stuck the following line into my httpd.conf file:
LoadModule mod_auth_pam modules/mod_auth_pam.so
When I do a apachectl -t, I get this:
Can't locate API module structure `mod_auth_pam' in file
/opt/apache2/modules/mod_auth_pam.so: /opt/apache2/lib/libapr-0.so.0:
undefined symbol: mod_auth_pam
(note: the .so file *is* in that directory ;-)
That probably means something to most people, but it's left me drawing
a blank, and I've hunted high and low on google and cannot find
anything that explains to me (in the requisite words of two syllables
or fewer ;-) what I've done wrong. I've found a few people claiming
to have the same problem, but no solutions.
If anyone could point me in the right direction, I'd deeply appeciate
it.
One thing that puzzles me, is the third step of the compile
instructions, which go:
1) cd to the directory where you unpacked the sources
2) Type "make" and then "make install"
3) Restart Apache
No *mention* of having a LoadModule entry. So I figured "maybe it's
not necessary with this method of compiling, maybe it 'just works'".
So I just did exactly that (ie: no changes to httpd.conf at all), and
tried to add a .htaccess file to a test folder in my htdocs directory,
thus:
AuthPAM_Enabled on
AuthType Basic
AuthName "secure area"
require user Glenn
Hoping to get some sort of challenge when I browsed to that directory.
Nada.
Cheers.
Adam
Oh:
RH8, fully patched up as of today, Apache 2.0.47. (Is there any other
info I should be listing here?)
That's your answer