Networking Forums

Networking Forums > Computer Networking > Linux Networking > NIS client and RedHat 8

Reply
Thread Tools Display Modes

NIS client and RedHat 8

 
 
Captain Dondo
Guest
Posts: n/a

 
      10-10-2003, 12:07 PM
I'm trying to set up NIS on a couple of RH 8 boxen.

I have the server up and running correctly (I believe). At least all the
services start. I added a dummy user 'joe'.

On the client, I can change joe's password, and I can ypcat passwd and I
get the entry for joe.

But, no matter what I do, I can't get the client to authenticate against
the server. I've added what I think are the correct pam modules:

#%PAM-1.0
auth sufficient /lib/security/pam_rootok.so auth required
/lib/security/pam_unix.so auth required
/lib/security/pam_stack.so service=system-auth account required
/lib/security/pam_permit.so account required
/lib/security/pam_unix.so password required
/lib/security/pam_unix.so session required
/lib/security/pam_permit.so session required
/lib/security/pam_unix.so

and I'm running ypserv on the server in debug mode and it doesn't show any
attempt at contact when a user logs in.

What am I missing?

TIA,

-Dondo
 
Reply With Quote
 
 
 
 
Andrei Ivanov
Guest
Posts: n/a

 
      10-10-2003, 06:40 PM
Captain Dondo <(E-Mail Removed)> wrote:
>
> What am I missing?


What's in /etc/nsswitch.conf file?

--
andrei
 
Reply With Quote
 
Captain Dondo
Guest
Posts: n/a

 
      10-11-2003, 10:29 AM
On Fri, 10 Oct 2003 18:40:38 +0000, Andrei Ivanov wrote:

> Captain Dondo <(E-Mail Removed)> wrote:
>>
>> What am I missing?

>
> What's in /etc/nsswitch.conf file?


Both the client and the server are identical; I am a total newbie to NIS
so I'm guessing. I'm also really unsure of the difference in all the
different flavors of NIS/NIS+/NYS.... I tried to stay within the default
parameters supplied with my system as much as possible....

passwd: files nisplus
shadow: files nisplus
group: files nisplus
hosts: files nisplus dns
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files nisplus
rpc: files
services: files nisplus
netgroup: files nisplus
publickey: nisplus
automount: files nisplus
aliases: files nisplus

TIA,

-Dondo
 
Reply With Quote
 
Captain Dondo
Guest
Posts: n/a

 
      10-11-2003, 11:41 AM
On Sat, 11 Oct 2003 06:29:26 -0400, Captain Dondo wrote:

> On Fri, 10 Oct 2003 18:40:38 +0000, Andrei Ivanov wrote:
>
>> Captain Dondo <(E-Mail Removed)> wrote:
>>>
>>> What am I missing?

>>
>> What's in /etc/nsswitch.conf file?


Some progress....

If I change all the references in nsswitch.conf from nisplus to nis, I can
su joe and get a shell.

But I still can't log in as joe. ypserv -d dumps this:

Found: seiner.lan/passwd.byname (2)
ypdb_close() called
-> Value = "joe:$1$xxxxxxxxPch8/Be0:601:601::/home/joe:/bin/bash"
ypproc_match(): [From: 192.168.128.149:962]
domainname = "xxxxxxx.lan"
mapname = "passwd.byname"
keydat = "joe"
ypdb_open("seiner.lan", "passwd.byname")
Found: seiner.lan/passwd.byname (2)
ypdb_close() called
connect from 192.168.128.149
ypdb_open("seiner.lan", "passwd.byname")
Found: seiner.lan/passwd.byname (2)
ypdb_close() called
-> Value = "joe:$1$iHIYxxxxxxch8/Be0:601:601::/home/joe:/bin/bash"
ypproc_match(): [From: 192.168.128.149:963]
domainname = "xxxxxx.lan"
mapname = "passwd.byname"
keydat = "joe"
ypdb_open("seiner.lan", "passwd.byname")
Found: seiner.lan/passwd.byname (2)
ypdb_close() call

Googleing on this gets me comments like "Look at nsswitch.conf" but I have
no idea what I'm looking for.....

Any ideas?

-Dondo
 
Reply With Quote
 
Andrei Ivanov
Guest
Posts: n/a

 
      10-15-2003, 08:18 PM
Captain Dondo <(E-Mail Removed)> wrote:
> On Sat, 11 Oct 2003 06:29:26 -0400, Captain Dondo wrote:
>>> What's in /etc/nsswitch.conf file?

>
> Some progress....
>
> If I change all the references in nsswitch.conf from nisplus to nis, I can
> su joe and get a shell.


"nisplus" stands for NIS+, and "nis" - for NIS / Yellow Pages,
so you should use "nis".

> But I still can't log in as joe.


Is there anything in /var/log/messages?
Is there /home/joe directory (local, or mountable from remote server)?
Don't you have that same account ("joe") in the /etc/passwd file?

--
andrei
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat Linux 8 and Redhat Enterprise Linux 4 printer not configure Niraj Linux Networking 0 12-06-2006 04:51 AM
Can't get PCI Network Card to Work - Knoppix 4.0.2/Redhat 7.2/Redhat 8.0 deja@chronofish.com Linux Networking 0 11-20-2005 05:02 PM
1. Redhat linux 7.2 issue 2. Redhat enterprise linux issue Moo Linux Networking 0 08-26-2004 10:02 AM
Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update Mads Ravn Linux Networking 0 06-29-2004 05:27 PM
Samba file timestamp policy with Linux client .vs. Windows client Richard Conway Linux Networking 2 03-05-2004 07:49 AM



1 2 3 4 5 6 7 8 9 10 11