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

Re: slapd socket file name and location

On Tue, 15 Dec 2009, Dieter Kluenter wrote:

> 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

Nope :/ None of these worked as expected

slapd -h 'ldapi://test//' -u root -g root -d16384 -f slapd-1.conf
slapd -h 'ldapi://test/' -u root -g root -d16384 -f slapd-1.conf
slapd -h 'ldapi://test' -u root -g root -d16384 -f slapd-1.conf

All variants:

root@host:~# ls -al /test/
total 8
drwxr-xr-x  2 root  root 4096 Nov 24  2007 .
drwxr-xr-x 34 root  root     4096 Oct 23 12:04 ..

I tried with superuser and dedicated user, and checked all configs
ten times. Seems I need to become Jedi and use the source again :)

I also noticed this


( "Subject: URI of socket ignored by slapd (in ldap_connect_to_path),
 it always used /var/run/ldapi (aka ITS#3467,
 ITS#3518). But this bug was fixed in openldap CVS HEAD. Is it possible to
 backported it to current slapd (2.2.26-3)?" )

anyway it's quite old, related to previous branch. Maybe with 2.4.17 it's 
just some debian-related thing.

http://dtpw.pl/buell [ 25th anniversary of Buell - American Motorcycles ]
Linux aleft #1 SMP
drbd 8.3.6-(api:88/proto:86-91)
pacemaker 1.0.6-cebe2b6ff49b36b29a3bd7ada1c4701c7470febe