diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/defs-nis.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/defs-nis.c b/src/defs-nis.c index 2c1e935..b4a7d33 100644 --- a/src/defs-nis.c +++ b/src/defs-nis.c @@ -80,14 +80,18 @@ static struct configuration { NULL}, {"ethers.byaddr", config_exact, FALSE, NULL, - "(&(ipHostNumber=*)(macAddress=*))", - NULL, "%{macAddress}", - NULL, "%{macAddress} %{ipHostNumber}", + "(&(macAddress=*)(cn=*)(objectclass=ieee802device))", + NULL, + "%mregsub(\"%{macaddress} %{cn}\",\"(..:..:..:..:..:..) (.*)\",\"%2\")", + NULL, + "%{macaddress} %{cn}", NULL}, {"ethers.byname", config_exact, FALSE, NULL, - "(&(ipHostNumber=*)(macAddress=*))", - NULL, "%{ipHostNumber}", - NULL, "%{macAddress} %{ipHostNumber}", + "(&(macAddress=*)(cn=*)(objectclass=ieee802device))", + NULL, + "%mregsub(\"%{macaddress} %{cn}\",\"(..:..:..:..:..:..) (.*)\",\"%1\")", + NULL, + "%{macaddress} %{cn}", NULL}, {"hosts.byaddr", config_exact, FALSE, NULL, "(&(ipHostNumber=*)(cn=*))", |
