Subject: The mailing list for listmasters using Sympa
List archive
Re: [sympa-users] Escaping ',' in source_parameters of data_source
- From: IKEDA Soji <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] Escaping ',' in source_parameters of data_source
- Date: Fri, 17 Jun 2016 12:36:55 +0900
Hi Felix,
On Wed, 15 Jun 2016 16:17:21 +0200
<address@concealed> wrote:
> Hi,
>
> I am trying to set up an lda-query as a data_source. My incl file should
> look
> like this:
>
> include_ldap_query
> attrs mail
> ca_verify none
> ssl_ciphers ALL
> filter groupMembership=[% param.0 %]
> name RBG_Garching2
> host XXXXX
> timeout 30
> suffix ou=Campus,ou=Personen,o=physik
> ssl_version sslv2
> use_tls none
> scope sub
> select all
>
> the parameter would be like this:
>
> cn=rbg-gar,ou=ou-rbg,ou=Gruppen,o=physik
>
> Unfortunately, it is trucated in the query, so that the the filter ends up
> like
>
> groupMembership=cn=rbg-gar
>
> and returns no results. Is there a way to escape the ',' in the parameter?
Value of datasource parameter (source_parameters) will be split by
"," and parts will be assigned to param.0, param.1, ... At the
moment there are no ways to prevent this behavior.
Can you work around by writing such as below?
filter groupMembership=[% param.0 %],[% param.1 %],[% param.2 %],[% param.3
%]
Regards,
-- Soji
> Thanks
>
> Felix
--
株式会社 コンバージョン セキュリティ&OSSソリューション部 池田荘児
〒140-0014 東京都品川区大井1-49-15 アクセス大井町ビル4F
e-mail address@concealed TEL 03-6429-2880
http://www.conversion.co.jp/
-
[sympa-users] Escaping ',' in source_parameters of data_source,
felix.rauscher, 08/16/2022
-
Re: [sympa-users] Escaping ',' in source_parameters of data_source,
David, 06/15/2016
-
Re: [sympa-users] Escaping ',' in source_parameters of data_source,
Felix Rauscher, 06/15/2016
- Re: [sympa-users] Escaping ',' in source_parameters of data_source, David, 06/15/2016
-
Re: [sympa-users] Escaping ',' in source_parameters of data_source,
Felix Rauscher, 06/15/2016
-
Re: [sympa-users] Escaping ',' in source_parameters of data_source,
IKEDA Soji, 06/17/2016
- Re: [sympa-users] Escaping ',' in source_parameters of data_source, David Verdin, 06/17/2016
-
Re: [sympa-users] Escaping ',' in source_parameters of data_source,
David, 06/15/2016
Archive powered by MHonArc 2.6.19+.