Skip to content

Commit 72a42d5

Browse files
sumit-bosealexey-tikhonov
authored andcommitted
sysdb: do not treat missing id-override as an error
In sysdb_search_user_by_upn_with_view_res() sysdb_add_overrides_to_object() can return ENOENT if there is no id-override for the given user. This is expected and should not be treated as an error. Reviewed-by: Alexey Tikhonov <[email protected]>
1 parent c123201 commit 72a42d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/db/sysdb_ops.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ int sysdb_search_user_by_upn_with_view_res(TALLOC_CTX *mem_ctx,
743743
DEBUG(SSSDBG_OP_FAILURE, "sysdb_add_overrides_to_object failed.\n");
744744
return ret;
745745
}
746+
ret = EOK;
746747
}
747748

748749
*out_res = orig_obj;

0 commit comments

Comments
 (0)