Linux NIS Problems

Linux NIS Problems

Post by Owen Funkhouse » Sat, 17 Sep 2005 08:21:55



Upon boot, I am having to execute the following commands using "root" to
allow users to connect via NIS.  I'd prefer that this be done
automatically on boot.

domainname in
service ypbind start
service autofs start

Why is this not started by default?

Below are additional details surrounding the problem:

[root]# chkconfig --list ypbind
ypbind          0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root]# service ypbind status
ypbind is stopped

[root]# chkconfig --list autofs
autofs          0:off   1:off   2:off   3:on    4:on    5:on    6:off
[root]# service autofs status
Configured Mount Points:
------------------------

Active Mount Points:
--------------------

Inside my /etc/yp.conf file, I have the following (the NIS server has
been renamed for this post):
domain in server my.nis.server.com

Inside my /etc/hosts file, I have mapped an IP address to the NIS server.

Inside my /etc/inittab file, I have:
id:5:initdefault:

To take a stab in the dark, it appears that since "domainname" is not
getting set that the ypbind and autofs services are failing to start.
However, I thought by configuring the yp.conf file would fix this.

Help?

 
 
 

Linux NIS Problems

Post by Owen Funkhouse » Sat, 17 Sep 2005 08:58:03



> Upon boot, I am having to execute the following commands using "root" to
> allow users to connect via NIS.  I'd prefer that this be done
> automatically on boot.

> domainname in
> service ypbind start
> service autofs start

> Why is this not started by default?

> Below are additional details surrounding the problem:

> [root]# chkconfig --list ypbind
> ypbind          0:off   1:off   2:on    3:on    4:on    5:on    6:off
> [root]# service ypbind status
> ypbind is stopped

> [root]# chkconfig --list autofs
> autofs          0:off   1:off   2:off   3:on    4:on    5:on    6:off
> [root]# service autofs status
> Configured Mount Points:
> ------------------------

> Active Mount Points:
> --------------------

> Inside my /etc/yp.conf file, I have the following (the NIS server has
> been renamed for this post):
> domain in server my.nis.server.com

> Inside my /etc/hosts file, I have mapped an IP address to the NIS server.

> Inside my /etc/inittab file, I have:
> id:5:initdefault:

> To take a stab in the dark, it appears that since "domainname" is not
> getting set that the ypbind and autofs services are failing to start.
> However, I thought by configuring the yp.conf file would fix this.

> Help?

Found the problem.  The NISDOMAIN variable in the /etc/sysconfig/network
file (which is sourced by /etc/rc.d/init.d/ypbind) was set to an
incorrect value.

 
 
 

1. Linux NIS Problem - Incorrect localOrderNum

I am having a problem with NIS under Redhat 6.2, kernel 2.2.18, fully
patched.
The rpms that I am running are:

     yp-tools-2.4-1
     ypserv-1.3.9-3

Both the master and slave have identical OS/kernel/patch levels.  The error
I am receiving is:


slave: Master's version not newer

A yppoll provides:


Domain bogus is supported.
Map passwd.byname has order number 988929159. [Thu May  3 17:32:39 2001]
The master server is master.


Domain bogus is supported.
Map passwd.byname has order number 988845066. [Wed May  2 18:11:06 2001]
The master server is master.

However, when I put ypserv on the slave in debug mode:


[Welcome to the NYS YP Server, version 1.3.9 (with securenets)]
Find securenet: 255.0.0.0 127.0.0.0
Find securenet: 255.0.0.0 10.0.0.0
ypserv.conf: dns: 0
ypserv.conf: 0.0.0.0/0.0.0.0:shadow.byname:2:1:2
ypserv.conf: 0.0.0.0/0.0.0.0:passwd.adjunct.byname:2:1:2
ypserv.conf: 0.0.0.0/0.0.0.0:*:0:0:2
ypproc_xfr_2_svc(): [From: 10.0.0.57:881]
        map_parms:
                domain   = "bogus"
                map      = "passwd.byname"
                ordernum = 988929159
                peer     = "master"
                transid = 19360
                prog = 1073741824
                port = 882
connect from 10.0.0.57
        db_open("bogus", "passwd.byname")
                ->Returning OK!
Opening: bogus/passwd.byname (0) 8052c38
ypdb_close() called
masterOrderNum=988929159, localOrderNum=2147483647
ypxfr: Master's version not newer

I have even attempted to compile and test the slave running version
1.3.11 of ypserv and ypxfr, but receive the same localOrderNum.

Any Ideas?  Am I doing something wrong?  Thanks for your help.

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts

2. DLPI question: valid dl_sap addresses?

3. LINUX NIS problem ...Need help

4. XBasic GUI IDE ???

5. NIS : auth problem with Linux nis server and SUN sparc nis client

6. How to see the hop count of the routing table

7. Solaris NIS server and Linux NIS client : problems

8. Reading DBase files

9. Solaris 8 Nis+ server and RH Linux 7.3 Nis+ client ---- Problems and Questions

10. Solaris 8 NIS Client Served from NIS on Linux Problem

11. Linux NIS with Solaris NIS+ server, password problems.

12. NIS : auth problem with Linux nis server and SUN sparc client

13. Would NIS+ master work with NIS+ & NIS Slave?????????