1
0
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:
Matthias Dieter Wallnöfer 2010-10-18 21:21:45 +02:00
parent 902e7288a7
commit dcbfcbbceb
4 changed files with 4 additions and 4 deletions

View File

@ -759,7 +759,7 @@ static int ildb_handle_request(struct ldb_module *module, struct ldb_request *re
break; break;
default: default:
/* no other op supported */ /* no other op supported */
ret = LDB_ERR_OPERATIONS_ERROR; ret = LDB_ERR_PROTOCOL_ERROR;
break; break;
} }

View File

@ -810,7 +810,7 @@ static int lldb_handle_request(struct ldb_module *module, struct ldb_request *re
break; break;
default: default:
/* no other op supported */ /* no other op supported */
ret = LDB_ERR_OPERATIONS_ERROR; ret = LDB_ERR_PROTOCOL_ERROR;
break; break;
} }

View File

@ -1520,7 +1520,7 @@ static void lsql_callback(struct tevent_context *ev,
*/ */
default: default:
/* no other op supported */ /* no other op supported */
ret = LDB_ERR_UNWILLING_TO_PERFORM; ret = LDB_ERR_PROTOCOL_ERROR;
} }
if (!ctx->callback_failed) { if (!ctx->callback_failed) {

View File

@ -1241,7 +1241,7 @@ static void ltdb_callback(struct tevent_context *ev,
goto done; goto done;
default: default:
/* no other op supported */ /* no other op supported */
ret = LDB_ERR_UNWILLING_TO_PERFORM; ret = LDB_ERR_PROTOCOL_ERROR;
} }
if (!ctx->request_terminated) { if (!ctx->request_terminated) {