From 6262fd4ebc514b8c6ba80f25a21b8837e6a47ce2 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 21 Apr 2014 23:48:33 -0400 Subject: Correct the NIS defaults for "hosts" maps The values for NIS hosts.byname and hosts.byaddr maps should start with addresses, not names. Reported by Rik Megens. --- src/defs-nis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/defs-nis.c b/src/defs-nis.c index efd9a37..3d2b9e9 100644 --- a/src/defs-nis.c +++ b/src/defs-nis.c @@ -1,5 +1,5 @@ /* - * Copyright 2008,2009,2011,2012 Red Hat, Inc. + * Copyright 2008,2009,2011,2012,2014 Red Hat, Inc. * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -106,13 +106,13 @@ static struct configuration { NULL}, {"hosts.byaddr", config_exact, FALSE, NULL, "(&(ipHostNumber=*)(cn=*))", - "%{ipHostNumber}", NULL, - "%first(\"%{cn}\") %{ipHostNumber} %merge(\" \",\"%{cn}\")", NULL, + NULL, "%{ipHostNumber}", + NULL, "%{ipHostNumber} %merge(\" \",\"%{cn}\")", NULL}, {"hosts.byname", config_exact, FALSE, NULL, "(&(ipHostNumber=*)(cn=*))", NULL, "%{cn}", - "%first(\"%{cn}\") %{ipHostNumber} %merge(\" \",\"%{cn}\")", NULL, + NULL, "%{ipHostNumber} %merge(\" \",\"%{cn}\")", NULL}, {"mail.aliases", config_exact, FALSE, NULL, "(objectClass=nisMailAlias)", -- cgit