problems with NIS client

From: David Guzman (david_aaron_at_softhome.net)
Date: 06/18/05


Date: Fri, 17 Jun 2005 22:57:33 -0400

Hi everyone,
I have a complicated problem, that keeps me working and reading docs for 3
days. The situation comes next. I am implementing a small network in our
lab, I have a NIS server running on FreeBSD. In my everyday machine (an
AMD64) I have installed Gentoo Stage 1. The NIS client configuration is
giving me headaches. I cannot login, I got the following message in
/var/log/pwdfail/current

Jun 17 17:04:23 [login(pam_unix)] authentication failure;
logname= uid=0 euid=0 tty=/dev/vc/3 ruser= rhost= user=david
Jun 17 17:04:25 [login] FAILED LOGIN 1 FROM /dev/vc/3 FOR david,
Authentication failure

login is reading in etc/pam.d/login, which comes next:

#%PAM-1.0

auth requisite /lib/security/pam_unix.so nullok
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so

account required /lib/security/pam_unix.so audit
account required /lib/security/pam_stack.so service=system-auth

password required /lib/security/pam_unix.so nis
password required /lib/security/pam_stack.so service=system-auth

session required /lib/security/pam_unix.so
session required /lib/security/pam_stack.so service=system-auth

I did some NIS tests on the Gentoo box and I could obtain the NIS maps:
# ypcat -k netgroup
net_adm (,netadm,ypnet.xxxx.cl)
devel (,david,ypnet.xxxx.cl) (,felipe,ypnet.xxxx.cl)
term_adm (,termadm,ypnet.xxxx.cl)

# ypcat -k netgroup.byuser
felipe.ypnet.xxxx.cl devel
david.ypnet.xxxx.cl devel
netadm.ypnet.xxxx.cl net_adm
termadm.ypnet.xxxx.cl term_adm

Even,
# ypcat passwd
david:*:1001:1001:User &:/home/david:/bin/sh

The /etc/passwd /etc/shadow and /etc/group have the corresponding netgroup
markers:
+@devel:::::: (in passwd and shadow)
+:*:: (in group)

In the FreeBSD NIS machine I got no login error messages, like password
failed or user unknown. I guess that the login process is not calling NIS,
I am only doing local authentication. Here I don't know maybe is a problem
with PAM (version 0.78-r2) or portmap (or both). Here are my current
configuration files:

--> /etc/yp.conf
ypserver bsdnis.xxxx.cl
domain ypnet.xxxx.cl broadcast

--> /etc/nsswitch.conf
passwd: compat nis
shadow: compat nis
group: compat nis
hosts: files dns
networks: files dns
services: db files nis
protocols: nis [NOTFOUND=return] db files
rpc: nis [NOTFOUND=return] db files
ethers: db files nis
netmasks: files
netgroup: nis files
bootparams: files
automount: files
aliases: files

As a test I started ypbind from command line with debug option enabled. I
got the following messages:

# ypbind -debug
parsing config file
Trying entry: ypserver bsdnis.xxxx.cl
parsed ypserver bsdnis.xxxx.cl
add_server() domain: ypnet.xxxx.cl, host: bsdnis.xxxx.cl, slot: 0
Trying entry: domain ypnet.xxxx.cl broadcast
parsed domain 'ypnet.xxxx.cl' broadcast
add_server() domain: ypnet.xxxx.cl, broadcast
[Welcome to ypbind-mt, version 1.17.2]

ping host 'bsdnis.xxxx.cl', domain 'ypnet.xxxx.cl'
Answer for domain 'ypnet.xxxx.cl' from server 'bsdnis.xxxx.cl'
Pinging all active server.
Pinging all active server.
.....

Any comments will be appreciated.
Thanks

             David



Relevant Pages

  • Re: Linux authentication via AD
    ... What I do to integrate with Windows is to use NIS and Samba. ... a way to do this under older AIX) allows people to login authenticating ... authentication is done to the Windows Password Server. ... text passwords authenticate to the Windows Password Server as well. ...
    (comp.os.linux.security)
  • NIS+ problem with user login ("...permissions too tight")
    ... Solaris-Network. ... NIS+ permissions are too tight, ... Afterwards I get the "login failed" message. ... like this it was possible to login on other machines as well, ...
    (SunManagers)
  • Re: SUMMARY: Ftp error
    ... Hal Huntley, Matthew Stier, Edward Scown, jim, Matthew Stier, Douglas Palmer ... I manually change the password for NIS user account who were not able to login and pushed the map. ... complaninng that they can not ftp. ...
    (SunManagers)
  • Re: FC and group names
    ... It is common for NIS managers to fold all group names to lower case ... At one time if the first letter of a login was typed upper ... T o m M i t c h e l l spam unwanted email. ...
    (Fedora)
  • NIS client problems
    ... I am attemting to convert two Tru64 Unix v5.1A to be NIS clients account ... The master and slave servers are two Red Hat 7.3 Linux ... but I cannot seem to login using the password configured on the NIS ...
    (Tru64-UNIX-Managers)