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