summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-09-22 13:14:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:02 -0500
commit0c7a18525cc662d4552e20796404a21ed9debcd5 (patch)
tree50fb219e83ca0f842cc0dc2e5acd32962997ee28 /source4
parent1efef4a19f4bb7990d47ab5403d7b4fde60f8013 (diff)
downloadsamba-0c7a18525cc662d4552e20796404a21ed9debcd5.tar.gz
samba-0c7a18525cc662d4552e20796404a21ed9debcd5.tar.bz2
samba-0c7a18525cc662d4552e20796404a21ed9debcd5.zip
r2526: use LDAP error 53 (unwillingToPerform)
when the backend didn't implement the call metze (This used to be commit e2fe6858494da311ee9a3f06dd84509572318893)
Diffstat (limited to 'source4')
-rw-r--r--source4/ldap_server/ldap_server.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c
index bb52a1bbb3..1db6c4f8fb 100644
--- a/source4/ldap_server/ldap_server.c
+++ b/source4/ldap_server/ldap_server.c
@@ -289,7 +289,7 @@ static void ldapsrv_SearchRequest(struct ldapsrv_call *call)
}
done = &done_r->msg.r.SearchResultDone;
- done->resultcode = 32;
+ done->resultcode = 53;
done->dn = NULL;
done->errormessage = NULL;
done->referral = NULL;
@@ -312,7 +312,7 @@ static void ldapsrv_ModifyRequest(struct ldapsrv_call *call)
part = ldapsrv_get_partition(call->conn, req->dn);
if (!part->ops->Modify) {
- ldapsrv_unwilling(call, 2);
+ ldapsrv_unwilling(call, 53);
return;
}
@@ -330,7 +330,7 @@ static void ldapsrv_AddRequest(struct ldapsrv_call *call)
part = ldapsrv_get_partition(call->conn, req->dn);
if (!part->ops->Add) {
- ldapsrv_unwilling(call, 2);
+ ldapsrv_unwilling(call, 53);
return;
}
@@ -348,7 +348,7 @@ static void ldapsrv_DelRequest(struct ldapsrv_call *call)
part = ldapsrv_get_partition(call->conn, req->dn);
if (!part->ops->Del) {
- ldapsrv_unwilling(call, 2);
+ ldapsrv_unwilling(call, 53);
return;
}
@@ -367,7 +367,7 @@ static void ldapsrv_ModifyDNRequest(struct ldapsrv_call *call)
part = ldapsrv_get_partition(call->conn, req->dn);
if (!part->ops->ModifyDN) {
- ldapsrv_unwilling(call, 2);
+ ldapsrv_unwilling(call, 53);
return;
}
@@ -385,7 +385,7 @@ static void ldapsrv_CompareRequest(struct ldapsrv_call *call)
part = ldapsrv_get_partition(call->conn, req->dn);
if (!part->ops->Compare) {
- ldapsrv_unwilling(call, 2);
+ ldapsrv_unwilling(call, 53);
return;
}