This is a discussion on [courier-users] access to couriertcpd environment from auth modules within the Courier-Imap forums, part of the Mail Servers and Related category; hi I'm trying to create a custom auth module which will look at the remote IP address or some ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hi
I'm trying to create a custom auth module which will look at the remote IP address or some other env variable set by couriertcpd to make a decision about the type of password and return values it'll use. Problem is the environment accessible from login processes (pop3login or imaplogin) doesn't seem to be accessible from auth_login() (different context and different parents?) so I can't seem to access TCPREMOTEIP and other variables by using getenv() from the auth module itself. Is there any standard way to access that environment from an auth module or I have to modify pop3dlogin and imaplogin to somehow pass this info to auth_login() ? I could do that, but I would rather not since custom auth modules are officially supported while custom login processes are not ;) thanks -- rgds, serge ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642 _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |