| 1 | #ifndef _WINBINDD_PROTO_H_
|
|---|
| 2 | #define _WINBINDD_PROTO_H_
|
|---|
| 3 |
|
|---|
| 4 | /* This file is automatically generated with "make proto". DO NOT EDIT */
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 | /* The following definitions come from nsswitch/winbindd.c */
|
|---|
| 8 |
|
|---|
| 9 | struct event_context *winbind_event_context(void);
|
|---|
| 10 | void add_fd_event(struct fd_event *ev);
|
|---|
| 11 | void remove_fd_event(struct fd_event *ev);
|
|---|
| 12 | void setup_async_read(struct fd_event *event, void *data, size_t length,
|
|---|
| 13 | void (*finished)(void *private_data, BOOL success),
|
|---|
| 14 | void *private_data);
|
|---|
| 15 | void setup_async_write(struct fd_event *event, void *data, size_t length,
|
|---|
| 16 | void (*finished)(void *private_data, BOOL success),
|
|---|
| 17 | void *private_data);
|
|---|
| 18 | void request_error(struct winbindd_cli_state *state);
|
|---|
| 19 | void request_ok(struct winbindd_cli_state *state);
|
|---|
| 20 | void request_finished_cont(void *private_data, BOOL success);
|
|---|
| 21 | int main(int argc, char **argv, char **envp);
|
|---|
| 22 |
|
|---|
| 23 | /* The following definitions come from nsswitch/winbindd_ads.c */
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | /* The following definitions come from nsswitch/winbindd_async.c */
|
|---|
| 27 |
|
|---|
| 28 | void do_async_domain(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
|
|---|
| 29 | const struct winbindd_request *request,
|
|---|
| 30 | void (*cont)(TALLOC_CTX *mem_ctx, BOOL success,
|
|---|
| 31 | struct winbindd_response *response,
|
|---|
| 32 | void *c, void *private_data),
|
|---|
| 33 | void *c, void *private_data);
|
|---|
| 34 | void winbindd_set_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map,
|
|---|
| 35 | void (*cont)(void *private_data, BOOL success),
|
|---|
| 36 | void *private_data);
|
|---|
| 37 | enum winbindd_result winbindd_dual_set_mapping(struct winbindd_domain *domain,
|
|---|
| 38 | struct winbindd_cli_state *state);
|
|---|
| 39 | void winbindd_set_hwm_async(TALLOC_CTX *mem_ctx, const struct unixid *xid,
|
|---|
| 40 | void (*cont)(void *private_data, BOOL success),
|
|---|
| 41 | void *private_data);
|
|---|
| 42 | enum winbindd_result winbindd_dual_set_hwm(struct winbindd_domain *domain,
|
|---|
| 43 | struct winbindd_cli_state *state);
|
|---|
| 44 | void winbindd_sids2xids_async(TALLOC_CTX *mem_ctx, void *sids, int size,
|
|---|
| 45 | void (*cont)(void *private_data, BOOL success, void *data, int len),
|
|---|
| 46 | void *private_data);
|
|---|
| 47 | enum winbindd_result winbindd_dual_sids2xids(struct winbindd_domain *domain,
|
|---|
| 48 | struct winbindd_cli_state *state);
|
|---|
| 49 | void winbindd_sid2uid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
|
|---|
| 50 | void (*cont)(void *private_data, BOOL success, uid_t uid),
|
|---|
| 51 | void *private_data);
|
|---|
| 52 | enum winbindd_result winbindd_dual_sid2uid(struct winbindd_domain *domain,
|
|---|
| 53 | struct winbindd_cli_state *state);
|
|---|
| 54 | void winbindd_uid2name_async(TALLOC_CTX *mem_ctx, uid_t uid,
|
|---|
| 55 | void (*cont)(void *private_data, BOOL success,
|
|---|
| 56 | const char *name),
|
|---|
| 57 | void *private_data);
|
|---|
| 58 | enum winbindd_result winbindd_dual_uid2name(struct winbindd_domain *domain,
|
|---|
| 59 | struct winbindd_cli_state *state);
|
|---|
| 60 | enum winbindd_result winbindd_dual_name2uid(struct winbindd_domain *domain,
|
|---|
| 61 | struct winbindd_cli_state *state);
|
|---|
| 62 | void winbindd_sid2gid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
|
|---|
| 63 | void (*cont)(void *private_data, BOOL success, gid_t gid),
|
|---|
| 64 | void *private_data);
|
|---|
| 65 | enum winbindd_result winbindd_dual_sid2gid(struct winbindd_domain *domain,
|
|---|
| 66 | struct winbindd_cli_state *state);
|
|---|
| 67 | void winbindd_gid2name_async(TALLOC_CTX *mem_ctx, gid_t gid,
|
|---|
| 68 | void (*cont)(void *private_data, BOOL success,
|
|---|
| 69 | const char *name),
|
|---|
| 70 | void *private_data);
|
|---|
| 71 | enum winbindd_result winbindd_dual_gid2name(struct winbindd_domain *domain,
|
|---|
| 72 | struct winbindd_cli_state *state);
|
|---|
| 73 | enum winbindd_result winbindd_dual_name2gid(struct winbindd_domain *domain,
|
|---|
| 74 | struct winbindd_cli_state *state);
|
|---|
| 75 | void winbindd_lookupsid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
|
|---|
| 76 | void (*cont)(void *private_data, BOOL success,
|
|---|
| 77 | const char *dom_name,
|
|---|
| 78 | const char *name,
|
|---|
| 79 | enum lsa_SidType type),
|
|---|
| 80 | void *private_data);
|
|---|
| 81 | enum winbindd_result winbindd_dual_lookupsid(struct winbindd_domain *domain,
|
|---|
| 82 | struct winbindd_cli_state *state);
|
|---|
| 83 | void winbindd_lookupname_async(TALLOC_CTX *mem_ctx,
|
|---|
| 84 | const char *dom_name, const char *name,
|
|---|
| 85 | void (*cont)(void *private_data, BOOL success,
|
|---|
| 86 | const DOM_SID *sid,
|
|---|
| 87 | enum lsa_SidType type),
|
|---|
| 88 | void *private_data);
|
|---|
| 89 | enum winbindd_result winbindd_dual_lookupname(struct winbindd_domain *domain,
|
|---|
| 90 | struct winbindd_cli_state *state);
|
|---|
| 91 | BOOL print_sidlist(TALLOC_CTX *mem_ctx, const DOM_SID *sids,
|
|---|
| 92 | size_t num_sids, char **result, ssize_t *len);
|
|---|
| 93 | enum winbindd_result winbindd_dual_lookuprids(struct winbindd_domain *domain,
|
|---|
| 94 | struct winbindd_cli_state *state);
|
|---|
| 95 | void winbindd_getsidaliases_async(struct winbindd_domain *domain,
|
|---|
| 96 | TALLOC_CTX *mem_ctx,
|
|---|
| 97 | const DOM_SID *sids, size_t num_sids,
|
|---|
| 98 | void (*cont)(void *private_data,
|
|---|
| 99 | BOOL success,
|
|---|
| 100 | const DOM_SID *aliases,
|
|---|
| 101 | size_t num_aliases),
|
|---|
| 102 | void *private_data);
|
|---|
| 103 | enum winbindd_result winbindd_dual_getsidaliases(struct winbindd_domain *domain,
|
|---|
| 104 | struct winbindd_cli_state *state);
|
|---|
| 105 | void winbindd_gettoken_async(TALLOC_CTX *mem_ctx, const DOM_SID *user_sid,
|
|---|
| 106 | void (*cont)(void *private_data, BOOL success,
|
|---|
| 107 | DOM_SID *sids, size_t num_sids),
|
|---|
| 108 | void *private_data);
|
|---|
| 109 | void query_user_async(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
|
|---|
| 110 | const DOM_SID *sid,
|
|---|
| 111 | void (*cont)(void *private_data, BOOL success,
|
|---|
| 112 | const char *acct_name,
|
|---|
| 113 | const char *full_name,
|
|---|
| 114 | const char *homedir,
|
|---|
| 115 | const char *shell,
|
|---|
| 116 | gid_t gid,
|
|---|
| 117 | uint32 group_rid),
|
|---|
| 118 | void *private_data);
|
|---|
| 119 | void winbindd_uid2sid_async(TALLOC_CTX *mem_ctx, uid_t uid,
|
|---|
| 120 | void (*cont)(void *private_data, BOOL success, const char *sid),
|
|---|
| 121 | void *private_data);
|
|---|
| 122 | enum winbindd_result winbindd_dual_uid2sid(struct winbindd_domain *domain,
|
|---|
| 123 | struct winbindd_cli_state *state);
|
|---|
| 124 | void winbindd_gid2sid_async(TALLOC_CTX *mem_ctx, gid_t gid,
|
|---|
| 125 | void (*cont)(void *private_data, BOOL success, const char *sid),
|
|---|
| 126 | void *private_data);
|
|---|
| 127 | enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
|
|---|
| 128 | struct winbindd_cli_state *state);
|
|---|
| 129 | void winbindd_dump_maps_async(TALLOC_CTX *mem_ctx, void *data, int size,
|
|---|
| 130 | void (*cont)(void *private_data, BOOL success),
|
|---|
| 131 | void *private_data);
|
|---|
| 132 | enum winbindd_result winbindd_dual_dump_maps(struct winbindd_domain *domain,
|
|---|
| 133 | struct winbindd_cli_state *state);
|
|---|
| 134 |
|
|---|
| 135 | /* The following definitions come from nsswitch/winbindd_cache.c */
|
|---|
| 136 |
|
|---|
| 137 | void winbindd_check_cache_size(time_t t);
|
|---|
| 138 | struct cache_entry *centry_start(struct winbindd_domain *domain, NTSTATUS status);
|
|---|
| 139 | NTSTATUS wcache_cached_creds_exist(struct winbindd_domain *domain, const DOM_SID *sid);
|
|---|
| 140 | NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
|
|---|
| 141 | TALLOC_CTX *mem_ctx,
|
|---|
| 142 | const DOM_SID *sid,
|
|---|
| 143 | const uint8 **cached_nt_pass,
|
|---|
| 144 | const uint8 **cached_salt);
|
|---|
| 145 | NTSTATUS wcache_save_creds(struct winbindd_domain *domain,
|
|---|
| 146 | TALLOC_CTX *mem_ctx,
|
|---|
| 147 | const DOM_SID *sid,
|
|---|
| 148 | const uint8 nt_pass[NT_HASH_LEN]);
|
|---|
| 149 | void wcache_invalidate_samlogon(struct winbindd_domain *domain,
|
|---|
| 150 | NET_USER_INFO_3 *info3);
|
|---|
| 151 | void wcache_invalidate_cache(void);
|
|---|
| 152 | BOOL initialize_winbindd_cache(void);
|
|---|
| 153 | void cache_store_response(pid_t pid, struct winbindd_response *response);
|
|---|
| 154 | BOOL cache_retrieve_response(pid_t pid, struct winbindd_response * response);
|
|---|
| 155 | void cache_cleanup_response(pid_t pid);
|
|---|
| 156 | BOOL lookup_cached_sid(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
|
|---|
| 157 | const char **domain_name, const char **name,
|
|---|
| 158 | enum lsa_SidType *type);
|
|---|
| 159 | BOOL lookup_cached_name(TALLOC_CTX *mem_ctx,
|
|---|
| 160 | const char *domain_name,
|
|---|
| 161 | const char *name,
|
|---|
| 162 | DOM_SID *sid,
|
|---|
| 163 | enum lsa_SidType *type);
|
|---|
| 164 | void cache_name2sid(struct winbindd_domain *domain,
|
|---|
| 165 | const char *domain_name, const char *name,
|
|---|
| 166 | enum lsa_SidType type, const DOM_SID *sid);
|
|---|
| 167 | void wcache_flush_cache(void);
|
|---|
| 168 | NTSTATUS wcache_count_cached_creds(struct winbindd_domain *domain, int *count);
|
|---|
| 169 | NTSTATUS wcache_remove_oldest_cached_creds(struct winbindd_domain *domain, const DOM_SID *sid) ;
|
|---|
| 170 | BOOL set_global_winbindd_state_offline(void);
|
|---|
| 171 | void set_global_winbindd_state_online(void);
|
|---|
| 172 | BOOL get_global_winbindd_state_offline(void);
|
|---|
| 173 |
|
|---|
| 174 | /* The following definitions come from nsswitch/winbindd_ccache_access.c */
|
|---|
| 175 |
|
|---|
| 176 | void winbindd_ccache_ntlm_auth(struct winbindd_cli_state *state);
|
|---|
| 177 | enum winbindd_result winbindd_dual_ccache_ntlm_auth(struct winbindd_domain *domain,
|
|---|
| 178 | struct winbindd_cli_state *state);
|
|---|
| 179 |
|
|---|
| 180 | /* The following definitions come from nsswitch/winbindd_cm.c */
|
|---|
| 181 |
|
|---|
| 182 | void set_domain_offline(struct winbindd_domain *domain);
|
|---|
| 183 | void set_domain_online_request(struct winbindd_domain *domain);
|
|---|
| 184 | void winbind_add_failed_connection_entry(const struct winbindd_domain *domain,
|
|---|
| 185 | const char *server,
|
|---|
| 186 | NTSTATUS result);
|
|---|
| 187 | void invalidate_cm_connection(struct winbindd_cm_conn *conn);
|
|---|
| 188 | void close_conns_after_fork(void);
|
|---|
| 189 | NTSTATUS init_dc_connection(struct winbindd_domain *domain);
|
|---|
| 190 | NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
|
|---|
| 191 | struct rpc_pipe_client **cli, POLICY_HND *sam_handle);
|
|---|
| 192 | NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
|
|---|
| 193 | struct rpc_pipe_client **cli, POLICY_HND *lsa_policy);
|
|---|
| 194 | NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
|
|---|
| 195 | struct rpc_pipe_client **cli);
|
|---|
| 196 |
|
|---|
| 197 | /* The following definitions come from nsswitch/winbindd_cred_cache.c */
|
|---|
| 198 |
|
|---|
| 199 | BOOL ccache_entry_exists(const char *username);
|
|---|
| 200 | BOOL ccache_entry_identical(const char *username, uid_t uid, const char *ccname);
|
|---|
| 201 | NTSTATUS add_ccache_to_list(const char *princ_name,
|
|---|
| 202 | const char *ccname,
|
|---|
| 203 | const char *service,
|
|---|
| 204 | const char *username,
|
|---|
| 205 | const char *realm,
|
|---|
| 206 | uid_t uid,
|
|---|
| 207 | time_t create_time,
|
|---|
| 208 | time_t ticket_end,
|
|---|
| 209 | time_t renew_until,
|
|---|
| 210 | BOOL postponed_request);
|
|---|
| 211 | NTSTATUS remove_ccache(const char *username);
|
|---|
| 212 | struct WINBINDD_MEMORY_CREDS *find_memory_creds_by_name(const char *username);
|
|---|
| 213 | NTSTATUS winbindd_add_memory_creds(const char *username, uid_t uid, const char *pass);
|
|---|
| 214 | NTSTATUS winbindd_delete_memory_creds(const char *username);
|
|---|
| 215 | NTSTATUS winbindd_replace_memory_creds(const char *username, const char *pass);
|
|---|
| 216 |
|
|---|
| 217 | /* The following definitions come from nsswitch/winbindd_creds.c */
|
|---|
| 218 |
|
|---|
| 219 | NTSTATUS winbindd_get_creds(struct winbindd_domain *domain,
|
|---|
| 220 | TALLOC_CTX *mem_ctx,
|
|---|
| 221 | const DOM_SID *sid,
|
|---|
| 222 | NET_USER_INFO_3 **info3,
|
|---|
| 223 | const uint8 *cached_nt_pass[NT_HASH_LEN],
|
|---|
| 224 | const uint8 *cred_salt[NT_HASH_LEN]);
|
|---|
| 225 | NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
|
|---|
| 226 | TALLOC_CTX *mem_ctx,
|
|---|
| 227 | const char *user,
|
|---|
| 228 | const char *pass,
|
|---|
| 229 | NET_USER_INFO_3 *info3,
|
|---|
| 230 | const DOM_SID *user_sid);
|
|---|
| 231 | NTSTATUS winbindd_update_creds_by_info3(struct winbindd_domain *domain,
|
|---|
| 232 | TALLOC_CTX *mem_ctx,
|
|---|
| 233 | const char *user,
|
|---|
| 234 | const char *pass,
|
|---|
| 235 | NET_USER_INFO_3 *info3);
|
|---|
| 236 | NTSTATUS winbindd_update_creds_by_sid(struct winbindd_domain *domain,
|
|---|
| 237 | TALLOC_CTX *mem_ctx,
|
|---|
| 238 | const DOM_SID *sid,
|
|---|
| 239 | const char *pass);
|
|---|
| 240 | NTSTATUS winbindd_update_creds_by_name(struct winbindd_domain *domain,
|
|---|
| 241 | TALLOC_CTX *mem_ctx,
|
|---|
| 242 | const char *user,
|
|---|
| 243 | const char *pass);
|
|---|
| 244 |
|
|---|
| 245 | /* The following definitions come from nsswitch/winbindd_dual.c */
|
|---|
| 246 |
|
|---|
| 247 | void async_request(TALLOC_CTX *mem_ctx, struct winbindd_child *child,
|
|---|
| 248 | struct winbindd_request *request,
|
|---|
| 249 | struct winbindd_response *response,
|
|---|
| 250 | void (*continuation)(void *private_data, BOOL success),
|
|---|
| 251 | void *private_data);
|
|---|
| 252 | void async_domain_request(TALLOC_CTX *mem_ctx,
|
|---|
| 253 | struct winbindd_domain *domain,
|
|---|
| 254 | struct winbindd_request *request,
|
|---|
| 255 | struct winbindd_response *response,
|
|---|
| 256 | void (*continuation)(void *private_data_data, BOOL success),
|
|---|
| 257 | void *private_data_data);
|
|---|
| 258 | void sendto_child(struct winbindd_cli_state *state,
|
|---|
| 259 | struct winbindd_child *child);
|
|---|
| 260 | void sendto_domain(struct winbindd_cli_state *state,
|
|---|
| 261 | struct winbindd_domain *domain);
|
|---|
| 262 | void setup_domain_child(struct winbindd_domain *domain,
|
|---|
| 263 | struct winbindd_child *child,
|
|---|
| 264 | const char *explicit_logfile);
|
|---|
| 265 | void winbind_child_died(pid_t pid);
|
|---|
| 266 | void winbindd_flush_negative_conn_cache(struct winbindd_domain *domain);
|
|---|
| 267 | void winbind_msg_offline(int msg_type, struct process_id src,
|
|---|
| 268 | void *buf, size_t len, void *private_data);
|
|---|
| 269 | void winbind_msg_online(int msg_type, struct process_id src,
|
|---|
| 270 | void *buf, size_t len, void *private_data);
|
|---|
| 271 | void winbind_msg_onlinestatus(int msg_type, struct process_id src,
|
|---|
| 272 | void *buf, size_t len, void *private_data);
|
|---|
| 273 |
|
|---|
| 274 | /* The following definitions come from nsswitch/winbindd_group.c */
|
|---|
| 275 |
|
|---|
| 276 | void winbindd_getgrnam(struct winbindd_cli_state *state);
|
|---|
| 277 | void winbindd_getgrgid(struct winbindd_cli_state *state);
|
|---|
| 278 | void winbindd_setgrent(struct winbindd_cli_state *state);
|
|---|
| 279 | void winbindd_endgrent(struct winbindd_cli_state *state);
|
|---|
| 280 | void winbindd_getgrent(struct winbindd_cli_state *state);
|
|---|
| 281 | void winbindd_list_groups(struct winbindd_cli_state *state);
|
|---|
| 282 | void winbindd_getgroups(struct winbindd_cli_state *state);
|
|---|
| 283 | void winbindd_getusersids(struct winbindd_cli_state *state);
|
|---|
| 284 | void winbindd_getuserdomgroups(struct winbindd_cli_state *state);
|
|---|
| 285 | enum winbindd_result winbindd_dual_getuserdomgroups(struct winbindd_domain *domain,
|
|---|
| 286 | struct winbindd_cli_state *state);
|
|---|
| 287 |
|
|---|
| 288 | /* The following definitions come from nsswitch/winbindd_misc.c */
|
|---|
| 289 |
|
|---|
| 290 | void winbindd_check_machine_acct(struct winbindd_cli_state *state);
|
|---|
| 291 | enum winbindd_result winbindd_dual_check_machine_acct(struct winbindd_domain *domain,
|
|---|
| 292 | struct winbindd_cli_state *state);
|
|---|
| 293 | void winbindd_list_trusted_domains(struct winbindd_cli_state *state);
|
|---|
| 294 | enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *domain,
|
|---|
| 295 | struct winbindd_cli_state *state);
|
|---|
| 296 | void winbindd_getdcname(struct winbindd_cli_state *state);
|
|---|
| 297 | enum winbindd_result winbindd_dual_getdcname(struct winbindd_domain *domain,
|
|---|
| 298 | struct winbindd_cli_state *state);
|
|---|
| 299 | void winbindd_show_sequence(struct winbindd_cli_state *state);
|
|---|
| 300 | enum winbindd_result winbindd_dual_show_sequence(struct winbindd_domain *domain,
|
|---|
| 301 | struct winbindd_cli_state *state);
|
|---|
| 302 | void winbindd_domain_info(struct winbindd_cli_state *state);
|
|---|
| 303 | void winbindd_ping(struct winbindd_cli_state *state);
|
|---|
| 304 | void winbindd_info(struct winbindd_cli_state *state);
|
|---|
| 305 | void winbindd_interface_version(struct winbindd_cli_state *state);
|
|---|
| 306 | void winbindd_domain_name(struct winbindd_cli_state *state);
|
|---|
| 307 | void winbindd_netbios_name(struct winbindd_cli_state *state);
|
|---|
| 308 | void winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
|
|---|
| 309 |
|
|---|
| 310 | /* The following definitions come from nsswitch/winbindd_pam.c */
|
|---|
| 311 |
|
|---|
| 312 | struct winbindd_domain *find_auth_domain(struct winbindd_cli_state *state,
|
|---|
| 313 | const char *domain_name);
|
|---|
| 314 | void winbindd_pam_auth(struct winbindd_cli_state *state);
|
|---|
| 315 | NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
|
|---|
| 316 | struct winbindd_cli_state *state,
|
|---|
| 317 | NET_USER_INFO_3 **info3);
|
|---|
| 318 | NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
|
|---|
| 319 | struct winbindd_cli_state *state,
|
|---|
| 320 | NET_USER_INFO_3 **info3);
|
|---|
| 321 | NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
|
|---|
| 322 | struct winbindd_cli_state *state,
|
|---|
| 323 | NET_USER_INFO_3 **info3);
|
|---|
| 324 | enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
|
|---|
| 325 | struct winbindd_cli_state *state) ;
|
|---|
| 326 | void winbindd_pam_auth_crap(struct winbindd_cli_state *state);
|
|---|
| 327 | enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
|
|---|
| 328 | struct winbindd_cli_state *state) ;
|
|---|
| 329 | void winbindd_pam_chauthtok(struct winbindd_cli_state *state);
|
|---|
| 330 | enum winbindd_result winbindd_dual_pam_chauthtok(struct winbindd_domain *contact_domain,
|
|---|
| 331 | struct winbindd_cli_state *state);
|
|---|
| 332 | void winbindd_pam_logoff(struct winbindd_cli_state *state);
|
|---|
| 333 | enum winbindd_result winbindd_dual_pam_logoff(struct winbindd_domain *domain,
|
|---|
| 334 | struct winbindd_cli_state *state) ;
|
|---|
| 335 | void winbindd_pam_chng_pswd_auth_crap(struct winbindd_cli_state *state);
|
|---|
| 336 | enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domain *domainSt, struct winbindd_cli_state *state);
|
|---|
| 337 |
|
|---|
| 338 | /* The following definitions come from nsswitch/winbindd_passdb.c */
|
|---|
| 339 |
|
|---|
| 340 |
|
|---|
| 341 | /* The following definitions come from nsswitch/winbindd_reconnect.c */
|
|---|
| 342 |
|
|---|
| 343 |
|
|---|
| 344 | /* The following definitions come from nsswitch/winbindd_rpc.c */
|
|---|
| 345 |
|
|---|
| 346 | NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain,
|
|---|
| 347 | TALLOC_CTX *mem_ctx,
|
|---|
| 348 | const char *domain_name,
|
|---|
| 349 | const char *name,
|
|---|
| 350 | DOM_SID *sid,
|
|---|
| 351 | enum lsa_SidType *type);
|
|---|
| 352 | NTSTATUS msrpc_sid_to_name(struct winbindd_domain *domain,
|
|---|
| 353 | TALLOC_CTX *mem_ctx,
|
|---|
| 354 | const DOM_SID *sid,
|
|---|
| 355 | char **domain_name,
|
|---|
| 356 | char **name,
|
|---|
| 357 | enum lsa_SidType *type);
|
|---|
| 358 | NTSTATUS msrpc_rids_to_names(struct winbindd_domain *domain,
|
|---|
| 359 | TALLOC_CTX *mem_ctx,
|
|---|
| 360 | const DOM_SID *sid,
|
|---|
| 361 | uint32 *rids,
|
|---|
| 362 | size_t num_rids,
|
|---|
| 363 | char **domain_name,
|
|---|
| 364 | char ***names,
|
|---|
| 365 | enum lsa_SidType **types);
|
|---|
| 366 | NTSTATUS msrpc_lookup_useraliases(struct winbindd_domain *domain,
|
|---|
| 367 | TALLOC_CTX *mem_ctx,
|
|---|
| 368 | uint32 num_sids, const DOM_SID *sids,
|
|---|
| 369 | uint32 *num_aliases, uint32 **alias_rids);
|
|---|
| 370 | NTSTATUS msrpc_lockout_policy(struct winbindd_domain *domain,
|
|---|
| 371 | TALLOC_CTX *mem_ctx,
|
|---|
| 372 | SAM_UNK_INFO_12 *lockout_policy);
|
|---|
| 373 | NTSTATUS msrpc_password_policy(struct winbindd_domain *domain,
|
|---|
| 374 | TALLOC_CTX *mem_ctx,
|
|---|
| 375 | SAM_UNK_INFO_1 *password_policy);
|
|---|
| 376 |
|
|---|
| 377 | /* The following definitions come from nsswitch/winbindd_sid.c */
|
|---|
| 378 |
|
|---|
| 379 | void winbindd_lookupsid(struct winbindd_cli_state *state);
|
|---|
| 380 | void winbindd_lookupname(struct winbindd_cli_state *state);
|
|---|
| 381 | void winbindd_lookuprids(struct winbindd_cli_state *state);
|
|---|
| 382 | void init_idmap_child(void);
|
|---|
| 383 | struct winbindd_child *idmap_child(void);
|
|---|
| 384 | void winbindd_sid_to_uid(struct winbindd_cli_state *state);
|
|---|
| 385 | void winbindd_sid_to_gid(struct winbindd_cli_state *state);
|
|---|
| 386 | void winbindd_sids_to_unixids(struct winbindd_cli_state *state);
|
|---|
| 387 | void winbindd_set_mapping(struct winbindd_cli_state *state);
|
|---|
| 388 | void winbindd_set_hwm(struct winbindd_cli_state *state);
|
|---|
| 389 | void winbindd_uid_to_sid(struct winbindd_cli_state *state);
|
|---|
| 390 | void winbindd_gid_to_sid(struct winbindd_cli_state *state);
|
|---|
| 391 | void winbindd_allocate_uid(struct winbindd_cli_state *state);
|
|---|
| 392 | enum winbindd_result winbindd_dual_allocate_uid(struct winbindd_domain *domain,
|
|---|
| 393 | struct winbindd_cli_state *state);
|
|---|
| 394 | void winbindd_allocate_gid(struct winbindd_cli_state *state);
|
|---|
| 395 | enum winbindd_result winbindd_dual_allocate_gid(struct winbindd_domain *domain,
|
|---|
| 396 | struct winbindd_cli_state *state);
|
|---|
| 397 | void winbindd_dump_maps(struct winbindd_cli_state *state);
|
|---|
| 398 |
|
|---|
| 399 | /* The following definitions come from nsswitch/winbindd_user.c */
|
|---|
| 400 |
|
|---|
| 401 | enum winbindd_result winbindd_dual_userinfo(struct winbindd_domain *domain,
|
|---|
| 402 | struct winbindd_cli_state *state);
|
|---|
| 403 | void winbindd_getpwnam(struct winbindd_cli_state *state);
|
|---|
| 404 | void winbindd_getpwuid(struct winbindd_cli_state *state);
|
|---|
| 405 | void winbindd_setpwent(struct winbindd_cli_state *state);
|
|---|
| 406 | void winbindd_endpwent(struct winbindd_cli_state *state);
|
|---|
| 407 | void winbindd_getpwent(struct winbindd_cli_state *state);
|
|---|
| 408 | void winbindd_list_users(struct winbindd_cli_state *state);
|
|---|
| 409 |
|
|---|
| 410 | /* The following definitions come from nsswitch/winbindd_util.c */
|
|---|
| 411 |
|
|---|
| 412 | struct winbindd_domain *domain_list(void);
|
|---|
| 413 | void free_domain_list(void);
|
|---|
| 414 | void rescan_trusted_domains( void );
|
|---|
| 415 | enum winbindd_result init_child_connection(struct winbindd_domain *domain,
|
|---|
| 416 | void (*continuation)(void *private_data,
|
|---|
| 417 | BOOL success),
|
|---|
| 418 | void *private_data);
|
|---|
| 419 | enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domain,
|
|---|
| 420 | struct winbindd_cli_state *state);
|
|---|
| 421 | BOOL init_domain_list(void);
|
|---|
| 422 | struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name);
|
|---|
| 423 | struct winbindd_domain *find_domain_from_name(const char *domain_name);
|
|---|
| 424 | struct winbindd_domain *find_domain_from_sid_noinit(const DOM_SID *sid);
|
|---|
| 425 | struct winbindd_domain *find_domain_from_sid(const DOM_SID *sid);
|
|---|
| 426 | struct winbindd_domain *find_our_domain(void);
|
|---|
| 427 | struct winbindd_domain *find_root_domain(void);
|
|---|
| 428 | struct winbindd_domain *find_builtin_domain(void);
|
|---|
| 429 | struct winbindd_domain *find_lookup_domain_from_sid(const DOM_SID *sid);
|
|---|
| 430 | struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
|
|---|
| 431 | BOOL winbindd_lookup_sid_by_name(TALLOC_CTX *mem_ctx,
|
|---|
| 432 | struct winbindd_domain *domain,
|
|---|
| 433 | const char *domain_name,
|
|---|
| 434 | const char *name, DOM_SID *sid,
|
|---|
| 435 | enum lsa_SidType *type);
|
|---|
| 436 | BOOL winbindd_lookup_name_by_sid(TALLOC_CTX *mem_ctx,
|
|---|
| 437 | DOM_SID *sid,
|
|---|
| 438 | char **dom_name,
|
|---|
| 439 | char **name,
|
|---|
| 440 | enum lsa_SidType *type);
|
|---|
| 441 | void free_getent_state(struct getent_state *state);
|
|---|
| 442 | BOOL parse_domain_user(const char *domuser, fstring domain, fstring user);
|
|---|
| 443 | BOOL parse_domain_user_talloc(TALLOC_CTX *mem_ctx, const char *domuser,
|
|---|
| 444 | char **domain, char **user);
|
|---|
| 445 | BOOL canonicalize_username(fstring username_inout, fstring domain, fstring user);
|
|---|
| 446 | void fill_domain_username(fstring name, const char *domain, const char *user, BOOL can_assume);
|
|---|
| 447 | char *get_winbind_priv_pipe_dir(void) ;
|
|---|
| 448 | int open_winbindd_socket(void);
|
|---|
| 449 | int open_winbindd_priv_socket(void);
|
|---|
| 450 | void close_winbindd_socket(void);
|
|---|
| 451 | struct winbindd_cli_state *winbindd_client_list(void);
|
|---|
| 452 | void winbindd_add_client(struct winbindd_cli_state *cli);
|
|---|
| 453 | void winbindd_remove_client(struct winbindd_cli_state *cli);
|
|---|
| 454 | void winbindd_kill_all_clients(void);
|
|---|
| 455 | int winbindd_num_clients(void);
|
|---|
| 456 | NTSTATUS lookup_usergroups_cached(struct winbindd_domain *domain,
|
|---|
| 457 | TALLOC_CTX *mem_ctx,
|
|---|
| 458 | const DOM_SID *user_sid,
|
|---|
| 459 | uint32 *p_num_groups, DOM_SID **user_sids);
|
|---|
| 460 | void ws_name_replace( char *name, char replace );
|
|---|
| 461 | void ws_name_return( char *name, char replace );
|
|---|
| 462 |
|
|---|
| 463 | /* The following definitions come from nsswitch/winbindd_wins.c */
|
|---|
| 464 |
|
|---|
| 465 | void winbindd_wins_byip(struct winbindd_cli_state *state);
|
|---|
| 466 | void winbindd_wins_byname(struct winbindd_cli_state *state);
|
|---|
| 467 |
|
|---|
| 468 | #endif /* _WINBINDD_PROTO_H_ */
|
|---|