mod_auth_system on Sunos 5.5 with NIS ?

mod_auth_system on Sunos 5.5 with NIS ?

Post by Gerard Corn » Thu, 16 Mar 2000 04:00:00



Hello,

I am running Apache 1.3.12 with mod_auth_system module compiled in,
on a Sun with Sunos 5.5.

I have a restricted directory accessible only by a group of the NIS
database.

After entering the login and password on the client I get an Internal
Server Error.

I read in the Apache FAQ :

   "A typical situation for this error is when you are using the
mod_auth_dbm,
    mod_auth_msql, mod_auth_mysql, mod_auth_anon or mod_auth_cookie
    modules on their own. These are by default not authoritative, and
this will
    pass the buck on to the (non-existent) next authentication module
when
    the user ID is not in their respective database. Just add the
appropriate
    'XXXAuthoritative yes' line to the configuration."

What does mean the "XXX" in XXXAuthoritative, and where should it be
put, precisely ?

Is the "configuration" mentionned, the file src/Configuration in the
Apache dir ?

Many thanks in advance for all the help.

Grard Cornu.
Universit Lumire Lyon 2.

 
 
 

1. Sunos 5.5&HP-UX NIS server??

--
-------------------------------------
Michael Kalisz


Tel:    +46 8 4048491
Fax:    +46 8 7572969

Company:     Ericsson Radio Access AB
Department:  RSA/T/LD
Address:     164 93 Stockholm
             SWEDEN
-------------------------------------

[ solaris2.5.txt 2K ]
Hello

I want to connect a solaris 2.5 machine (SunOS 5.5 Generic sun4m sparc SUNW,SPARCstation-10)
to our HP-UX network but I've encounterd a few problems...

The main problem is that users that are not in the local passwd file (i.e NIS users) can't login.
Our NIS-server is an HP-UX machine and all yp commands work ok.

I can do "ypcat passwd" and display all user names, I can do "su - username" as root
and run as the user without any problems. Even when I do "ls -la" on the users directory
I get the right username and group name on all the files.

So as it seems the machine is aware of the users (UID, GID) but in some way does not allow them to
login.

I've tried changing the /etc/nsswitch.conf (passwd: compat and group: compat)  and
I've tried adding all kinds of + signs to my passwd,shadow and group file.

But in no way  have I managed to login as a user.

When I try to login it looks like this:
---------------------
login:username
password: #####

after a few seconds
Login incorrect
-------------------
My /etc/nsswitch.conf looks like this:
---------------------------------------------------------------------------
#
# /etc/nsswitch.nis:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd:     files nis
group:      files nis

# consult /etc "files" only if nis is down.
hosts:      nis [NOTFOUND=return] files
networks:   nis [NOTFOUND=return] files
protocols:  nis [NOTFOUND=return] files
rpc:        nis [NOTFOUND=return] files
ethers:     nis [NOTFOUND=return] files
netmasks:   nis [NOTFOUND=return] files
bootparams: nis [NOTFOUND=return] files
publickey:  nis [NOTFOUND=return] files

netgroup:   nis

automount:  files nis
aliases:    files nis

# for efficient getservbyname() avoid nis
services:   files nis
sendmailvars:   files
---------------------------------------------------------------------------

So whats the story? Is there a way to make the login process more verbose so I can
se whats wrong? Any clues?

Thanks in advance

Michael

P.S Please reply to my email adress.

2. Kernel 1.3.41 causes obtuse failures

3. SunOS 5.5 NIS clients on Linux server: problem...

4. ppclinux.apple.com

5. opendir(), SunOS 4.1.3, SunOS 5.5 compatibility

6. Ghost S3 server haunts the X setup..wha' gives batperson?

7. how do I get banner pages on SunOS 5.5 and SunOS 4.x?

8. kde1.1pre2 error in the Panel menu

9. Linux NIS talking to Sun OS 5.5 NIS

10. MS-exchange 5.5 DNS configuration on solaris 5.5

11. Framemaker 5.5/SunOS 5.7 trouble

12. NFS V2 or V3 in SunOS 5.5/5.5.1

13. is "find -local" broken in SunOS 5.5?