Alain NAKACHE writes:
Hi all,
I'm writing my own authlib module based on authcustom but I wonder how to send addons informations like remote IP to this module (say a comma separated var=val list)
This is not implemented.
Hi Sam,
Since your above answer I thought about a modification of the authdata structure.
Say I want to transmit 2 environment variables to the auth module with the LOGIN method, my authdata will be :
<loginid>\n<passwd>\n<var1=value1>\n<var2=value2>\0
With CRAM method it will be :
<base64-encoded challenge>\n<base64-encoded response>\n<var1=value1>\n<var2=value2>\0
Then in the authmodule you only have to get the environment variable and test it.
I started to implement this method by modifying courier-imap interface with authlib and it works like a charm.
What do you think of that method ? Are you interested by the patches ?
Best regards. Alain
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
