summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins/ipa-extdom-extop
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2015-03-04 13:39:04 +0100
committerTomas Babej <tbabej@redhat.com>2015-03-10 11:56:36 +0100
commit024463804c0c73e89ed76e709a838762a8302f04 (patch)
treeefa579e63f1f9b129fe663c647807de89ab01331 /daemons/ipa-slapi-plugins/ipa-extdom-extop
parentf26220b9b301b406325c3206c2a7fe0edd6771f0 (diff)
downloadfreeipa-024463804c0c73e89ed76e709a838762a8302f04.tar.gz
freeipa-024463804c0c73e89ed76e709a838762a8302f04.tar.xz
freeipa-024463804c0c73e89ed76e709a838762a8302f04.zip
extdom: return LDAP_NO_SUCH_OBJECT to the client
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-extdom-extop')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c b/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
index e53f968db..1ea0c1320 100644
--- a/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
+++ b/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
@@ -123,8 +123,12 @@ static int ipa_extdom_extop(Slapi_PBlock *pb)
ret = handle_request(ctx, req, &ret_val);
if (ret != LDAP_SUCCESS) {
- rc = LDAP_OPERATIONS_ERROR;
- err_msg = "Failed to handle the request.\n";
+ if (ret == LDAP_NO_SUCH_OBJECT) {
+ rc = LDAP_NO_SUCH_OBJECT;
+ } else {
+ rc = LDAP_OPERATIONS_ERROR;
+ err_msg = "Failed to handle the request.\n";
+ }
goto done;
}