Hi.

I'm writing my own module for authentication, under authdeamon. But, i need 
client's ip address in authentication module, which currently isn't there.

I've made "dirty" cludge to add ip address to "service" string (in pop/imap 
code) and then in auth module i extract it from there. This works ok, ...  
but i don't like it. After new releases everything may broke ...

So, the question is how to do it nicely? And in that way that i can safely 
update courier? Few solutions came to mind:

a) just "strcat" to buffer which is sent between authlib and authdeamon
 - more "clean" solution
 - no "safe upgrade"

b) rewrite authlib and authdeamon communication
 - instead of sending value\nvalue\nvalue ... send 
name=value\nname=value\n ...
 - preety big changes on code

c) nag MrSam to do it in my place ;-)

I'm willing to implement b) solution, but i'm asking here, because maybe, 
there is a better/easier way to get that damn ip address in auth module ...

H.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to