sdap_autofs.c revision dcb44c39dda9699cdd6488fd116a51ced0687de3
/*
SSSD
LDAP handler for autofs
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 <errno.h>
#include <tevent.h>
#include "providers/ldap/ldap_common.h"
#include "providers/ldap/sdap_autofs.h"
#include "providers/ldap/sdap_async.h"
#include "providers/dp_backend.h"
#include "db/sysdb_autofs.h"
static void
{
}
/* Autofs Handler */
struct bet_ops sdap_autofs_ops = {
};
struct sdap_id_ctx *id_ctx,
void **pvt_data)
{
int ret;
*ops = &sdap_autofs_ops;
return ret;
}
return ret;
}
static struct tevent_req *
struct tevent_context *ev,
struct sdap_id_ctx *ctx,
const char *map_name);
{
struct sdap_id_ctx *id_ctx;
struct be_autofs_req *autofs_req;
struct tevent_req *req;
struct sdap_id_ctx);
}
if (autofs_req->invalidate) {
"backend might return stale entries\n"));
}
}
if (!req) {
goto fail;
}
return;
fail:
}
struct autofs_get_map_state {
struct tevent_context *ev;
struct sdap_id_ctx *ctx;
struct sdap_id_op *op;
const char *map_name;
int dp_error;
};
static errno_t
static void
static void
static struct tevent_req *
struct tevent_context *ev,
struct sdap_id_ctx *ctx,
const char *map_name)
{
struct tevent_req *req;
struct autofs_get_map_state *state;
int ret;
goto fail;
}
goto fail;
}
return req;
fail:
return req;
}
static errno_t
{
struct autofs_get_map_state *state =
struct tevent_req *subreq;
if (!subreq) {
return ret;
}
return EOK;
}
static void
{
struct tevent_req);
struct autofs_get_map_state *state =
int dp_error = DP_ERR_FATAL;
int ret;
return;
}
if (!subreq) {
("sdap_autofs_setautomntent_send failed\n"));
return;
}
}
static void
{
struct tevent_req);
struct autofs_get_map_state *state =
int dp_error = DP_ERR_FATAL;
int ret;
/* retry */
return;
}
return;
}
return;
}
("Cannot delete autofs map %s [%d]: %s\n",
return;
}
}
}
static errno_t
{
struct autofs_get_map_state *state =
if (dp_error_out) {
}
return EOK;
}
static void
{
int dperr;
}