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

Re: URI syntax with back-ldap

> Hi,
> man slapd-meta(5)  describes URI syntax as follows
> uri <protocol>://[<host>[:<port>]]/<naming context>
> In order to enable suffixmassage I have following URI definition in my
> slapd.conf
> database	ldap
> lastmod off
> rewriteEngine on
> suffix	"o=HDK,c=DE"
> uri ldapi://%2Fusr%2Flocal%2Fvar%2Frun%2Fldapi/o=HDK.c=DE
> when running slapd in gdb debugger I get
> -.-.-.-.-.-.-gdb output-.-.-.-.-.-.-.-.-.-.-.-.-.-
> (gdb) exec-file slapd
> (gdb) run -h "ldapi:///"
> Starting program: /home/dieter/openldap/libexec/slapd -h "ldapi:///"
> [New Thread 16384 (LWP 2138)]
> /home/dieter/openldap/etc/openldap/slapd.conf: line 116: warning, only
> protocol, host and port allowed in "uri <uri>" line
> Program exited normally.
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.--.--.-
> If slapd is run on the command line no error occurs, is this a bug or
> normal debugging bebaviour?

back-ldap does not need the DN part of the URI; it is required that it be
absent mostly for historical reasons.  back-meta uses it in the candidate
selection for that specific target; it must be present, and the database
suffix must be a suffix of the DN part in each URI definition.

The fact that you get the error only in gdb sounds weird.  I guess it's
because gdb keeps the stderr of the running process connected to the
terminal, while if you launch slapd from command line, the stderr is not
open unless you enable debug.


Pierangelo Masarati