Why isn’t mod_auth_pam working with NIS?

This commit is contained in:
Ian Gulliver
2019-04-21 17:29:08 +00:00
parent 71fe4fcb56
commit 3a8ce6d5c4
4 changed files with 42 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
<!--# set var="title" value="Why isnt mod_auth_pam working with NIS?" -->
<!--# set var="date" value="February 26, 2006" -->
<!--# include file="include/top.html" -->
If youre trying to authenticate against NIS from Apache using mod\_auth\_pam, you have a problem. All (sane) Apache configurations run as a non-privileged user. All (sane) NIS servers deny requests to shadow.byname originating from ports < 1024. If you check your NIS server logs, youll find request authentication errors.
If the server youre running Apache on has no untrusted user processes (no shells, no Apache CGI uploading, etc.), you can disable port security for just that host on your NIS server. This isnt much of a security risk; you better be within the same network if you were relying on port security anyway, so host-based security is just as good (it still sucks). Just before the uncommented lines in your /etc/ypserv.conf on your NIS master, add:
<client IP address>:*:shadow.byname:none
Then restart ypserv et all. In Debian:
/etc/init.d/nis restart
If your client machine does have untrusted users, there isnt a nice solution, as far as I know.
<!--# include file="include/bottom.html" -->

View File

@@ -37,9 +37,10 @@
1. 2010-Mar-26: [Fun with map visualizations](2010-03-26-fun-with-map-visualizations.html)
1. 2010-Mar-09: [Karaoke project](2010-03-09-karaoke-project.html)
1. 2009-Sep-11: [Confusing BIND with CNAMEs](2009-09-11-confusing-bind-with-cnames.html)
1. 2009-Feb-26: [SCTP Part #1](2006-02-26-sctp-part-1.html)
1. 2009-Feb-19: [The odd case of my mugging](2019-02-19-the-odd-case-of-my-mugging.html)
1. 2009-Feb-03: [5-packet TCP connection?](2009-02-03-5-packet-tcp-connection.html)
1. 2006-Feb-26: [Why isnt mod\_auth\_pam working with NIS?](2006-02-26-why-isnt-mod_auth_pam-working-with-nis.html)
1. 2006-Feb-26: [SCTP Part #1](2006-02-26-sctp-part-1.html)
1. 2006-Feb-13: [Is sleep(3) effected by time changes?](2006-02-13-is-sleep-effected-by-time-changes.html)
1. 2006-Feb-09: [Convert all tables to InnoDB](2006-02-09-convert-all-tables-to-innodb.html)
1. 2006-Feb-09: [PHP/PERL/Ruby exploit](2006-02-09-php-perl-ruby-exploit.html)