diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-09-23 16:27:23 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-22 15:43:42 +0200 |
commit | 5eda23c28c582b43b2a0a165b1750f3875c0fa84 (patch) | |
tree | 2cf532925461c2292ad4252406cb4a0ad578bbb7 /src/responder/common/responder.h | |
parent | e373fffbb8e06d0d7682d095c734e8df8a499ba0 (diff) | |
download | sssd-5eda23c28c582b43b2a0a165b1750f3875c0fa84.tar.gz sssd-5eda23c28c582b43b2a0a165b1750f3875c0fa84.tar.xz sssd-5eda23c28c582b43b2a0a165b1750f3875c0fa84.zip |
UTIL: Add a function to convert id_t from a number or a name
We need a custom function that would convert a numeric or string input
into uid_t. The function will be used to drop privileges in servers and
also in the PAC and IFP responders.
Includes a unit test to test all code that changed as well as a fix for
a misnamed attribute in the csv_to_uid_list function synopsis.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/responder/common/responder.h')
-rw-r--r-- | src/responder/common/responder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/common/responder.h b/src/responder/common/responder.h index 3674d13f2..97552ec47 100644 --- a/src/responder/common/responder.h +++ b/src/responder/common/responder.h @@ -308,7 +308,7 @@ errno_t schedule_get_domains_task(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct resp_ctx *rctx); -errno_t csv_string_to_uid_array(TALLOC_CTX *mem_ctx, const char *cvs_string, +errno_t csv_string_to_uid_array(TALLOC_CTX *mem_ctx, const char *csv_string, bool allow_sss_loop, size_t *_uid_count, uid_t **_uids); |