[nssldap] getnetbyaddr not working with LDAP
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[nssldap] getnetbyaddr not working with LDAP
- From: Eric Ritchie <eritchie [at] interactivebrokers.com>
- To: nssldap [at] padl.com
- Subject: [nssldap] getnetbyaddr not working with LDAP
- Date: Thu, 25 Jun 2009 15:53:57 -0400
I'm converting our RedHat 4.0 systems from NIS to LDAP. I have found
that getnetbyaddr doesn't work under LDAP. It works for NIS or if I add
the entry to the local /etc/networks file.
The following perl code shows the problem:
#!/usr/local/bin/perl -w
use Socket;
$n = getnetbyname ( "nasd" );
$name = getnetbyaddr($n, AF_INET);
print "$name\n";
exit 0;
Host running NIS:
# ./eric.pl
nasd
Host running LDAP:
# ./eric.pl
Use of uninitialized value in concatenation (.) or string at ./eric.pl line 9.
The getnetbyname call works and I can print out the network IP. Can
anyone help with this? Is there a way to get the query nss_ldap issues when
getnetbyaddr is called?
Thanks
--
Eric Ritchie
- [nssldap] getnetbyaddr not working with LDAP,
Eric Ritchie