mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r18410: Reduce noise in the ldb_ildap backend. We regularly search for things
that don't exist, and this is not a cause for panic. Andrew Bartlett (This used to be commit c89e416d288d16de43ae93102ecfec588900e6c0)
This commit is contained in:
parent
1be5dc9837
commit
33c4fea4cd
@ -124,8 +124,7 @@ static int ildb_map_error(struct ildb_private *ildb, NTSTATUS status)
|
|||||||
if (NT_STATUS_IS_OK(status)) {
|
if (NT_STATUS_IS_OK(status)) {
|
||||||
return LDB_SUCCESS;
|
return LDB_SUCCESS;
|
||||||
}
|
}
|
||||||
talloc_free(ildb->ldb->err_string);
|
ldb_set_errstring(ildb->ldb, ldap_errstr(ildb->ldap, status));
|
||||||
ildb->ldb->err_string = talloc_strdup(ildb, ldap_errstr(ildb->ldap, status));
|
|
||||||
if (NT_STATUS_IS_LDAP(status)) {
|
if (NT_STATUS_IS_LDAP(status)) {
|
||||||
return NT_STATUS_LDAP_CODE(status);
|
return NT_STATUS_LDAP_CODE(status);
|
||||||
}
|
}
|
||||||
@ -246,7 +245,6 @@ static void ildb_callback(struct ldap_request *req)
|
|||||||
|
|
||||||
status = ldap_check_response(req->conn, &msg->r.GeneralResult);
|
status = ldap_check_response(req->conn, &msg->r.GeneralResult);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
ldb_debug(ac->module->ldb, LDB_DEBUG_ERROR, "Error: %s\n" ,ldap_errstr(req->conn, status));
|
|
||||||
handle->status = ildb_map_error(ildb, status);
|
handle->status = ildb_map_error(ildb, status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user