[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8284) back-relay: olcRelay issues with values containing white spaces
Well this was the first thing I tried, but when I use
olcRelay: "ou=Dipartimento di Fisica,o=Università degli Studi di Milano,c=IT"
I got
ldap_add: Invalid syntax (21)
additional info: olcRelay: value #0 invalid per syntax
Then I tried with
olcRelay: ou="Dipartimento di Fisica",o="Università degli Studi di Milano",c=IT
I had the same error of extra cruft.
I solved patching servers/slapd/back-relay/init.c this way
--- a/servers/slapd/back-relay/init.c 2015-10-20 15:22:20.511667130 +0200
+++ b/servers/slapd/back-relay/init.c 2015-10-21 10:27:02.649251347 +0200
@@ -32,7 +32,7 @@
static ConfigTable relaycfg[] = {
{ "relay", "relay", 2, 2, 0,
- ARG_MAGIC|ARG_DN,
+ ARG_MAGIC|ARG_DN|ARG_QUOTE,
relay_back_cf, "( OLcfgDbAt:5.1 "
"NAME 'olcRelay' "
"DESC 'Relay DN' "
On Wed, Oct 21, 2015 at 03:12:14PM +0100, Howard Chu wrote:
> michele.bensi@fisica.unimi.it wrote:
> >Full_Name: Michele Bensi
> >Version: 2.4.42
> >OS: Linux
> >URL: ftp://ftp.openldap.org/incoming/
> >Submission from: (NULL) (159.149.47.246)
> >
> >
> >When configuring realy backend using a relay suffix containg spaces I got this
> >error:
> >
> >ldap_add: Constraint violation (19)
> > additional info: <olcRelay> extra cruft after <relay>
> >A%A
> >To reproduce the problem just configure back_relay with a value containing white
> >spaces
> >(i.e. olcRelay: ou=Dipartimento di Fisica,o=Università degli Studi di
> >Milano,c=IT)
>
> Use double-quotes around arguments containing whitespace.
>
> Closing this ITS.
>
> --
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/project/
--
Michele Bensi
Unità Calcolo
Dipartimento di Fisica
Università degli Studi di Milano
Via Celoria, 16
20133 Milano (MI)
ITALY
Phone: +39 02503 17341
Fax: +39 02503 17280
Room: I/T/4
"Unix is user-friendly. It's just very selective about who its friends are."