Searched refs:whitelist (Results 1 - 4 of 4) sorted by relevance

/sssd/src/responder/ifp/
H A Difpsrv_util.c183 ifp_attr_allowed(const char *whitelist[], const char *attr) argument
187 if (whitelist == NULL) {
191 for (i = 0; whitelist[i]; i++) {
192 if (strcasecmp(whitelist[i], attr) == 0) {
197 return (whitelist[i]) ? true : false;
213 const char **whitelist = ifp_ctx->user_whitelist; local
225 for (i = 0; whitelist[i] != NULL; i++) {
226 /* Just count number of attributes in whitelist. */
236 for (i = 0; whitelist[i] != NULL; i++) {
239 if (strcmp(whitelist[
[all...]
H A Difp_private.h81 bool ifp_attr_allowed(const char *whitelist[], const char *attr);
H A Difpsrv_cmd.c110 const char **whitelist = attr_req->ireq->ifp_ctx->user_whitelist; local
130 if (ifp_attr_allowed(whitelist, attrs[i]) == false) {
132 "Attribute %s not present in the whitelist, skipping\n",
/sssd/src/tests/cmocka/
H A Dtest_ifp.c345 const char *whitelist[] = { "name", "gecos", NULL }; local
348 assert_true(ifp_attr_allowed(whitelist, "name"));
349 assert_true(ifp_attr_allowed(whitelist, "gecos"));
351 assert_false(ifp_attr_allowed(whitelist, "password"));

Completed in 1320 milliseconds