Do we really need a log at level 2 for successful database connections?
Index: source/passdb/pdb_ldap.c
===================================================================
RCS file: /cvsroot/samba/source/passdb/pdb_ldap.c,v
retrieving revision 1.51
diff -u -r1.51 pdb_ldap.c
--- source/passdb/pdb_ldap.c 27 Jul 2002 06:07:53 -0000 1.51
+++ source/passdb/pdb_ldap.c 29 Jul 2002 16:00:53 -0000
@@ -252,7 +252,7 @@
}
#endif
- DEBUG(2, ("ldap_open_connection: connection opened\n"));
+ DEBUG(3, ("ldap_open_connection: connection opened\n"));
return True;
}
@@ -395,7 +395,7 @@
return False;
}
- DEBUG(2, ("ldap_connect_system: succesful connection to the LDAP server\n"));
+ DEBUG(3, ("ldap_connect_system: succesful connection to the LDAP server\n"));
return True;
}
@@ -407,14 +407,14 @@
int scope = LDAP_SCOPE_SUBTREE;
int rc;
- DEBUG(2, ("ldapsam_search_one_user: searching for:[%s]\n", filter));
+ DEBUG(3, ("ldapsam_search_one_user: searching for:[%s]\n", filter));
rc = ldap_search_s(ldap_struct, lp_ldap_suffix (), scope, filter, attr, 0, result);
if (rc != LDAP_SUCCESS) {
DEBUG(0,("ldapsam_search_one_user: Problem during the LDAP search: %s\n",
ldap_err2string (rc)));
- DEBUG(3,("ldapsam_search_one_user: Query was: %s, %s\n", lp_ldap_suffix(),
+ DEBUG(4,("ldapsam_search_one_user: Query was: %s, %s\n", lp_ldap_suffix(),
filter));
}
@@ -457,7 +457,7 @@
/* Get the username from the system and look that up in the LDAP */
if ((user = getpwuid_alloc(uid)) == NULL) {
- DEBUG(3,("ldapsam_search_one_user_by_uid: Failed to locate uid [%d]\n", uid));
+ DEBUG(4,("ldapsam_search_one_user_by_uid: Failed to locate uid [%d]\n", uid));
return LDAP_NO_SUCH_OBJECT;
}
@@ -653,7 +653,7 @@
}
get_single_attribute(ldap_struct, entry, "uid", username);
- DEBUG(2, ("Entry found for user: %s\n", username));
+ DEBUG(3, ("Entry found for user: %s\n", username));
pstrcpy(nt_username, username);
@@ -1078,7 +1078,7 @@
#else
final_filter = strdup(filter);
#endif
- DEBUG(2, ("ldapsam_get_next_available_nua_rid: searching for:[%s]\n", final_filter));
+ DEBUG(3, ("ldapsam_get_next_available_nua_rid: searching for:[%s]\n", final_filter));
rc = ldap_search_s(ldap_struct, lp_ldap_suffix(),
LDAP_SCOPE_SUBTREE, final_filter, attr, 0,