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 <[EMAIL PROTECTED]>. 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);