git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e8cdfd0
)
r21344: ensure that the full range of error values is available to applications....
author
Derrell Lipman
<derrell@samba.org>
Wed, 14 Feb 2007 16:08:59 +0000
(16:08 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:48:17 +0000
(14:48 -0500)
services/samba/ldb.esp
patch
|
blob
|
history
diff --git
a/services/samba/ldb.esp
b/services/samba/ldb.esp
index 882afdde75187f0fbda90957f77ca8be25b8c097..8b0a57d5e3b9b81f7396f214d67ee6f27416a134 100644
(file)
--- a/
services/samba/ldb.esp
+++ b/
services/samba/ldb.esp
@@
-285,6
+285,7
@@
function _search(params, error)
{
if (params.length < 2 || params.length > 5)
{
{
if (params.length < 2 || params.length > 5)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: " +
"<resource_id> <expr> [<baseDN> [<scope> [<attrs>]]]");
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: " +
"<resource_id> <expr> [<baseDN> [<scope> [<attrs>]]]");
@@
-327,6
+328,7
@@
function _search(params, error)
}
else
{
}
else
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"invalid scope: " + scope);
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"invalid scope: " + scope);
return error;
@@
-357,6
+359,7
@@
function _add(params, error)
{
if (params.length != 2)
{
{
if (params.length != 2)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <ldif>");
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <ldif>");
return error;
@@
-393,6
+396,7
@@
function _modify(params, error)
{
if (params.length != 2)
{
{
if (params.length != 2)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <ldif>");
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <ldif>");
return error;
@@
-429,6
+433,7
@@
function _del(params, error)
{
if (params.length != 2)
{
{
if (params.length != 2)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <dn>");
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <dn>");
return error;
@@
-468,6
+473,7
@@
function _rename(params, error)
{
if (params.length != 3)
{
{
if (params.length != 3)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <old_dn> <new_dn>");
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <old_dn> <new_dn>");
return error;
@@
-504,6
+510,7
@@
function _base64encode(params, error)
{
if (params.length != 2)
{
{
if (params.length != 2)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_encoded>");
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_encoded>");
return error;
@@
-540,6
+547,7
@@
function _base64decode(params, error)
{
if (params.length != 2)
{
{
if (params.length != 2)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_decoded>");
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_decoded>");
return error;
@@
-576,6
+584,7
@@
function _base64decode(params, error)
{
if (params.length != 2)
{
{
if (params.length != 2)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_decoded>");
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_decoded>");
return error;
@@
-608,6
+617,7
@@
function _errstring(params, error)
{
if (params.length != 1)
{
{
if (params.length != 1)
{
+ error.setOrigin(jsonrpc.Constant.ErrorOrigin.Server);
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id>");
return error;
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id>");
return error;