SUMMARY: NIS aliases SunOs 4.1.3

From: Dirk Vleugels (vleugels@do.isst.fhg.de)
Date: Mon Nov 20 1995 - 23:37:37 CST


-----BEGIN PGP SIGNED MESSAGE-----

Content-Type: text/plain; charset=us-ascii

Hi, sorry for the late summary.

The question was:

>i'm trying to add /etc/netmasks to the NIS service. The problem is that
>map request only work with the name "netmasks.byaddr", not netmasks.>

>So ypmatch xx.xx.xx.xx netmasks won't work, but
> ypmatch xx.xx.xx.xx netmasks.byaddr does.

>Is it possible to give a alias for netmasks.byaddr? The sun docu says no,
>but i thought netmasks is a default map?

>If it is not possible, will the libc still resolve name request regarding
>the /etc/netmasks file?

I got a couple of answers from:

Scott McBain <scottm@attu.lynden.com>:
>Stick the following in /var/yp/nicknames:
>netmasks netmasks.byaddr
>that should do it...

- - But this is a Solaris 2.x feature. Under SunOs 4.1.x the file is ignored.

From: Veselin Terzic <terzic@mda.ca>:

>in ypmatch.c you can find:

>struct ypalias {
> char *alias, *name;
>} ypaliases[] = {
> { "passwd", "passwd.byname" },
> { "group", "group.byname" },
> { "networks", "networks.byaddr" },
> { "hosts", "hosts.byname" },
> { "protocols", "protocols.bynumber" },
> { "services", "services.byname" },
> { "aliases", "mail.aliases" },
> { "ethers", "ethers.byname" },
>};
>
>or something similar, change it and compile ypmatch. Add this line in the
>structure:
>
> { "netmasks", "netmasks.byaddr" },

- - This works, of course. So you have a alias when calling ypmatch.

I got no answer regarding the libc call.

Finally i just tried it out:
The libc without patches happily resolves calls to the netmask.byaddr map.
The aliases are only for the user.

Thanx for the advice.

Dirk

- --
"It's 206 ms to Chicago, we've got a full disk of GIFs, half a meg of
 hypertext, it's dark, and we're wearing sunglasses."
                             "Click it." -- <bluesbros@bluesbros.com>

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQBVAgUBMLCkecFFbH0nlrO5AQEArwH9Gb3O4RBBsoPEZpLCTjPMpzM0dqF+LFaD
9a/qIh1WapvvPlGNpxZa8JR0avo6eimIqlFItm5SY4p+b4CwrtOinw==
=s9Nr
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:35 CDT