summaryrefslogtreecommitdiff
path: root/usr.sbin/ypldap/parse.y
diff options
context:
space:
mode:
authoraschrijver <aschrijver@cvs.openbsd.org>2011-08-28 11:53:17 +0000
committeraschrijver <aschrijver@cvs.openbsd.org>2011-08-28 11:53:17 +0000
commit75a68c8a8d1381252db64db52c5263837c7d1fd2 (patch)
treea1b161f91c28696593908c8648e7799855f45109 /usr.sbin/ypldap/parse.y
parentd6ff382e6294cf1405ed0d0b629ab0494e3c7925 (diff)
Add support for the netid.byname YP map. This map is used by getgrouplist(3),
which is used by (amongst other things) initgroups(3) to set the supplemantary groups on login. OK pyr@
Diffstat (limited to 'usr.sbin/ypldap/parse.y')
-rw-r--r--usr.sbin/ypldap/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ypldap/parse.y b/usr.sbin/ypldap/parse.y
index d70e821eb1e..ae55fda5873 100644
--- a/usr.sbin/ypldap/parse.y
+++ b/usr.sbin/ypldap/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.9 2010/08/03 18:42:41 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.10 2011/08/28 11:53:16 aschrijver Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -295,6 +295,8 @@ main : INTERVAL NUMBER {
conf->sc_flags |= YPMAP_GROUP_BYNAME;
else if (strcmp($3, "group.bygid") == 0)
conf->sc_flags |= YPMAP_GROUP_BYGID;
+ else if (strcmp($3, "netid.byname") == 0)
+ conf->sc_flags |= YPMAP_NETID_BYNAME;
else {
yyerror("unsupported map type: %s", $3);
free($3);