nsssrv.h revision 21bc143c2855638242e9dfe01ea66198b5883b8a
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering/*
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering SSSD
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering NSS Responder, header file
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering Copyright (C) Simo Sorce <ssorce@redhat.com> 2008
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering This program is free software; you can redistribute it and/or modify
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering it under the terms of the GNU General Public License as published by
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering the Free Software Foundation; either version 3 of the License, or
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering (at your option) any later version.
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering This program is distributed in the hope that it will be useful,
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering but WITHOUT ANY WARRANTY; without even the implied warranty of
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering GNU General Public License for more details.
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering You should have received a copy of the GNU General Public License
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering along with this program. If not, see <http://www.gnu.org/licenses/>.
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering*/
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering#ifndef __NSSSRV_H__
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering#define __NSSSRV_H__
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering#include "config.h"
4ba93280223ceb5de1bcedb196c38252f334521aLennart Poettering
023fb90b83871a15ef7f57e8cd126e3426f99b9eLennart Poettering#include <stdint.h>
023fb90b83871a15ef7f57e8cd126e3426f99b9eLennart Poettering#include <sys/un.h>
023fb90b83871a15ef7f57e8cd126e3426f99b9eLennart Poettering#include <talloc.h>
023fb90b83871a15ef7f57e8cd126e3426f99b9eLennart Poettering#include <tevent.h>
023fb90b83871a15ef7f57e8cd126e3426f99b9eLennart Poettering#include <ldb.h>
023fb90b83871a15ef7f57e8cd126e3426f99b9eLennart Poettering#include <dbus/dbus.h>
023fb90b83871a15ef7f57e8cd126e3426f99b9eLennart Poettering
023fb90b83871a15ef7f57e8cd126e3426f99b9eLennart Poettering#include "sbus/sssd_dbus.h"
#include "responder/common/responder_packet.h"
#include "responder/common/responder.h"
#include "lib/idmap/sss_idmap.h"
#define NSS_PACKET_MAX_RECV_SIZE 1024
struct getent_ctx;
struct sss_mc_ctx;
struct nss_ctx {
struct resp_ctx *rctx;
int neg_timeout;
struct sss_nc_ctx *ncache;
int cache_refresh_percent;
int enum_cache_timeout;
struct getent_ctx *pctx;
struct getent_ctx *gctx;
struct getent_ctx *svcctx;
hash_table_t *netgroups;
bool filter_users_in_groups;
char *pwfield;
char *override_homedir;
char *fallback_homedir;
char *homedir_substr;
char **allowed_shells;
char *override_shell;
char **vetoed_shells;
char **etc_shells;
char *shell_fallback;
char *default_shell;
char *override_default_wsp_str;
struct sss_mc_ctx *pwd_mc_ctx;
struct sss_mc_ctx *grp_mc_ctx;
struct sss_idmap_ctx *idmap_ctx;
struct sss_names_ctx *global_names;
};
struct nss_packet;
struct sss_cmd_table *get_nss_cmds(void);
#endif /* __NSSSRV_H__ */