Stephen Adler adler at
Fri Aug 18 10:50:25 EDT 2006

I'm trying to get mod_auth_pam working using NIS and I'm having a bit of 
a problem.
I've downloaded mod_auth_pam, (mod_auth_pam-2.0-1.1.1.tar.gz) and did 
the required
make; make install.

I added the lines

# loading mod_auth_pam module. SA - Fri Aug 18th, 2006
LoadModule auth_pam_module modules/
LoadModule auth_sys_group_module modules/

to the /etc/httpd/conf/httpd.conf file

and restarted httpd. This worked all ok. I then created a directory 
and put an index.html file there. I also created a file localusers.conf 
with the following
# Local qmp users web directories

Alias /adler /usr/local/www/adler
<Directory /usr/local/www/adler>
  AuthType Basic
  AuthName "secure area"
#  require group adler
  require user adler

and put that in /etc/httpd/conf.d directory

Finally I surfed to http://localhost/adler and the username password 
authorization window
pops up. I put in my user name and password and the authorization fails. 
The following
text shows up in the /var/log/messages file

Aug 18 10:48:50 qmt0 ypserv[19665]: refused connect from to procedure ypproc_match 
Aug 18 10:48:50 qmt0 httpd(pam_unix)[19463]: authentication failure; 
logname= uid=48 euid=48 tty= ruser= rhost=  user=adler

So, pam authentication is being enabled, but ypserv is refusing the 
connection. I've removed /var/yp/securenets file and have restarted ypserv.

Any ideas?

Cheers. Steve.

More information about the Discuss mailing list