s4-privs Seperate rights and privileges
[kai/samba.git] / nsswitch / winbind_client.h
1 #include "winbind_nss_config.h"
2 #include "winbind_struct_protocol.h"
3
4 void winbindd_free_response(struct winbindd_response *response);
5 NSS_STATUS winbindd_send_request(int req_type, int need_priv,
6                                  struct winbindd_request *request);
7 NSS_STATUS winbindd_get_response(struct winbindd_response *response);
8 NSS_STATUS winbindd_request_response(int req_type,
9                             struct winbindd_request *request,
10                             struct winbindd_response *response);
11 NSS_STATUS winbindd_priv_request_response(int req_type,
12                                           struct winbindd_request *request,
13                                           struct winbindd_response *response);
14 #define winbind_env_set() \
15         (strcmp(getenv(WINBINDD_DONT_ENV)?getenv(WINBINDD_DONT_ENV):"0","1") == 0)
16
17 #define winbind_off() \
18         (setenv(WINBINDD_DONT_ENV, "1", 1) == 0)
19
20 #define winbind_on() \
21         (setenv(WINBINDD_DONT_ENV, "0", 1) == 0)