[Samba] A question to Samba developers (or experienced users) about connections to a LDAP server using Unix sockets (LDAPI)

Miguel Medalha miguelmedalha at sapo.pt
Mon Feb 8 14:04:04 MST 2010


> I couldn't find any significant answer by googling this.
>

Oh well, I had just posted that when I found this :

Samba connect ldap via socket
http://lists.samba.org/archive/samba/2008-May/140869.html

«

The following setting works fine for me on a Debian testing system
and with openLDAP:

[globals]
      passdb backend = ldapsam:ldapi://

I do not have to specify the name of the socket file, since
the LDAP server and the LDAP client library are both using the
same default settings. This condition holds true if the server and
the client library have been compiled from the same source and
with the same configuration.

Furthermore, you have to ensure that slapd opens a socket
at all. This is not enabled by default.

I had to add the following to /etc/defaults/slapd:

    SLAPD_SERVICES="ldap:///  ldapi:///"  <ldapi:///%22>


The value of SLAPD_SERVICES is passed to slapd as a command-line
option by the demon startup script.
-- 
Peter Slickers

»



More information about the samba mailing list