/*
SSSD
Common Responder utility functions
Copyright (C) Sumit Bose <sbose@redhat.com> 2014
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <talloc.h>
#include "responder/common/responder.h"
static inline bool
{
size_t i;
for (i = 0; i < nlist; i++) {
break;
}
}
return (i < nlist) ? true : false;
}
const char **defaults)
{
int list_size;
int conf_list_size = 0;
int i;
return NULL;
}
if (conf_str) {
&conf_list, &conf_list_size);
goto done;
}
goto done;
}
}
for (i = 0; i < conf_list_size; i++) {
switch (conf_list[i][0]) {
case '+':
ai++;
continue;
case '-':
di++;
continue;
default:
"either '+' (allow) or '-' (deny), got '%s'\n",
conf_list[i]);
goto done;
}
}
/* Assume the output will have to hold defaults and all the configured,
* values, resize later
*/
list_size = 0;
list_size++;
}
}
goto done;
}
/* Start by copying explicitly allowed attributes */
for (i = 0; i < ai; i++) {
/* if the attribute is explicitly denied, skip it */
continue;
}
goto done;
}
li++;
"Added allowed attr %s to whitelist\n", allow[i]);
}
/* Add defaults */
for (i = 0; defaults[i]; i++) {
/* if the attribute is explicitly denied, skip it */
continue;
}
goto done;
}
li++;
"Added default attr %s to whitelist\n", defaults[i]);
}
}
done:
return res;
}
struct sss_domain_info *dom,
bool name_is_upn,
const char *orig_name)
{
char *name;
return NULL;
}
return NULL;
}
return NULL;
}
if (name_is_upn == false) {
return NULL;
}
}
return name;
}