source: branches/samba-3.5.x/nsswitch/winbind_client.h@ 1010

Last change on this file since 1010 was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 1.1 KB
Line 
1#include "winbind_nss_config.h"
2#include "winbind_struct_protocol.h"
3
4void winbindd_init_request(struct winbindd_request *req,int rq_type);
5void winbindd_free_response(struct winbindd_response *response);
6NSS_STATUS winbindd_send_request(int req_type, int need_priv,
7 struct winbindd_request *request);
8NSS_STATUS winbindd_get_response(struct winbindd_response *response);
9NSS_STATUS winbindd_request_response(int req_type,
10 struct winbindd_request *request,
11 struct winbindd_response *response);
12NSS_STATUS winbindd_priv_request_response(int req_type,
13 struct winbindd_request *request,
14 struct winbindd_response *response);
15int winbindd_read_reply(struct winbindd_response *response);
16
17#define winbind_env_set() \
18 (strcmp(getenv(WINBINDD_DONT_ENV)?getenv(WINBINDD_DONT_ENV):"0","1") == 0)
19
20#define winbind_off() \
21 (setenv(WINBINDD_DONT_ENV, "1", 1) == 0)
22
23#define winbind_on() \
24 (setenv(WINBINDD_DONT_ENV, "0", 1) == 0)
25
26int winbind_write_sock(void *buffer, int count, int recursing, int need_priv);
27int winbind_read_sock(void *buffer, int count);
28void winbind_close_sock(void);
29
30const char *nss_err_str(NSS_STATUS ret);
Note: See TracBrowser for help on using the repository browser.