diff options
author | Michal Zidek <mzidek@redhat.com> | 2012-11-14 15:36:22 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-28 14:45:44 +0100 |
commit | 3f964af2d45b85c8c7461f5227b343340ab06b06 (patch) | |
tree | 05005911a805f91ceb730e3221bbf7211b1e111f /src/providers/ldap/sdap_async_initgroups_ad.c | |
parent | fac2e9f6f7551bf5bce89605cdb0672871613ca6 (diff) | |
download | sssd-3f964af2d45b85c8c7461f5227b343340ab06b06.tar.gz sssd-3f964af2d45b85c8c7461f5227b343340ab06b06.tar.xz sssd-3f964af2d45b85c8c7461f5227b343340ab06b06.zip |
idmap: Silence DEBUG messages when dealing with built-in SIDs.
When converting built-in SID to unix GID/UID a confusing debug
message about the failed conversion was printed. This patch special
cases these built-in objects.
https://fedorahosted.org/sssd/ticket/1593
Diffstat (limited to 'src/providers/ldap/sdap_async_initgroups_ad.c')
-rw-r--r-- | src/providers/ldap/sdap_async_initgroups_ad.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups_ad.c b/src/providers/ldap/sdap_async_initgroups_ad.c index 7da3f5088..8c0e7062b 100644 --- a/src/providers/ldap/sdap_async_initgroups_ad.c +++ b/src/providers/ldap/sdap_async_initgroups_ad.c @@ -452,7 +452,11 @@ sdap_get_ad_tokengroups_initgroups_lookup_done(struct tevent_req *subreq) sid_str)); ret = sdap_idmap_sid_to_unix(state->opts->idmap_ctx, sid_str, &gid); - if (ret != EOK) { + if (ret == ENOTSUP) { + DEBUG(SSSDBG_TRACE_FUNC, ("Skipping built-in object.\n")); + ret = EOK; + continue; + } else if (ret != EOK) { DEBUG(SSSDBG_MINOR_FAILURE, ("Could not convert SID to GID: [%s]. Skipping\n", strerror(ret))); |