/*
SSSD
Proxy provider, private header file
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2010 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/>.
*/
#ifndef __PROXY_H__
#define __PROXY_H__
#include <nss.h>
#include <errno.h>
#include <pwd.h>
#include <grp.h>
#include <dlfcn.h>
#include <security/pam_appl.h>
#include <security/pam_modules.h>
#include "sss_client/nss_compat.h"
#include <dhash.h>
struct proxy_nss_ops {
int *errnop);
struct __netgrent *result);
/* Services */
const char *protocol,
int *errnop);
int *errnop);
int *errnop);
};
struct authtok_conv {
bool sent_old;
};
struct proxy_id_ctx {
bool fast_alias;
void *handle;
};
struct proxy_auth_ctx {
char *pam_target;
int timeout_ms;
};
struct proxy_child_ctx {
bool running;
};
struct pc_init_ctx {
char *command;
};
//int proxy_client_init(struct sbus_connection *conn, void *data);
/* From proxy_id.c */
struct tevent_req *
struct proxy_id_ctx *id_ctx,
struct dp_id_data *data,
struct dp_req_params *params);
struct tevent_req *req,
struct dp_reply_std *data);
/* From proxy_auth.c */
struct tevent_req *
struct proxy_auth_ctx *proxy_auth_ctx,
struct dp_req_params *params);
struct tevent_req *req,
/* From proxy_netgroup.c */
struct sss_domain_info *dom,
const char *name);
struct sss_domain_info *dom,
const char *name,
const char *protocol);
struct sss_domain_info *dom,
const char *be_filter,
const char *protocol);
struct sss_domain_info *dom);
#endif /* __PROXY_H__ */