pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/sendmail Enable _FFR_LDAP_NETWORK_TIMEOUT



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e0883a6abf16
branches:  trunk
changeset: 545820:e0883a6abf16
user:      manu <manu%pkgsrc.org@localhost>
date:      Wed Aug 13 15:41:29 2008 +0000

description:
Enable _FFR_LDAP_NETWORK_TIMEOUT
This feature adds a -c switch to LDAPMAP definitions, which can be used to
specify a connection timeout (the equivalent of ldap.conf's bind_timeout)

Here is an usage example, in sendmail.cf:
O LDAPDefaultSpec=-w 3 -c 1 -l 3
If the server does not connect after 1 second (-c 1), we give up. If it does
not anwer after 3 seconds (-l 3), we give up with a temporary failure.

Using -c is the only way to avoid sendmail getting stuck against a half-dead
slapd, where the TCP port is in listening state but the server will not
serve anything.

diffstat:

 mail/sendmail/Makefile                  |  3 ++-
 mail/sendmail/files/site.config.m4-ldap |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 8ff19d2c33d2 -r e0883a6abf16 mail/sendmail/Makefile
--- a/mail/sendmail/Makefile    Wed Aug 13 14:20:23 2008 +0000
+++ b/mail/sendmail/Makefile    Wed Aug 13 15:41:29 2008 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.103 2008/05/25 21:42:21 joerg Exp $
+# $NetBSD: Makefile,v 1.104 2008/08/13 15:41:29 manu Exp $
 
 PKGNAME=       sendmail-${DIST_VERS}
+PKGREVISION=   1
 COMMENT=       The well known Mail Transport Agent
 
 CONFLICTS+=    courier-mta-[0-9]* fastforward>=0.51nb2 postfix-[0-9]*
diff -r 8ff19d2c33d2 -r e0883a6abf16 mail/sendmail/files/site.config.m4-ldap
--- a/mail/sendmail/files/site.config.m4-ldap   Wed Aug 13 14:20:23 2008 +0000
+++ b/mail/sendmail/files/site.config.m4-ldap   Wed Aug 13 15:41:29 2008 +0000
@@ -1,5 +1,6 @@
-# $NetBSD: site.config.m4-ldap,v 1.5 2004/08/30 20:16:28 adrianp Exp $
+# $NetBSD: site.config.m4-ldap,v 1.6 2008/08/13 15:41:29 manu Exp $
 
 # enable ldap
 APPENDDEF(`confMAPDEF', `-DLDAPMAP')
+APPENDDEF(`confMAPDEF', `-D_FFR_LDAP_NETWORK_TIMEOUT')
 APPENDDEF(`confLIBS', `-lldap -llber')



Home | Main Index | Thread Index | Old Index