/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2016 Red Hat
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 "util/crypto/sss_crypto.h"
#include "responder/nss/nss_protocol.h"
static errno_t
bool mpg,
enum sss_id_type *id_type)
{
size_t c;
return EINVAL;
}
for (c = 0; c < el->num_values; c++) {
break;
}
}
if (c == el->num_values) {
} else {
if (mpg) {
} else {
}
}
return EOK;
}
static errno_t
struct cache_req_result *result,
enum sss_id_type *_type)
{
return EOK;
}
/* Well known objects are always groups. */
if (result->well_known_object) {
*_type = SSS_ID_TYPE_GID;
return EOK;
}
return ret;
}
return EOK;
}
struct nss_cmd_ctx *cmd_ctx,
struct sss_packet *packet,
struct cache_req_result *result)
{
const char *sid;
return ret;
}
return EINVAL;
}
return ret;
}
return EOK;
}
const char **attr_list,
struct sized_string **_keys,
struct sized_string **_vals,
{
size_t c;
size_t d;
bool use_base64;
*array_size);
*array_size);
return ENOMEM;
}
}
use_base64 = false;
use_base64 = true;
}
for (d = 0; d < el->num_values; d++) {
if (use_base64) {
}
} else {
}
"Unexpected attribute value found for [%s].\n",
attr_list[c]);
return EINVAL;
}
(*found)++;
}
}
}
return EOK;
}
struct nss_cmd_ctx *cmd_ctx,
struct sss_packet *packet,
struct cache_req_result *result)
{
size_t i;
NULL };
return ENOMEM;
}
return ret;
}
for (extra_attrs_count = 0;
}
goto done;
}
sum = 0;
found = 0;
goto done;
}
if (extra_attrs_count != 0) {
goto done;
}
}
goto done;
}
for (i = 0; i < found; i++) {
}
done:
return ret;
}
static errno_t
struct cache_req_result *result,
struct sized_string **_sz_name)
{
const char *domname;
const char *name;
return EINVAL;
}
return ENOMEM;
}
return ENOMEM;
}
}
return EOK;
}
static errno_t
struct cache_req_result *result,
struct sized_string **_sz_name)
{
const char *name;
if (result->well_known_object) {
}
NULL);
}
return EINVAL;
}
"Unable to create sized name [%d]: %s\n",
return ret;
}
return EOK;
}
struct nss_cmd_ctx *cmd_ctx,
struct sss_packet *packet,
struct cache_req_result *result)
{
"but only one was expected.\n");
return EEXIST;
}
}
struct nss_cmd_ctx *cmd_ctx,
struct sss_packet *packet,
struct cache_req_result *result)
{
return ret;
}
return ret;
}
return ret;
}
return EOK;
}
struct nss_cmd_ctx *cmd_ctx,
struct sss_packet *packet,
struct cache_req_result *result)
{
/* This was a well known SID. This is currently unsupported with id. */
return EINVAL;
}
return ret;
}
if (id_type == SSS_ID_TYPE_GID) {
} else {
}
return EINVAL;
}
return ret;
}
return EOK;
}
struct nss_cmd_ctx *cmd_ctx,
struct sss_packet *packet,
struct cache_req_result *result)
{
size_t c;
const char *tmp_str;
return ENOMEM;
}
return ENOMEM;
}
len = 0;
return ret;
}
return EINVAL;
}
}
return ret;
}
&rp);
}
return EOK;
}
struct nss_cmd_ctx *cmd_ctx,
struct sss_packet *packet,
struct cache_req_result **results)
{
size_t c;
const char *tmp_str;
size_t d;
return EINVAL;
}
}
return ENOMEM;
}
return ENOMEM;
}
len = 0;
return ret;
}
return EINVAL;
}
iter++;
}
}
return ret;
}
for (c = 0; c < total; c++) {
&rp);
}
return EOK;
}