Displaying 1 result from an estimated 1 matches for "drac_init".
Did you mean:
ac_init
2011 Nov 15
3
getenv() in plugin not working
...dovecot: imap-login: Login: user=<snip>, method=PLAIN, rip=<snip>, lip=<snip>, mpid=4018, TLS
server dovecot: imap(<snip>: Error: DRAC: IP environment not given
I traced the "IP environment not given" to the drac.c plugin file, and the code is pretty simple:
void drac_init(void)
{
const char *ip_str;
struct ip_addr ip;
ip_str = getenv("IP");
if (ip_str == NULL)
i_error("DRAC: IP environment not given");
Is there anything special that needs to be done for getenv("IP") to report the login...