experchange > linux.networking

Jean F. Martinelle (07-01-19, 08:39 PM)
I am using using the nss-pam-ldapd module in a Centos 7 system i
order to obtain user attributes information from an LDAP server. The
Centos 7 system has four network interfaces, connected to different
networks.

Is it possible to configure the nss-pam-ldapd module so that it
will attempt connecting the LDAP server through one of those network
interfaces alone? The problem is that the LDAP server is reachable going
through one, and only one, of them. How can nss-pam-ldapd be told what
network interface it should use?
David W. Hodgins (07-01-19, 11:07 PM)
On Mon, 01 Jul 2019 14:39:53 -0400, Jean F. Martinelle <JFMart> wrote:

> through one, and only one, of them. How can nss-pam-ldapd be told what
> network interface it should use?


It should not be told which nic to use. What it should be told is the ip
address to use. The decision of which interface to use is controlled by
the network route assigned to each interface.

See the command ip route.


I'm not familiar with Centos 7, so it may be using the older route command.


Regards, Dave Hodgins
Grant Taylor (07-02-19, 12:54 AM)
On 7/1/19 3:07 PM, David W. Hodgins wrote:
> It should not be told which nic to use. What it should be told is
> the ip address to use. The decision of which interface to use is
> controlled by the network route assigned to each interface.


As David says, this is a routing issue.

> I'm not familiar with Centos 7, so it may be using the older route command.
>


CentOS 7 should be using iproute2.
Similar Threads