Hi,
should chain-uri work with an URI with a blank the DIT path? like in:
chain-uri "ldap://servername/ou=far bar,c=de"
I'm getting a parsing error here with 2.4.43.
Feb 17 18:35:01 slapd[1765]: /etc/openldap/slapd.conf: line 156 (chain-uri "ldap://servername/ou=foo bar,c=de") Feb 17 18:35:01 slapd[1765]: /etc/openldap/slapd.conf: line 156: unable to parse uri "(null)" in "uri <uri>" line: URL doesn't begin with "[c]ldap[si]://".
Is this a bug?
Marc
Marc Patermann wrote:
Hi,
should chain-uri work with an URI with a blank the DIT path? like in:
Spaces are never legal in URLs, LDAP or otherwise.
chain-uri "ldap://servername/ou=far bar,c=de"
I'm getting a parsing error here with 2.4.43.
Feb 17 18:35:01 slapd[1765]: /etc/openldap/slapd.conf: line 156 (chain-uri "ldap://servername/ou=foo bar,c=de") Feb 17 18:35:01 slapd[1765]: /etc/openldap/slapd.conf: line 156: unable to parse uri "(null)" in "uri <uri>" line: URL doesn't begin with "[c]ldap[si]://".
Is this a bug?
Marc
--On Wednesday, February 17, 2016 5:54 PM +0000 Howard Chu hyc@symas.com wrote:
Marc Patermann wrote:
Hi,
should chain-uri work with an URI with a blank the DIT path? like in:
Spaces are never legal in URLs, LDAP or otherwise.
In other words, you need to properly encode spaces in URL's, regardless of the type of URL.
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration A division of Synacor, Inc
Am 17.02.2016 um 19:03 Uhr schrieb Quanah Gibson-Mount:
--On Wednesday, February 17, 2016 5:54 PM +0000 Howard Chu hyc@symas.com wrote:
Marc Patermann wrote:
should chain-uri work with an URI with a blank the DIT path? like in:
Spaces are never legal in URLs, LDAP or otherwise.
In other words, you need to properly encode spaces in URL's, regardless of the type of URL.
tested as well, does not change anything.
Feb 17 18:35:11 trzs914 slapd[1847]: /etc/openldap/slapd.conf: line 156 (chain-uri "ldap://trzs911.ofd-h.de/ou=foo%20bar,c=de") Feb 17 18:35:11 trzs914 slapd[1847]: /etc/openldap/slapd.conf: line 156: unable to parse uri "(null)" in "uri <uri>" line: URL doesn't begin with "[c]ldap[si]://".
Marc
Marc Patermann wrote:
Am 17.02.2016 um 19:03 Uhr schrieb Quanah Gibson-Mount:
--On Wednesday, February 17, 2016 5:54 PM +0000 Howard Chu hyc@symas.com wrote:
Marc Patermann wrote:
should chain-uri work with an URI with a blank the DIT path? like in:
Spaces are never legal in URLs, LDAP or otherwise.
In other words, you need to properly encode spaces in URL's, regardless of the type of URL.
tested as well, does not change anything.
Feb 17 18:35:11 trzs914 slapd[1847]: /etc/openldap/slapd.conf: line 156 (chain-uri "ldap://trzs911.ofd-h.de/ou=foo%20bar,c=de") Feb 17 18:35:11 trzs914 slapd[1847]: /etc/openldap/slapd.conf: line 156: unable to parse uri "(null)" in "uri <uri>" line: URL doesn't begin with "[c]ldap[si]://".
I'd try to remove the double quotes.
Ciao, Michael.
Am 18.02.2016 um 12:26 Uhr schrieb Michael Ströder:
Marc Patermann wrote:
Am 17.02.2016 um 19:03 Uhr schrieb Quanah Gibson-Mount:
--On Wednesday, February 17, 2016 5:54 PM +0000 Howard Chu hyc@symas.com wrote:
Marc Patermann wrote:
should chain-uri work with an URI with a blank the DIT path? like in:
Spaces are never legal in URLs, LDAP or otherwise.
In other words, you need to properly encode spaces in URL's, regardless of the type of URL.
tested as well, does not change anything.
Feb 17 18:35:11 slapd[1847]: /etc/openldap/slapd.conf: line 156 (chain-uri "ldap://servername/ou=foo%20bar,c=de") Feb 17 18:35:11 slapd[1847]: /etc/openldap/slapd.conf: line 156: unable to parse uri "(null)" in "uri <uri>" line: URL doesn't begin with "[c]ldap[si]://".
I'd try to remove the double quotes.
from man slapo-chain:
chain-uri "ldap://ldap1.example.com"
but no:
Feb 18 13:41:25 slapd[27747]: /etc/openldap/slapd.conf: line 96 (chain-uri ldap://servername/ou=foo%20bar,c=de) Feb 18 13:41:25 slapd[27747]: /etc/openldap/slapd.conf: line 96: unable to parse uri "(null)" in "uri <uri>" line: URL doesn't begin with "[c]ldap[si]://".
Marc
Am Donnerstag, 18. Februar 2016 13:45 CET, Marc Patermann hans.moser@ofd-z.niedersachsen.de schrieb:
A few reamarks/questions:
Feb 18 13:41:25 slapd[27747]: /etc/openldap/slapd.conf: line 96 Feb 17 18:35:11 slapd[1847]: /etc/openldap/slapd.conf: line 156
- Why does the location of the error change so much. This looks like your are changing more than the ldap uri format which makes debugging really har.
- Are you shure that error report is about your chain uri? What does: sed -n '156' /etc/openldap/slapd.conf show.
(chain-uri "ldap://servername/ou=foo%20bar,c=de") Feb 17 18:35:11 slapd[1847]: /etc/openldap/slapd.conf: line 156: unable to parse uri "(null)" in "uri <uri>" line: URL doesn't begin with "[c]ldap[si]://".
- that error report looks looks suspicious - the "null" indicates that there was no uri provided. In your case it shoul dshow your chain-uri.
HTH Ralf Mattes
openldap-technical@openldap.org