diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-26 20:35:24 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-26 20:35:24 +0000 |
commit | c79df10158c141076522263b57da6ef46e852810 (patch) | |
tree | b7cf38c477a574259f686eac81be0aba9c02c8fa | |
parent | 7fea0fe5b96322fecca698c47367cc596ff8b537 (diff) |
only log "connected to LDAP server" if it is a new connection
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@535 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd/myldap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c index 2584c4f..8544bb8 100644 --- a/nslcd/myldap.c +++ b/nslcd/myldap.c @@ -574,8 +574,8 @@ static int do_open(MYLDAP_SESSION *session) } /* update last activity and finish off state */ time(&(session->lastactivity)); - log_log(LOG_DEBUG,"do_open(): connected to %s", - nslcd_cfg->ldc_uris[session->current_uri]); + log_log(LOG_INFO,"connected to LDAP server %s", + nslcd_cfg->ldc_uris[session->current_uri]); return LDAP_SUCCESS; } @@ -732,11 +732,7 @@ MYLDAP_SEARCH *myldap_search( /* try to start the search */ search=do_try_search(session,base,scope,filter,attrs); if (search!=NULL) - { - log_log(LOG_INFO,"connected to LDAP server %s", - nslcd_cfg->ldc_uris[session->current_uri]); return search; - } /* try the next URI (with wrap-around) */ session->current_uri++; if (nslcd_cfg->ldc_uris[session->current_uri]==NULL) |