Ubuntu – ssh login with multiple LDAP bases

domainldapnsssshUbuntu

I have an OpenLDAP directory with two different doamins (DN's)
What I would like to do is allow the users to access the machines with ssh and their LDAP account. This worked fine when I only had one Directory in LDAP, but I am not able to get it working with two directories.

I've searched and tried for an solution, without any luck. Is anyone able to help me with this? I've tried to add a second base to /etc/libnss-ldap.conf but it does only allows for me lookup entries in the latter LDAP directory.

Best Answer

If you use nslcd you can have multiple entries in nslcd.conf for base.

man nscld.conf:

   base [MAP] DN
          Specifies  the  base distinguished name (DN) to use as search base.  This option may be supplied multiple times and all specified bases will
          be searched.
Related Topic