Sponsored Content
Operating Systems Solaris Experience sharing and questions for NIS migration from Solaris 8 to Linux Post 302996895 by bestard on Thursday 4th of May 2017 03:26:30 AM
Old 05-04-2017
--------
Information update.

I found something strange. I turned ypserv debug mode on, then It seemed ypserv recognized NIS domain and tried to find the user info, however, it did check passwd.adjunct.byname and then skipped and kept searching info from shadow.byname.

I tried to copy /var/yp/`domainname`/passwd.adjunct.byname to /var/yp/`domainname`/shadow.byname and re-login from NIS master again, and it worked.

I just don't know why is that? It supposed to authenticate a NIS user just like the client did.

This is ypserv debug log as below, I'm kind of week analyzing this log, maybe someone can help to find the key.
Code:
# ypserv -d
[ypserv (ypserv) 2.19]

Find securenet: 255.255.255.255 127.0.0.1
Find securenet: 255.255.248.0 172.26.80.0
ypserv.conf: dns: 0
ypserv.conf: files: 30
ypserv.conf: xfr_check_port: 1
ypserv.conf: 0.0.0.0/0.0.0.0:*:shadow.byname:2
ypserv.conf: 0.0.0.0/0.0.0.0:*:passwd.adjunct.byname:2
ypproc_domain_nonack("nistest") [From: 127.0.0.1:42028]
connect from 127.0.0.1
        -> OK.
ypproc_match(): [From: 127.0.0.1:923]
                domainname = "nistest"
                mapname = "passwd.byname"
                keydat = "testuser"
        ypdb_open("nistest", "passwd.byname")
                ->Returning OK!
Opening: nistest/passwd.byname (0) 577519b0
ypdb_close() called
connect from 127.0.0.1
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (0)
ypdb_close() called
        -> Value = "testuser:##testuser:10124:4000:19-Aug-2002:/nas/testuser:/bin/tcsh"
ypproc_match(): [From: 127.0.0.1:924]
                domainname = "nistest"
                mapname = "passwd.byname"
                keydat = "testuser"
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (0)
ypdb_close() called
connect from 127.0.0.1
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (0)
ypdb_close() called
        -> Value = "testuser:##testuser:10124:4000:19-Aug-2002:/nas/testuser:/bin/tcsh"
ypproc_match(): [From: 127.0.0.1:925]
                domainname = "nistest"
                mapname = "shadow.byname"
                keydat = "testuser"
connect from 127.0.0.1
        ypdb_open("nistest", "shadow.byname")
gdbm_open: GDBM Error Code #3
        -> Error #-1
ypproc_match(): [From: 127.0.0.1:926]
                domainname = "nistest"
                mapname = "passwd.adjunct.byname"
                keydat = "testuser"
connect from 127.0.0.1
        ypdb_open("nistest", "passwd.adjunct.byname")
                ->Returning OK!
Opening: nistest/passwd.adjunct.byname (1) 577b9760
ypdb_close() called
        -> Value = "testuser:7abi0uUn./pOk:17290::::::"
ypproc_match(): [From: 127.0.0.1:927]
                domainname = "nistest"
                mapname = "passwd.byname"
                keydat = "testuser"
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (1)
ypdb_close() called
connect from 127.0.0.1
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (1)
ypdb_close() called
        -> Value = "testuser:##testuser:10124:4000:19-Aug-2002:/nas/testuser:/bin/tcsh"
ypproc_match(): [From: 127.0.0.1:928]
                domainname = "nistest"
                mapname = "shadow.byname"
                keydat = "testuser"
connect from 127.0.0.1
        ypdb_open("nistest", "shadow.byname")
gdbm_open: GDBM Error Code #3
        -> Error #-1
ypproc_match(): [From: 127.0.0.1:929]
                domainname = "nistest"
                mapname = "passwd.adjunct.byname"
                keydat = "testuser"
connect from 127.0.0.1
        ypdb_open("nistest", "passwd.adjunct.byname")
Found: nistest/passwd.adjunct.byname (0)
ypdb_close() called
        -> Value = "testuser:7abi0uUn./pOk:17290::::::"
ypproc_match(): [From: 127.0.0.1:930]
                domainname = "nistest"
                mapname = "passwd.byname"
                keydat = "testuser"
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (1)
ypdb_close() called
connect from 127.0.0.1
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (1)
ypdb_close() called
        -> Value = "testuser:##testuser:10124:4000:19-Aug-2002:/nas/testuser:/bin/tcsh"
ypproc_match(): [From: 127.0.0.1:931]
                domainname = "nistest"
                mapname = "passwd.byname"
                keydat = "testuser"
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (1)
ypdb_close() called
connect from 127.0.0.1
        ypdb_open("nistest", "passwd.byname")
Found: nistest/passwd.byname (1)
ypdb_close() called
        -> Value = "testuser:##testuser:10124:4000:19-Aug-2002:/nas/testuser:/bin/tcsh"
ypproc_domain_nonack("nistest") [From: 172.26.80.151:59420]
connect from 172.26.80.151
        -> OK.

This User Gave Thanks to bestard For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

linux redhat and solaris NIS+

Hello all, I am wondering if anyone had success with installing a redhat linux (PC box) on a Solaris NIS+ network. I have gotten information on how to do this but have been unsuccessful. The information that I have gotten is a little out dated and is not 100%. ... (0 Replies)
Discussion started by: larry
0 Replies

2. UNIX for Advanced & Expert Users

Linux NIS sever not binding with Solaris client

I am installing a NIS master server with a linux SLES 10 SP1. And it was pretty straight forward. (Simple since it GUI ) The server can bind to itself when issue with ypwhich command. But on solaris 10 box, I set up the defaultdomain (/etc/defaultdomain) and also issue ypinit -c to startup the... (3 Replies)
Discussion started by: ibroxy
3 Replies

3. HP-UX

Migration from HP-UX to Solaris/Linux

Hi eveyone Ours is an application hosted on HP-UX 11 and we are trying to migrate the server to different flavour of UNIX. We are actually looking at the option of migrating it to Sun Solaris or Linux. We are trying to evaulate the pros and cons of migrating our application to Solaris/Linux.... (6 Replies)
Discussion started by: turaga.krishna
6 Replies

4. Linux

Migration from solaris to linux

Hi, Currently I can able to access php script from solaris. I want to access from Linux I have done the following things: 1) I have copied all the scripts from solaris to linux. 2) I have installed php,mysql,apache. I tried with http://Hostname/username/test.php . This is not working .... (6 Replies)
Discussion started by: Mani_apr08
6 Replies

5. UNIX for Dummies Questions & Answers

Interview topics or questions for unix developers with 4.years experience

Hi , I am gonna attend interview this week end for unix developer ( 4.5 years exp) opening .. Can you help me out the topics or the questions which I can expect in the interview. This is may be silly but it is very important to me. Thanks in Advance (5 Replies)
Discussion started by: arukuku
5 Replies

6. UNIX for Dummies Questions & Answers

NIS to Active Directory Migration

Hello, This is my first ever post on Unix anything :). I really am a total newb when it comes to Unix. I am fairly well versed in the Windows world though. I have a project that I was pulled into which consists on migrating our Unix servers from authenticating with NIS, over to authenticating... (1 Reply)
Discussion started by: barcode2328
1 Replies

7. Shell Programming and Scripting

ksh script migration from Solaris to Linux.

We are migrating some scripts (ksh) from Solaris 10 to Linux 2.6.32. Can someone share list of changes i need to take care for this ? Have found few of them but i am looking for a exhaustive list. Thanks. (6 Replies)
Discussion started by: Shivdatta
6 Replies

8. Solaris

User authentication failed while log in Solaris 8 client on Linux NIS server.

Based on the NIS migration tests I did and another question I posted earlier on. https://www.unix.com/solaris/272021-solaris-8-md5-encryption-support.html I tried to downgrade NIS linux encryption to DES to support solaris connection. So I modified /etc/pam.d/system-auth as below, password... (0 Replies)
Discussion started by: bestard
0 Replies
All times are GMT -4. The time now is 09:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy