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 .. root@host:~#
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
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=317100
quote: ( "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.
Regards, DT