mirror of
https://github.com/samba-team/samba.git
synced 2025-03-07 00:58:40 +03:00
ldb: always return PROTOCOL_ERROR if an operation is unsupported
That's exactly the behaviour of various LDAP servers.
This commit is contained in:
parent
902e7288a7
commit
dcbfcbbceb
@ -759,7 +759,7 @@ static int ildb_handle_request(struct ldb_module *module, struct ldb_request *re
|
||||
break;
|
||||
default:
|
||||
/* no other op supported */
|
||||
ret = LDB_ERR_OPERATIONS_ERROR;
|
||||
ret = LDB_ERR_PROTOCOL_ERROR;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -810,7 +810,7 @@ static int lldb_handle_request(struct ldb_module *module, struct ldb_request *re
|
||||
break;
|
||||
default:
|
||||
/* no other op supported */
|
||||
ret = LDB_ERR_OPERATIONS_ERROR;
|
||||
ret = LDB_ERR_PROTOCOL_ERROR;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1520,7 +1520,7 @@ static void lsql_callback(struct tevent_context *ev,
|
||||
*/
|
||||
default:
|
||||
/* no other op supported */
|
||||
ret = LDB_ERR_UNWILLING_TO_PERFORM;
|
||||
ret = LDB_ERR_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if (!ctx->callback_failed) {
|
||||
|
@ -1241,7 +1241,7 @@ static void ltdb_callback(struct tevent_context *ev,
|
||||
goto done;
|
||||
default:
|
||||
/* no other op supported */
|
||||
ret = LDB_ERR_UNWILLING_TO_PERFORM;
|
||||
ret = LDB_ERR_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if (!ctx->request_terminated) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user