diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-14 12:54:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:37 -0500 |
commit | b757699e8b14fb0d5780e2513ffe64c087f5871d (patch) | |
tree | 164c4d3d1dce23a5ccbb66068d133cf121b9f297 /source3 | |
parent | 7c94b93af60d12bf8ffcd8d543e727878b82ddbf (diff) | |
download | samba-b757699e8b14fb0d5780e2513ffe64c087f5871d.tar.gz samba-b757699e8b14fb0d5780e2513ffe64c087f5871d.tar.bz2 samba-b757699e8b14fb0d5780e2513ffe64c087f5871d.zip |
r17536: Add a debug message citing the reason why an LDAP connection failed, inspired
by Christian M Ambach <CAMBACH1@de.ibm.com>.
Volker
(This used to be commit cf7c83d462dc766fa6f48728d0a4e8d534cc2bd4)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/ldap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 5ff1ce435d..2ceafedd30 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -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); |