Francesco Fiore
2014-Sep-01 13:27 UTC
Escape comma in the LDAP passdb subquery configuration
Hi I have to configure the LDAP passdb to execute a subquery defining dinamically the new DN to use. For example: pass_attrs = @mail=mail=%{login_user},dc=%{login_domain},dc=example,dc=com,\ =proxy=y,\ =host=%{ldap:mailHost at mail} In the previous example, the problem is the use of "," for DN representation, which is also the separator for the attribute template in the pass_attr parameter value. I tried to escape it with '\' or '%' but it doesn't work. Dovecot version is 2.2.13. How can I resolve this issue? Thanks in advance
Giovanni Mancuso
2014-Sep-04 10:01 UTC
Escape comma in the LDAP passdb subquery configuration
Hi, I need the same. Is there a way to do this? Thanks Il 01/09/2014 15:27, Francesco Fiore ha scritto: Hi> I have to configure the LDAP passdb to execute a subquery defining > dinamically the new DN to use. > > For example: > pass_attrs > @mail=mail=%{login_user},dc=%{login_domain},dc=example,dc=com,\ > =proxy=y,\ > =host=%{ldap:mailHost at mail} > > In the previous example, the problem is the use of "," for DN > representation, which is also the separator for the attribute template > in the pass_attr parameter value. > I tried to escape it with '\' or '%' but it doesn't work. > Dovecot version is 2.2.13. > How can I resolve this issue? > > Thanks in advance
Jogi Hofmüller
2014-Sep-10 06:07 UTC
Escape comma in the LDAP passdb subquery configuration
Hi, Am 2014-09-01 15:27, schrieb Francesco Fiore:> pass_attrs > @mail=mail=%{login_user},dc=%{login_domain},dc=example,dc=com,\ > =proxy=y,\ > =host=%{ldap:mailHost at mail} > > In the previous example, the problem is the use of "," for DN > representation, which is also the separator for the attribute templateI see. Have you tried using a different filter instead of dynamic arguments in pass_attrs? Cheers, -- j.hofm?ller Optimism doesn't alter the laws of physics. - Subcommander T'Pol -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 213 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20140910/b0316417/attachment.sig>
Reasonably Related Threads
- Locking down master user to certain domains through passwd-file auth
- Can this 1337 PostgreSQL Subquery Union be done in AR?
- Master Login using MySQL problem - %{login_domain}
- critical feature from version 1 not migrated to version 2 = authentication configuration database per IP
- Master User Features I'd like to see