summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2007-02-04 19:58:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:32 -0500
commite370e9140dadcb50e1e272d37f6d4d96b0a3759a (patch)
treed905616c32a3b5d51ffc0cbed9362b0614f75087 /services
parente587d7e2dd9fe6ff57c7651fdb13a67fc474b659 (diff)
downloadsamba-e370e9140dadcb50e1e272d37f6d4d96b0a3759a.tar.gz
samba-e370e9140dadcb50e1e272d37f6d4d96b0a3759a.tar.bz2
samba-e370e9140dadcb50e1e272d37f6d4d96b0a3759a.zip
r21137: If you change the name of a constant in one file, it helps to ensure that the use of the constant in other files is corrected as well.
(This used to be commit 1773d430176bc3cab37431c6a9991bc5c9c66dcd)
Diffstat (limited to 'services')
-rw-r--r--services/samba/ldb.esp30
1 files changed, 15 insertions, 15 deletions
diff --git a/services/samba/ldb.esp b/services/samba/ldb.esp
index 6167bf904f..882afdde75 100644
--- a/services/samba/ldb.esp
+++ b/services/samba/ldb.esp
@@ -67,7 +67,7 @@ function _connect(params, error)
{
if (params.length < 1)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <db_name> [<option> ...]");
return error;
}
@@ -128,7 +128,7 @@ function _close(params, error)
{
if (params.length != 1)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id>");
return error;
}
@@ -169,7 +169,7 @@ function _transaction_start(params, error)
{
if (params.length != 1)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id>");
return error;
}
@@ -202,7 +202,7 @@ function _transaction_cancel(params, error)
{
if (params.length != 1)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id>");
return error;
}
@@ -235,7 +235,7 @@ function _transaction_commit(params, error)
{
if (params.length != 1)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id>");
return error;
}
@@ -285,7 +285,7 @@ function _search(params, error)
{
if (params.length < 2 || params.length > 5)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: " +
"<resource_id> <expr> [<baseDN> [<scope> [<attrs>]]]");
return error;
@@ -327,7 +327,7 @@ function _search(params, error)
}
else
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"invalid scope: " + scope);
return error;
}
@@ -357,7 +357,7 @@ function _add(params, error)
{
if (params.length != 2)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <ldif>");
return error;
}
@@ -393,7 +393,7 @@ function _modify(params, error)
{
if (params.length != 2)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <ldif>");
return error;
}
@@ -429,7 +429,7 @@ function _del(params, error)
{
if (params.length != 2)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <dn>");
return error;
}
@@ -468,7 +468,7 @@ function _rename(params, error)
{
if (params.length != 3)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <old_dn> <new_dn>");
return error;
}
@@ -504,7 +504,7 @@ function _base64encode(params, error)
{
if (params.length != 2)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_encoded>");
return error;
}
@@ -540,7 +540,7 @@ function _base64decode(params, error)
{
if (params.length != 2)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_decoded>");
return error;
}
@@ -576,7 +576,7 @@ function _base64decode(params, error)
{
if (params.length != 2)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id> <string_to_be_decoded>");
return error;
}
@@ -608,7 +608,7 @@ function _errstring(params, error)
{
if (params.length != 1)
{
- error.setError(jsonrpc.Constant.ErrorCode.ParameterMismatch,
+ error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"usage: <resource_id>");
return error;
}