summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-04 21:54:02 +0100
committerMichael Adam <obnox@samba.org>2008-01-04 22:09:36 +0100
commit34e579fce5a6cc9ffa60fbe6e797b2e6b35c879e (patch)
treebfaae6a85fc7f78babf501c7b768caf7a9e76f68 /source3/libads
parent4ad3464fb94c7088e7fd731113c682aa7756ef01 (diff)
downloadsamba-34e579fce5a6cc9ffa60fbe6e797b2e6b35c879e.tar.gz
samba-34e579fce5a6cc9ffa60fbe6e797b2e6b35c879e.tar.bz2
samba-34e579fce5a6cc9ffa60fbe6e797b2e6b35c879e.zip
Enhance DEBUG-verbosity of ldap_open_with_timeout().
Michael (This used to be commit 9e70d1f24dd304c363a1bde97b5af618b46edc49)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 712e7e2889..8a2b82a61d 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -56,6 +56,10 @@ LDAP *ldap_open_with_timeout(const char *server, int port, unsigned int to)
{
LDAP *ldp = NULL;
+
+ DEBUG(10, ("Opening connection to LDAP server '%s:%d', timeout "
+ "%u seconds\n", server, port, to));
+
/* Setup timeout */
gotalarm = 0;
CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);
@@ -65,8 +69,10 @@ LDAP *ldap_open_with_timeout(const char *server, int port, unsigned int to)
ldp = ldap_open(server, port);
if (ldp == NULL) {
- DEBUG(2,("Could not open LDAP connection to %s:%d: %s\n",
+ DEBUG(2,("Could not open connection to LDAP server %s:%d: %s\n",
server, port, strerror(errno)));
+ } else {
+ DEBUG(10, ("Connected to LDAP server '%s:%d'\n", server, port));
}
/* Teardown timeout. */