Displaying 2 results from an estimated 2 matches for "login_ssl_listen_fd".
2007 Nov 14
1
libwrap-ing IMAP and POP logins
...ip, &local_port) < 0) {
memset(&local_ip, 0, sizeof(local_ip));
local_port = 0;
@@ -99,6 +121,10 @@
struct client *client;
struct ssl_proxy *proxy;
int fd, fd_ssl;
+#ifdef LIBWRAP
+ struct request_info req;
+ char daemon[17] = "dovecot-";
+#endif
fd = net_accept(LOGIN_SSL_LISTEN_FD, &remote_ip, &remote_port);
if (fd < 0) {
@@ -107,6 +133,18 @@
return;
}
+#ifdef LIBWRAP
+ strlcat(daemon, login_protocol, sizeof(daemon));
+ strlcat(daemon, "-ssl", sizeof(daemon));
+ request_init(&req, RQ_DAEMON, daemon, RQ_FILE, fd, NULL);
+ fromhost(&req);...
2003 Nov 04
0
PATCH: make local IP address available to auth modules
The attached patch makes the local IP address to which the client
connected available to the authentication modules; i.e., the local IP
address is available for substitution as %i for the mysql and pgsql
modules. We needed this feature to support thousands of our legacy
accounts which are authenticated by username/local_part (not the full
email address) and IP address (one per domain).
Timo,