[Dovecot] special variables
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi!
Are there any plans to extend the special variables you can use for ldap query strings (%u,%n,etc)? For instance, say you have an ldap schema like this with multiple domains in a single top-level-domain:
dc=domain_1,dc=tld_1 dc=domain_2,dc=tld_1 dc=domain_3,dc=tld_1 dc=domain_4,dc=tld_2 dc=domain_5,dc=tld_2 dc=domain_6,dc=tld_2
Now dovecot (latest CVS snapshot) offers, among others, the following variable:
%d - domain part in user@domain, empty if there is no domain
But, what if dovecot could offer something like this:
%1-9 = domain tokens (%1 = tld, %2 = domain when %d = domain.tld) (actually, these variables are present in auth_ldap module for saslauthd)
This way people could create a query like this (just an example):
base = ou=some_ou,dc=%2,dc=%1
I know I could modify my ldap schema to:
dc=domain_1.tld_1 dc=domain_2.tld_1 ....
and it would be solved by using %d, however those "new" variables could be useful, what do you think?
Cheers,
Andrés Pereira -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDxKDu7iUaNXa3Ta4RAitAAJ9oVoE51QjjSp6sQMe3qtkzwj9tygCcDfkj fnxUHKd/F6i9hjPoVDrHY18= =JdxG -----END PGP SIGNATURE-----
participants (1)
-
Andrés Pereira