/*
Authors:
Simo Sorce <ssorce@redhat.com>
Copyright (C) 2013 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 <ctype.h>
#include "providers/ldap/sdap_async.h"
const char *attr_name,
const char *attr_desc,
bool multivalued,
const char *name,
struct sysdb_attrs *attrs)
{
unsigned int num_values, i;
char *printable;
if (ret) {
"list of the LDAP attributes [%d]: %s\n",
return ret;
}
if (el->num_values == 0) {
} else {
for (i = 0; i < num_values; i++) {
continue;
}
if (ret) {
return ret;
}
}
}
return EOK;
}
struct sysdb_attrs *ldap_attrs,
struct sss_domain_info *dom,
enum sysdb_member_type entry_type,
struct sysdb_attrs *attrs)
{
const char *sysdb_alias;
int i;
bool store_as_fqdn;
const char **emails;
switch (entry_type) {
case SYSDB_MEMBER_USER:
case SYSDB_MEMBER_GROUP:
store_as_fqdn = true;
break;
default:
store_as_fqdn = false;
break;
}
if (!tmp_ctx) {
goto done;
}
goto done;
}
for (i = 0; aliases[i]; i++) {
if (store_as_fqdn) {
} else {
sysdb_alias = aliases[i];
}
if (sysdb_alias == NULL) {
goto done;
}
if (lowercase) {
if (ret) {
"of alias [%s] into the "
"attribute list\n", aliases[i]);
goto done;
}
} else {
if (ret) {
"attribute list\n", aliases[i]);
goto done;
}
}
}
&emails);
if (ret) {
"Failed to add lower-cased version of email [%s] "
"into the alias list\n", emails[i]);
goto done;
}
}
}
} else {
"sysdb_attrs_get_string_array failed, skipping ...\n");
}
done:
return ret;
}
{
*val = LDAP_DEREF_NEVER;
*val = LDAP_DEREF_ALWAYS;
} else {
return EINVAL;
}
return EOK;
}
static char *
char operator,
const char *base_filter,
const char *extra_filter)
{
}
if (extra_filter[0] == '(') {
} else {
}
return filter; /* NULL or not */
}
const char *base_filter,
const char *extra_filter)
{
}
const char *base_filter,
const char *extra_filter)
{
}
const char *attr_name,
const char *princ,
struct dp_option *sdap_basic_opts)
{
const char *realm;
char *p;
return NULL;
}
return NULL;
}
if (p == NULL) {
return NULL;
}
(int) (p - princ),
p + 1, realm);
}