sdap_utils.c revision 208b9f9bea519392428d99803edac1739ffdd444
/*
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)
{
struct ldb_message_element *el;
unsigned int num_values, i;
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++) {
if (ret) {
return ret;
}
}
}
return EOK;
}
sdap_save_all_names(const char *name,
struct sysdb_attrs *ldap_attrs,
struct sss_domain_info *dom,
struct sysdb_attrs *attrs)
{
const char *domname;
int i;
if (!tmp_ctx) {
goto done;
}
goto done;
}
for (i = 0; aliases[i]; i++) {
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;
}
}
}
done:
return ret;
}
{
*val = LDAP_DEREF_NEVER;
*val = LDAP_DEREF_ALWAYS;
} else {
return EINVAL;
}
return EOK;
}
const char *base_filter,
const char *extra_filter)
{
if (!extra_filter) {
}
if (extra_filter[0] == '(') {
} else {
}
return filter; /* NULL or not */
}