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

Re: slapd socket file name and location



DT Piotr Wadas <pwadas@dtpw.pl> writes:

> Hello,
> I'm using openldap 2.4.17 on debian, command line for testing purposes is
>
> ---
> root@host:~# slapd -d16384 -f slapd-1.conf -u openldap -g openldap \
>         -h "ldapi:///var/run/slapd/foobar/x-mod=-rw-------"
[...]

> Filesystem directory permissions are fine, well, no matter about x-mod, 
> the problem is I cannot force different file name (location) for socket 
> file, default location seems to be build-dependent, shall I guess it's 
> debian related issue? I expect the socket file to be created where I 
> specify within "ldapi" URI. I tried a few variants of this uri, assuming I 
> misunderstood the triple slash construction, anyway I still have socket 
> file created in the same place. Isn't it supposed to create socket file 
> where specified? What I want, actually, is to start two or more 
> independent slapd servers (completely searated databases), listening on 
> IPC only, on two different IPC sockets on the same machine.

If you want to specify a path, you only should use two slashes prior
to the path specification.
-h ldapi://var/run/slapd/foobar/ 

-Dieter

-- 
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:8EF7B6C6
53°37'09,95"N
10°08'02,42"E