diff options
author | Sumit Bose <sbose@redhat.com> | 2017-07-20 20:11:57 +0200 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-07-24 21:15:17 +0200 |
commit | c377d4d604f1e7b35c484711f1084b7a761772b6 (patch) | |
tree | 5ba3372f9e9e541295f35dff6aa2e05338726da2 /src/lib | |
parent | 93493702980e23d5b0322d16681f4ba77d6dd999 (diff) | |
download | sssd-c377d4d604f1e7b35c484711f1084b7a761772b6.tar.gz sssd-c377d4d604f1e7b35c484711f1084b7a761772b6.tar.xz sssd-c377d4d604f1e7b35c484711f1084b7a761772b6.zip |
idmap_error_string: add missing descriptions
Related to https://pagure.io/SSSD/sssd/issue/1960
Related to https://pagure.io/SSSD/sssd/issue/1938
Related to https://pagure.io/SSSD/sssd/issue/1844
Related to https://pagure.io/SSSD/sssd/issue/1593
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/idmap/sss_idmap.c | 16 | ||||
-rw-r--r-- | src/lib/idmap/sss_idmap.h | 6 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/lib/idmap/sss_idmap.c b/src/lib/idmap/sss_idmap.c index ffb218c84..51338c587 100644 --- a/src/lib/idmap/sss_idmap.c +++ b/src/lib/idmap/sss_idmap.c @@ -180,6 +180,22 @@ const char *idmap_error_string(enum idmap_error_code err) break; case IDMAP_NO_RANGE: return "IDMAP range not found"; + break; + case IDMAP_BUILTIN_SID: + return "IDMAP SID from BUILTIN domain"; + break; + case IDMAP_OUT_OF_SLICES: + return "IDMAP not more free slices"; + break; + case IDMAP_COLLISION: + return "IDMAP new range collides with existing one"; + break; + case IDMAP_EXTERNAL: + return "IDMAP ID managed externally"; + break; + case IDMAP_NAME_UNKNOWN: + return "IDMAP domain with the given name not found"; + break; default: return "IDMAP unknown error code"; } diff --git a/src/lib/idmap/sss_idmap.h b/src/lib/idmap/sss_idmap.h index 20fdb6169..9c27a1600 100644 --- a/src/lib/idmap/sss_idmap.h +++ b/src/lib/idmap/sss_idmap.h @@ -84,7 +84,11 @@ enum idmap_error_code { IDMAP_EXTERNAL, /** The provided name was not found */ - IDMAP_NAME_UNKNOWN + IDMAP_NAME_UNKNOWN, + + /** Sentinel to indicate the end of the error code list, not returned by + * any call */ + IDMAP_ERR_LAST }; /** |