2
Unix SMB/CIFS implementation.
4
winbind client common code
6
Copyright (C) Tim Potter 2000
7
Copyright (C) Andrew Tridgell 2000
8
Copyright (C) Andrew Bartlett 2002
11
This library is free software; you can redistribute it and/or
12
modify it under the terms of the GNU Lesser General Public
13
License as published by the Free Software Foundation; either
14
version 3 of the License, or (at your option) any later version.
16
This library is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
Library General Public License for more details.
21
You should have received a copy of the GNU Lesser General Public License
22
along with this program. If not, see <http://www.gnu.org/licenses/>.
25
#ifndef _NSSWITCH_WINBIND_CLIENT_H_
26
#define _NSSWITCH_WINBIND_CLIENT_H_
1
28
#include "winbind_nss_config.h"
2
29
#include "winbind_struct_protocol.h"
4
void winbindd_init_request(struct winbindd_request *req,int rq_type);
5
31
void winbindd_free_response(struct winbindd_response *response);
6
32
NSS_STATUS winbindd_send_request(int req_type, int need_priv,
7
33
struct winbindd_request *request);
12
38
NSS_STATUS winbindd_priv_request_response(int req_type,
13
39
struct winbindd_request *request,
14
40
struct winbindd_response *response);
15
int winbindd_read_reply(struct winbindd_response *response);
17
41
#define winbind_env_set() \
18
42
(strcmp(getenv(WINBINDD_DONT_ENV)?getenv(WINBINDD_DONT_ENV):"0","1") == 0)
23
47
#define winbind_on() \
24
48
(setenv(WINBINDD_DONT_ENV, "0", 1) == 0)
26
int winbind_write_sock(void *buffer, int count, int recursing, int need_priv);
27
int winbind_read_sock(void *buffer, int count);
28
void winbind_close_sock(void) __attribute__((destructor));
30
const char *nss_err_str(NSS_STATUS ret);
50
#endif /* _NSSWITCH_WINBIND_CLIENT_H_ */