[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Connection to slapd on localhost

> Hello,
> Is there a way to connect to slapd via a local socket?  Not via an ip
> address?  To be more precise, does slapd offer a way to connect to it
> like that of MySQL's "/var/lib/mysql/mysql.sock" (or, /tmp/mysql.sock)
> connection option?
> We have an application that queries/searches LDAP and it runs on the
> same system as slapd.  I would prefer not to use a TCP connection for
> the ldap lookup since this can be a lot of lookups.
> If the answer is obvious, I've totally missed it.
> Thanks for your time and thoughts.

start slapd with -h ldapi://<socket_path> (remember to urlescape
the path, i.e. use %2F for '/'


Pierangelo Masarati