svn commit: samba r17536 - in branches/SAMBA_3_0/source/libads: .
vlendec at samba.org
vlendec at samba.org
Mon Aug 14 12:54:38 GMT 2006
Author: vlendec
Date: 2006-08-14 12:54:37 +0000 (Mon, 14 Aug 2006)
New Revision: 17536
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17536
Log:
Add a debug message citing the reason why an LDAP connection failed, inspired
by Christian M Ambach <CAMBACH1 at de.ibm.com>.
Volker
Modified:
branches/SAMBA_3_0/source/libads/ldap.c
Changeset:
Modified: branches/SAMBA_3_0/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0/source/libads/ldap.c 2006-08-14 12:42:46 UTC (rev 17535)
+++ branches/SAMBA_3_0/source/libads/ldap.c 2006-08-14 12:54:37 UTC (rev 17536)
@@ -65,6 +65,11 @@
ldp = ldap_open(server, port);
+ if (ldp == NULL) {
+ DEBUG(2,("Could not open LDAP connection to %s:%d: %s\n",
+ server, port, strerror(errno)));
+ }
+
/* Teardown timeout. */
CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
alarm(0);
More information about the samba-cvs
mailing list