sysdb_autofs.c revision d115f40c7a3999e3cbe705a2ff9cf0fd493f80fb
/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2012 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 <talloc.h>
#include "db/sysdb_private.h"
#include "db/sysdb_autofs.h"
static struct ldb_dn *
struct sss_domain_info *domain,
const char *map_name)
{
}
static struct ldb_dn *
struct sss_domain_info *domain,
const char *map_name,
const char *entry_name,
const char *entry_value)
{
char *clean_name;
char *clean_value;
const char *rdn;
if (!tmp_ctx) {
return NULL;
}
goto done;
}
goto done;
}
if (!rdn) {
goto done;
}
done:
return dn;
}
char *
struct sss_domain_info *domain,
const char *map_name,
const char *entry_name,
const char *entry_value)
{
char *strdn;
return strdn;
}
const char *name,
const char *autofsmapname,
struct sysdb_attrs *attrs,
int cache_timeout,
{
if (!tmp_ctx) {
return ENOMEM;
}
if (!attrs) {
if (!attrs) {
goto done;
}
}
goto done;
}
goto done;
}
goto done;
}
if (ret) {
goto done;
}
((cache_timeout) ?
(now + cache_timeout) : 0));
if (ret) {
goto done;
}
goto done;
}
done:
return ret;
}
const char *name)
{
}
struct sss_domain_info *domain,
const char *map_name,
struct ldb_message **_map)
{
const char *filter;
char *safe_map_name;
struct ldb_message **msgs;
const char *attrs[] = { SYSDB_OBJECTCLASS,
NULL };
("Cannot sanitize map [%s] error [%d]: %s\n",
goto done;
}
if (!filter) {
goto done;
}
("Error looking up autofs map [%s]", safe_map_name));
goto done;
goto done;
}
if (count != 1) {
("More than one map named %s\n", safe_map_name));
goto done;
}
done:
return ret;
}
const char *map,
const char *key,
const char *value,
struct sysdb_attrs *attrs)
{
struct ldb_message *msg;
const char *name;
if (!tmp_ctx) {
return ENOMEM;
}
if (!attrs) {
if (!attrs) {
goto done;
}
}
goto done;
}
goto done;
}
goto done;
}
if (!name) {
goto done;
}
goto done;
}
if (!dn) {
goto done;
}
if (!msg) {
goto done;
}
done:
return ret;
}
const char *entry_dn)
{
if (!dn) {
return ENOMEM;
}
return ret;
}
struct sss_domain_info *domain,
const char *mapname,
struct ldb_message ***_entries)
{
char *filter;
const char *attrs[] = { SYSDB_AUTOFS_ENTRY_KEY,
NULL };
struct ldb_message **msgs;
if (!tmp_ctx) {
return ENOMEM;
}
if (!mapdn) {
goto done;
}
if (!filter) {
goto done;
}
goto done;
*_count = 0;
goto done;
}
done:
return ret;
}
const char *name,
struct sysdb_attrs *attrs,
int mod_op)
{
if (!tmp_ctx) {
return ENOMEM;
}
if (!dn) {
goto done;
}
done:
return ret;
}
{
const char *filter;
const char *attrs[] = { SYSDB_OBJECTCLASS,
NULL };
struct ldb_message **msgs;
const char *name;
bool in_transaction = false;
int sret;
int i;
if (!filter) {
goto done;
}
("Error looking up autofs maps"));
goto done;
goto done;
}
if (!sys_attrs) {
goto done;
}
goto done;
}
goto done;
}
in_transaction = true;
for (i = 0; i < count; i++) {
if (!name) {
continue;
}
continue;
}
}
goto done;
}
in_transaction = false;
done:
if (in_transaction) {
}
}
return ret;
}