FreeBSD NIS server and LINUX NIS clients

Andrew Milton akm at theinternet.com.au
Wed May 19 09:13:55 PDT 2004


+-------[ 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


More information about the freebsd-current mailing list