1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r17536: Add a debug message citing the reason why an LDAP connection failed, inspired

by Christian M Ambach <CAMBACH1@de.ibm.com>.

Volker
This commit is contained in:
Volker Lendecke 2006-08-14 12:54:37 +00:00 committed by Gerald (Jerry) Carter
parent 0f483cf66c
commit cf7c83d462

View File

@ -65,6 +65,11 @@ static void gotalarm_sig(void)
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);