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:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user