summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2015-03-04 15:05:11 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-03-13 15:55:57 +0100
commit3e9712c2fdbba8f9cd25886943331e76e0b2cedd (patch)
treef0169249fb497b19daf1a10cabf2d24b17a41b60 /src/providers
parent10da5ea89b2b963e5e0bb0e0113d118e3bdea892 (diff)
downloadsssd-3e9712c2fdbba8f9cd25886943331e76e0b2cedd.tar.gz
sssd-3e9712c2fdbba8f9cd25886943331e76e0b2cedd.tar.xz
sssd-3e9712c2fdbba8f9cd25886943331e76e0b2cedd.zip
ipa: do not treat missing sub-domain users as error
Resolves: https://fedorahosted.org/sssd/ticket/2444 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_s2n_exop.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
index 18f2a867d..d5e948061 100644
--- a/src/providers/ipa/ipa_s2n_exop.c
+++ b/src/providers/ipa/ipa_s2n_exop.c
@@ -147,9 +147,13 @@ static void ipa_s2n_exop_done(struct sdap_op *op,
sss_ldap_err2string(result), result, errmsg);
if (result != LDAP_SUCCESS) {
- DEBUG(SSSDBG_OP_FAILURE, "ldap_extended_operation failed, " \
- "server logs might contain more details.\n");
- ret = ERR_NETWORK_IO;
+ if (result == LDAP_NO_SUCH_OBJECT) {
+ ret = ENOENT;
+ } else {
+ DEBUG(SSSDBG_OP_FAILURE, "ldap_extended_operation failed, server " \
+ "logs might contain more details.\n");
+ ret = ERR_NETWORK_IO;
+ }
goto done;
}