AW: AW: AW: sasl-canonuser-plugin via sql
Lars Duesing
lars.duesing at camelotsweb.de
Wed Apr 28 00:11:10 EDT 2010
Hi Dan,
Thanks for your hints. I didn't thought you can do both canon and auxprop
plugin in one file.
Is there any documentation on what canon_client is supposed to do? (In the
named ldap-plugin it doesnt do anything except testing for all-whitespace
and copying user to out...)
I'll combine both and get back to the list when it is done.
Lars
-----Ursprüngliche Nachricht-----
Von: Dan White [mailto:dwhite at olp.net]
Gesendet: Montag, 26. April 2010 19:34
An: Lars Duesing
Cc: cyrus-sasl at lists.andrew.cmu.edu
Betreff: Re: AW: AW: sasl-canonuser-plugin via sql
On 26/04/10 16:11 +0200, Lars Duesing wrote:
>Hi Dan,
>
>have you any improvements or such found? I'm quite curious, because I
>hacked all together due to lack of official documentation of
canonuser-plugins.
>(only docs I found was the stripplus-demo)
I didn't get a chance to compile your code but I took a look at it.
I'd grab a copy of 2.1.24rc1 and examine the ldapdb plugin, which is a
combined auxprop and canon user plugin.
An approach I would recommend is to combine your code with the existing sql
auxprop plugin and add the appropriate canonuser_plug_init code to that
file, which should make your patch a bit smaller.
You could reuse the existing sql_* parameters for your canonuser code and
create a new parameter, i.e. sql_canon_select, that would be used to return
the canonized user.
You should also update docs/options.html with any new parameters you
introduce and some explanation of how to make use of your sql canon code.
Thanks,
--
Dan White
More information about the Cyrus-sasl
mailing list