Networking Forums

Networking Forums > Computer Networking > Linux Networking > NIS : auth problem with Linux nis server and SUN sparc nis client

Reply
Thread Tools Display Modes

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

 
 
froggay
Guest
Posts: n/a

 
      03-08-2006, 12:12 PM
Hello,

I'v found some very old message about this problem in this group, but
there was no solution.

I' ve set up a NIS server on a Linux machine ( ubuntu 5.01)
following this howto
http://tldp.org/HOWTO/NIS-HOWTO/index.html
http://doc.ubuntu-fr.org/serveur/nis

everything seems to be ok
my sun machine is binded to ypserv on linux

>ypwhich

inv09748 ( my linux nis server)

> ypcat passwd

cao8:$1$JL6XpfxxxxxqctkdfFSycuu/:5008:5000::/home/cao8:/usr/bin/ksh

but when i try to log with cao8 => " incorrect login"

i can only log with root

loggued with root in can do :
su - cao8
and it works fine

so ... if someone can help, i will be very gracefull

(sorry for my english, i'm french)

 
Reply With Quote
 
 
 
 
Andrei Ivanov
Guest
Posts: n/a

 
      03-08-2006, 08:08 PM
froggay <(E-Mail Removed)> wrote:
>> ypcat passwd

> cao8:$1$JL6XpfxxxxxqctkdfFSycuu/:5008:5000::/home/cao8:/usr/bin/ksh


Here one can see MD5 hash in the second field.
But Solaris (up to version 8; not sure about 9 and 10)
stores passwords differently. They are crypt()ed, and
represented by 13-character-long sequences. On Linux
one can mix crypt()ed passwords (for some users) with
MD5 hashes (for others) in /etc/shadow.

--
andrei
 
Reply With Quote
 
froggay
Guest
Posts: n/a

 
      03-09-2006, 05:39 AM
you were right.

the encrypted password differ between linux and sun

/etc/shadow from linux machine
cao8:$1$JL6Xpfw2$exxxxqctRbUkdfFSycuu/:13214:0:99999:7:::

/etc/shadow from sun (for the same password)
cao8:qSylShhxxxxv6:5008:5000::/home/cao8:/usr/bin/ksh

so here's the solve

i made a /etc/shadow-nis with the encrypted password (by sun) on linux
nis server
cao8:qSylShhxxxxv6:::::::

and a /etc/passwd-nis ( to avoid mess with local linux user)

i modified the /var/yp/Makefile with the following

MERGE_PASSWD=true
[...]
PASSWD = $(YPPWDDIR)/passwd-nis
SHADOW = $(YPPWDDIR)/shadow-nis

and everything went fine !!
(well after also a modification for auto.master (linux) /
auto_master(sun) )

 
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
Connection problem from Windows Client to Linux Server mfg Linux Networking 3 10-10-2007 12:20 PM
A Strange - 421 Service not available, remote server has closed connection - problem for Linux ftp client. vince Linux Networking 0 03-09-2007 09:35 PM
Trouble Installing Linux/Cisco VPN Client Has anyone had trouble compiling the linux cisco vpn client? Here is the output of the install script: # uname -rviosm Linux 2.4.22-1.2188.nptl #1 Wed Apr 21 20:19:18 EDT 2004 x86_64 x86_64 GNU/Linux JSH Linux Networking 4 07-02-2004 12:48 PM
Linux Router/Firewall - Linux Client problem Fry Linux Networking 6 09-06-2003 02:25 AM
freeBSD NIS-sever - LINUX(RH-9) NIS-client LOGIN/AUTH probs Thomas Zauner Linux Networking 0 08-01-2003 10:43 AM



1 2 3 4 5 6 7 8 9 10 11