Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 2004 02:12:32 +1000
From:      Andrew Milton <akm@theinternet.com.au>
To:        Stavros M Grigorakakis <smgrig@aegean.dmst.aueb.gr>
Cc:        freebsd-current@freebsd.org
Subject:   Re: FreeBSD NIS server and LINUX NIS clients
Message-ID:  <20040519161232.GI68672@camelot.theinternet.com.au>
In-Reply-To: <3188.195.251.249.141.1084982101.squirrel@aegean.dmst.aueb.gr>
References:  <3188.195.251.249.141.1084982101.squirrel@aegean.dmst.aueb.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
+-------[ Stavros M Grigorakakis ]----------------------
|
|  FreeBSD NIS clients seem not have spotted the difference.
|  However having searched for possible implications i must point out that
| the asterisk is used in the
|  /usr/src/usr.sbin/rpc.yppasswdd/yppasswdd_server.c  (read comments line
| 348 )  so i suggest changing line 416
|   pw->pw_name, *(ptr+1) == '*' ? "*" : pw->pw_passwd,
| to
|    pw->pw_name, *(ptr+1) == ('*'||'x') ? "x" : pw->pw_passwd,


*(ptr+1) == ('*'||'x') is pretty much always going to be false, which means
you're passing the password out all the time, which is why your Linux clients
work after this change.

You might as well use the UNSECURE="TRUE" flag in the Makefile, which would
achieve the same result.

-- 
Totally Holistic Enterprises Internet|                      | Andrew Milton
The Internet (Aust) Pty Ltd          |  M:+61 416 022 411   |
ACN: 082 081 472 ABN: 83 082 081 472 |akm@theinternet.com.au| Carpe Daemon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040519161232.GI68672>