Re: FreeBSD NIS server and LINUX NIS clients

From: Andrew Milton <akm_at_theinternet.com.au>
Date: Thu, 20 May 2004 02:12:32 +1000
+-------[ 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_at_theinternet.com.au| Carpe Daemon
Received on Wed May 19 2004 - 07:13:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:54 UTC