Displaying 13 results from an estimated 13 matches for "request_init".
2007 Nov 14
1
libwrap-ing IMAP and POP logins
...int fd;
+#ifdef LIBWRAP
+ struct request_info req;
+ char daemon[13] = "dovecot-";
+#endif
fd = net_accept(LOGIN_LISTEN_FD, &remote_ip, &remote_port);
if (fd < 0) {
@@ -77,6 +88,17 @@
return;
}
+#ifdef LIBWRAP
+ strlcat(daemon, login_protocol, sizeof(daemon));
+ request_init(&req, RQ_DAEMON, daemon, RQ_FILE, fd, NULL);
+ fromhost(&req);
+ if (!hosts_access(&req)) {
+ i_info("libwrap: access denied");
+ net_disconnect(fd);
+ return;
+ }
+#endif
+
if (net_getsockname(fd, &local_ip, &local_port) < 0) {
memset(&local_ip, 0, size...
2010 Dec 03
1
[PATCH] upsd tcp_wrappers parsing and logging
...upsd.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/server/upsd.c b/server/upsd.c
index 0e46595..eef5638 100644
--- a/server/upsd.c
+++ b/server/upsd.c
@@ -410,11 +410,13 @@ static void check_command(int cmdnum, ctype_t *client, int numarg,
}
#ifdef HAVE_WRAP
- request_init(&req, RQ_DAEMON, progname, RQ_CLIENT_ADDR, client->addr, RQ_USER, client->username, 0);
+ request_init(&req, RQ_DAEMON, progname, RQ_FILE, client->sock_fd, 0);
+ fromhost(&req);
if (!hosts_access(&req)) {
/* tcp-wrappers says access should be denied */
send_e...
2002 Jun 25
7
[Bug 294] tcp wrapper access changed between 2.9.9p2 and 3.3p1
http://bugzilla.mindrot.org/show_bug.cgi?id=294
------- Additional Comments From ktaylor at daac.gsfc.nasa.gov 2002-06-26 00:53 -------
This is what's reported in the syslog from openssh-2.9.9p2 - with an ip address
range listed in hosts.allow
Jun 25 10:50:08 6D:server sshd[30123536]: Failed keyboard-interactive for
ktaylor from xxx.xxx.xxx.xxx port 40333 ssh2
Jun 25 10:50:13 6D:server
2008 Nov 08
1
dovecot Digest, Vol 67, Issue 19
Thanks Buddy,
I got it working. It was giving error when running make 'undefined
reference to `request_init' etc' then I ran it with gmake LDFLAGS+=-lwrap
and it worked and everything is working fine. Thanks again for your help
Thankyou
Tahir Riaz
Assistant Director (Systems)
COMSATS Internet Services
COMSATS Headquarters Building
9, Shahrah-e-Jamhuriat, G-5/2
Islamabad.
-----Original M...
2008 Nov 07
6
Cannot get the libwrap patch work
Hello there,
I have been trying to make the patch work for libwrap(TCP
Wrappers) posted on http://dovecot.org/patches
<http://dovecot.org/patches%20Patch%20of%201.1> Patch of 1.1 but could not
get it work. Any help will be highly appreciated. After compiling and
running it I get error "Error: login_tcp_wrappers can't be used because
Dovecot wasn't built with
2001 Jan 06
0
Bug Report OpenSSH 2.3.0-p1-1.src.rpm for linux
...auth-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o dh.o pty.o log-server.o login.o loginrec.o servconf.o serverloop.o md5crypt.o session.o -L. -L/usr/lib -L/usr -lssh -lopenbsd-compat -ldl -lnsl -lz -lutil -lpam -lcrypto
sshd.o: In function `main':
sshd.o(.text+0x16f0): undefined reference to `request_init'
sshd.o(.text+0x16f9): undefined reference to `sock_host'
sshd.o(.text+0x16ff): undefined reference to `hosts_access'
sshd.o(.text+0x171e): undefined reference to `refuse'
collect2: ld returned 1 exit status
make: *** [sshd] Error 1
Please feel free to contact me for an...
2014 Jul 31
0
[PATCH 1/3] __progname is provided by libc
...openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
+ openlog(tftpd_progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
}
#ifdef HAVE_TCPWRAPPERS
/* Verify if this was a legal request for us. This has to be
done before the chroot, while /etc is still accessible. */
request_init(&wrap_request,
- RQ_DAEMON, __progname,
+ RQ_DAEMON, tftpd_progname,
RQ_FILE, fd,
RQ_CLIENT_SIN, &from, RQ_SERVER_SIN, &myaddr, 0);
sock_methods(&wrap_request);
--
2.0.0
2010 Feb 25
2
dovecot-2.0.beta3 tcpwrapper support in Solaris
Hi,
2.0 compiles fine in Solaris but and I've found only one glitch so far.
Tcpwapper support needs some tweaks. I need to add
CPPFLAGS=/usr/sfw/include because tcpd.h is in there. Then also
LDFLAGS='-R/usr/sfw/lib -L/usr/sfw/lib' is needed. It would be nice to
have --with-tcpwrap-dir or something.
After this linking gives an error
Undefined first referenced symbol in file
2000 Oct 07
2
[PATCH]: Add tcp_wrappers protection to port forwarding
...ner(Channel *c, f
}
remote_hostname = get_remote_hostname(newsock);
remote_port = get_peer_port(newsock);
+#ifdef LIBWRAP
+ {
+ char fwd[80];
+ void (*sigch) (int);
+ int res;
+ struct request_info req;
+
+ snprintf(fwd, sizeof(fwd), "sshdfwd-%d", c->host_port);
+ request_init(&req, RQ_DAEMON, fwd, RQ_FILE, newsock, NULL);
+ fromhost(&req);
+ sigch = signal(SIGCHLD, SIG_DFL);
+ res = hosts_access(&req);
+ signal(SIGCHLD, sigch);
+ if (!res) {
+ packet_send_debug("refused forwarded connection from %.500s to local port %d.",
+ eval...
2001 Nov 27
1
[PATCH] tcp-wrappers support extended to x11 forwards
...int allow_severity;
+extern int deny_severity;
+#endif /* LIBWRAP */
/* -- channel core */
@@ -1006,6 +1012,25 @@
error("accept: %.100s", strerror(errno));
return;
}
+#ifdef LIBWRAP
+ /* XXX LIBWRAP noes not know about IPv6 */
+ {
+ struct request_info req;
+
+ request_init(&req, RQ_DAEMON, "sshdfwd-X11", RQ_FILE, newsock, 0);
+ fromhost(&req);
+
+ if (!hosts_access(&req)) {
+ syslog(deny_severity, "refused fwd-X11 connect from %s", eval_client(&req));
+ close(newsock);
+
+ return;
+ }
+ syslog(a...
2014 Jul 31
5
[PATCH 0/3] tftp-hpa patches from Debian
From: Ron <ron at debian.org>
Hi,
I've just taken over maintaining the packages for this in Debian,
and we've been carrying a couple of patches for a while now that
really should have been forwarded since they're clearly not distro
specific. I added a third one to that yesterday to fix another
autoconf build 'race' seen when doing parallel builds.
Cheers,
Ron
2010 Nov 05
7
nut on pclos-2010.7
Greetings people;
The section of drakeconf that pclos uses has two problems.
First is several screens full of complaints about deprecated syntax in
"/etc/udev/rules.d/70-nut-usbups.rules" at each reboot.
So I pulled the current 2.5 svn trunk, then found I was missing quite a few
build tools needed here that aren't used when building a kernel, currently
running a 32 bit
2015 Feb 13
1
Error installing Nut 2.7.2 on RedHat 6.6
...ags... -lnss3 -lnssutil3 -lsmime3 -lssl3
-lplds4 -lplc4 -lnspr4
checking for nss.h... yes
checking for NSS_Init... yes
checking whether to enable SSL support... yes (Mozilla NSS)
checking for tcpd.h... no
checking for library containing yp_get_default_domain... -lnsl
checking for library containing request_init... no
checking whether to enable libwrap (tcp-wrappers) support... no
checking for libltdl cflags... -g -O2 -Wall -Wsign-compare
checking for libltdl ldflags...
checking for ltdl.h... no
checking for library containing lt_dlinit... no
checking whether to enable libltdl (Libtool dlopen abstraction)...