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

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

Post by frog.. » Thu, 09 Mar 2006 22:34:44



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
everything seems to be ok

my sun machine is binded to ypserv on linux

Quote:>ypwhich

inv09748 ( my linux nis server)

Quote:> 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)

 
 
 

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

Post by Thommy M » Fri, 10 Mar 2006 00:13:25


Quote:> I' ve set up a NIS server on a Linux machine ( ubuntu 5.01)

If possible, configure it the other way around. As NIS(YP) is a Sun
Solaris product, use that machine as the ypserver.

Probably the problem is that the password hashing algorithms are not
the same...
When U su as root, it ignores the password check.

Quote:> (sorry for my english, i'm french)

No problem, I'm from Sweden...(bork,bork,bork ;-))

 
 
 

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

Post by frog.. » Fri, 10 Mar 2006 02:56:24


you were right.

the encrypted password differ between linux and sun ( probably due to
MD5 )

for exemple :
/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)
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) )

thanks a lot !

 
 
 

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

Post by Chris Co » Sat, 11 Mar 2006 14:33:47



> you were right.

> the encrypted password differ between linux and sun ( probably due to
> MD5 )

Solaris 10 support md5... I would think it would work there.

But yes.. for potable NIS you need to use DES passwords.

 
 
 

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

Post by Scott Packar » Wed, 29 Mar 2006 05:43:51



> you were right.

> the encrypted password differ between linux and sun ( probably due to
> MD5 )

> for exemple :
> /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)
> 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) )

Will this work the next time a user from the Sun host tries to update
his password via NIS?  I think he won't be able to update his password.

- Scott

 
 
 

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

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

inv09748 ( my linux nis server)

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)

2. Named pipe (FIFO) fills up

3. NIS+ : Can an HP be a NIS client to a Sun NIS+ server

4. IRC clients

5. Sparc SOlaris nis client to Linux NIS server

6. Newbie question, what's the distro for a Geforc4Ti?

7. Setting up Linux NIS+ client with Sun Solaris NIS+ server.

8. Tulip Driver hangs system in vanilla 2.4.17

9. NIS client on Linux with Sun NIS server.

10. freeBSD NIS-sever - LINUX(RH-9) NIS-client LOGIN/AUTH probs

11. Solaris NIS server and Linux NIS client : problems

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

13. NIS+ server/NIS client & secure rpc (keyserv) Problem