mirror of
https://github.com/samba-team/samba.git
synced 2025-09-24 05:44:20 +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:
committed by
Gerald (Jerry) Carter
parent
0f483cf66c
commit
cf7c83d462
@@ -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);
|
||||
|
Reference in New Issue
Block a user