1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

r2526: use LDAP error 53 (unwillingToPerform)

when the backend didn't implement the call

metze
(This used to be commit e2fe685849)
This commit is contained in:
Stefan Metzmacher
2004-09-22 13:14:56 +00:00
committed by Gerald (Jerry) Carter
parent 1efef4a19f
commit 0c7a18525c

View File

@ -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;
}