diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-16 12:46:55 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-16 13:28:14 +0200 |
commit | 2c23e7dc5a5d305406a156402ec805ed05e5a11f (patch) | |
tree | 0dd7b831ce6b0004e9b24dc19aa032bc73a0abfe /source3/winbindd | |
parent | 459233e6309afc93499d6b8cfd46e93e4e7d5cf3 (diff) | |
download | samba-2c23e7dc5a5d305406a156402ec805ed05e5a11f.tar.gz |
s3:winbind: The get[gr|pw]end functions need access to the client state
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/wb_ping.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd.c | 3 | ||||
-rw-r--r-- | source3/winbindd/winbindd_getgrgid.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_getgrnam.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_getgroups.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_getpwnam.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_getpwsid.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_getpwuid.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_getsidaliases.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_getuserdomgroups.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_gid_to_sid.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_lookupname.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_lookupsid.c | 3 | ||||
-rw-r--r-- | source3/winbindd/winbindd_proto.h | 18 | ||||
-rw-r--r-- | source3/winbindd/winbindd_show_sequence.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_sid_to_gid.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_sid_to_uid.c | 1 | ||||
-rw-r--r-- | source3/winbindd/winbindd_uid_to_sid.c | 1 |
18 files changed, 36 insertions, 3 deletions
diff --git a/source3/winbindd/wb_ping.c b/source3/winbindd/wb_ping.c index 12013984376..bfba3c168bb 100644 --- a/source3/winbindd/wb_ping.c +++ b/source3/winbindd/wb_ping.c @@ -25,6 +25,7 @@ struct wb_ping_state { }; struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req; diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 554cb0a30a6..1a76f87463e 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -499,6 +499,7 @@ struct winbindd_async_dispatch_table { const char *cmd_name; struct tevent_req *(*send_req)(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS (*recv_req)(struct tevent_req *req, struct winbindd_response *presp); @@ -570,7 +571,7 @@ static void process_request(struct winbindd_cli_state *state) atable->cmd_name)); req = atable->send_req(state->mem_ctx, winbind_event_context(), - state->request); + state, state->request); if (req == NULL) { DEBUG(0, ("process_request: atable->send failed for " "%s\n", atable->cmd_name)); diff --git a/source3/winbindd/winbindd_getgrgid.c b/source3/winbindd/winbindd_getgrgid.c index 82204ad0955..4feebdb4f6e 100644 --- a/source3/winbindd/winbindd_getgrgid.c +++ b/source3/winbindd/winbindd_getgrgid.c @@ -34,6 +34,7 @@ static void winbindd_getgrgid_done(struct tevent_req *subreq); struct tevent_req *winbindd_getgrgid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_getgrnam.c b/source3/winbindd/winbindd_getgrnam.c index 85e60a27578..d55796513fa 100644 --- a/source3/winbindd/winbindd_getgrnam.c +++ b/source3/winbindd/winbindd_getgrnam.c @@ -35,6 +35,7 @@ static void winbindd_getgrnam_done(struct tevent_req *subreq); struct tevent_req *winbindd_getgrnam_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_getgroups.c b/source3/winbindd/winbindd_getgroups.c index 9e6465696e8..3bdf762c458 100644 --- a/source3/winbindd/winbindd_getgroups.c +++ b/source3/winbindd/winbindd_getgroups.c @@ -39,6 +39,7 @@ static void winbindd_getgroups_sid2gid_done(struct tevent_req *subreq); struct tevent_req *winbindd_getgroups_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_getpwnam.c b/source3/winbindd/winbindd_getpwnam.c index 80b618c4aa8..77e827e2415 100644 --- a/source3/winbindd/winbindd_getpwnam.c +++ b/source3/winbindd/winbindd_getpwnam.c @@ -34,6 +34,7 @@ static void winbindd_getpwnam_done(struct tevent_req *subreq); struct tevent_req *winbindd_getpwnam_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_getpwsid.c b/source3/winbindd/winbindd_getpwsid.c index 135cbf6f61f..055de17f91a 100644 --- a/source3/winbindd/winbindd_getpwsid.c +++ b/source3/winbindd/winbindd_getpwsid.c @@ -29,6 +29,7 @@ static void winbindd_getpwsid_done(struct tevent_req *subreq); struct tevent_req *winbindd_getpwsid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_getpwuid.c b/source3/winbindd/winbindd_getpwuid.c index 0c667cfccce..d47c0852143 100644 --- a/source3/winbindd/winbindd_getpwuid.c +++ b/source3/winbindd/winbindd_getpwuid.c @@ -31,6 +31,7 @@ static void winbindd_getpwuid_done(struct tevent_req *subreq); struct tevent_req *winbindd_getpwuid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_getsidaliases.c b/source3/winbindd/winbindd_getsidaliases.c index 788c88f5506..6755fa149f0 100644 --- a/source3/winbindd/winbindd_getsidaliases.c +++ b/source3/winbindd/winbindd_getsidaliases.c @@ -30,6 +30,7 @@ static void winbindd_getsidaliases_done(struct tevent_req *subreq); struct tevent_req *winbindd_getsidaliases_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_getuserdomgroups.c b/source3/winbindd/winbindd_getuserdomgroups.c index e67768307ff..0bba0248624 100644 --- a/source3/winbindd/winbindd_getuserdomgroups.c +++ b/source3/winbindd/winbindd_getuserdomgroups.c @@ -30,6 +30,7 @@ static void winbindd_getuserdomgroups_done(struct tevent_req *subreq); struct tevent_req *winbindd_getuserdomgroups_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_gid_to_sid.c b/source3/winbindd/winbindd_gid_to_sid.c index b2cc3c2613f..f8494d2df23 100644 --- a/source3/winbindd/winbindd_gid_to_sid.c +++ b/source3/winbindd/winbindd_gid_to_sid.c @@ -30,6 +30,7 @@ static void winbindd_gid_to_sid_done(struct tevent_req *subreq); struct tevent_req *winbindd_gid_to_sid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_lookupname.c b/source3/winbindd/winbindd_lookupname.c index 0918076717c..51358d5d9bc 100644 --- a/source3/winbindd/winbindd_lookupname.c +++ b/source3/winbindd/winbindd_lookupname.c @@ -30,6 +30,7 @@ static void winbindd_lookupname_done(struct tevent_req *subreq); struct tevent_req *winbindd_lookupname_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_lookupsid.c b/source3/winbindd/winbindd_lookupsid.c index 7647f1d6821..1281835bd3f 100644 --- a/source3/winbindd/winbindd_lookupsid.c +++ b/source3/winbindd/winbindd_lookupsid.c @@ -32,7 +32,8 @@ static void winbindd_lookupsid_done(struct tevent_req *subreq); struct tevent_req *winbindd_lookupsid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, - struct winbindd_request *request) + struct winbindd_cli_state *cli, + struct winbindd_request *request) { struct tevent_req *req, *subreq; struct winbindd_lookupsid_state *state; diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index d462d8a6e1e..5ef61ded42d 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -632,6 +632,7 @@ void winbindd_wins_byip(struct winbindd_cli_state *state); void winbindd_wins_byname(struct winbindd_cli_state *state); struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS wb_ping_recv(struct tevent_req *req, struct winbindd_response *resp); @@ -652,7 +653,8 @@ NTSTATUS wb_lookupsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, const char **name); struct tevent_req *winbindd_lookupsid_send(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, + struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_lookupsid_recv(struct tevent_req *req, struct winbindd_response *response); @@ -666,6 +668,7 @@ NTSTATUS wb_lookupname_recv(struct tevent_req *req, struct dom_sid *sid, struct tevent_req *winbindd_lookupname_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_lookupname_recv(struct tevent_req *req, struct winbindd_response *response); @@ -677,6 +680,7 @@ NTSTATUS wb_sid2uid_recv(struct tevent_req *req, uid_t *uid); struct tevent_req *winbindd_sid_to_uid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_sid_to_uid_recv(struct tevent_req *req, struct winbindd_response *response); @@ -688,6 +692,7 @@ NTSTATUS wb_sid2gid_recv(struct tevent_req *req, gid_t *gid); struct tevent_req *winbindd_sid_to_gid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_sid_to_gid_recv(struct tevent_req *req, struct winbindd_response *response); @@ -699,6 +704,7 @@ NTSTATUS wb_uid2sid_recv(struct tevent_req *req, struct dom_sid *sid); struct tevent_req *winbindd_uid_to_sid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_uid_to_sid_recv(struct tevent_req *req, struct winbindd_response *response); @@ -710,6 +716,7 @@ NTSTATUS wb_gid2sid_recv(struct tevent_req *req, struct dom_sid *sid); struct tevent_req *winbindd_gid_to_sid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_gid_to_sid_recv(struct tevent_req *req, struct winbindd_response *response); @@ -728,18 +735,21 @@ NTSTATUS wb_getpwsid_recv(struct tevent_req *req); struct tevent_req *winbindd_getpwsid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_getpwsid_recv(struct tevent_req *req, struct winbindd_response *response); struct tevent_req *winbindd_getpwnam_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_getpwnam_recv(struct tevent_req *req, struct winbindd_response *response); struct tevent_req *winbindd_getpwuid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_getpwuid_recv(struct tevent_req *req, struct winbindd_response *response); @@ -752,6 +762,7 @@ NTSTATUS wb_lookupuseraliases_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, uint32_t *num_aliases, uint32_t **aliases); struct tevent_req *winbindd_getsidaliases_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_getsidaliases_recv(struct tevent_req *req, struct winbindd_response *response); @@ -764,6 +775,7 @@ NTSTATUS wb_lookupusergroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, struct tevent_req *winbindd_getuserdomgroups_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_getuserdomgroups_recv(struct tevent_req *req, struct winbindd_response *response); @@ -774,6 +786,7 @@ NTSTATUS wb_gettoken_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, int *num_sids, struct dom_sid **sids); struct tevent_req *winbindd_getgroups_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_getgroups_recv(struct tevent_req *req, struct winbindd_response *response); @@ -791,6 +804,7 @@ NTSTATUS wb_seqnums_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, struct tevent_req *winbindd_show_sequence_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_show_sequence_recv(struct tevent_req *req, struct winbindd_response *response); @@ -813,12 +827,14 @@ NTSTATUS wb_getgrsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, struct tevent_req *winbindd_getgrgid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_getgrgid_recv(struct tevent_req *req, struct winbindd_response *response); struct tevent_req *winbindd_getgrnam_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request); NTSTATUS winbindd_getgrnam_recv(struct tevent_req *req, struct winbindd_response *response); diff --git a/source3/winbindd/winbindd_show_sequence.c b/source3/winbindd/winbindd_show_sequence.c index b40996ce333..447706685e7 100644 --- a/source3/winbindd/winbindd_show_sequence.c +++ b/source3/winbindd/winbindd_show_sequence.c @@ -37,6 +37,7 @@ static void winbindd_show_sequence_done_all(struct tevent_req *subreq); struct tevent_req *winbindd_show_sequence_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_sid_to_gid.c b/source3/winbindd/winbindd_sid_to_gid.c index 323b44d7f9c..1e712cfbee0 100644 --- a/source3/winbindd/winbindd_sid_to_gid.c +++ b/source3/winbindd/winbindd_sid_to_gid.c @@ -29,6 +29,7 @@ static void winbindd_sid_to_gid_done(struct tevent_req *subreq); struct tevent_req *winbindd_sid_to_gid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_sid_to_uid.c b/source3/winbindd/winbindd_sid_to_uid.c index a6ff6cbaf4f..43cb43255b2 100644 --- a/source3/winbindd/winbindd_sid_to_uid.c +++ b/source3/winbindd/winbindd_sid_to_uid.c @@ -29,6 +29,7 @@ static void winbindd_sid_to_uid_done(struct tevent_req *subreq); struct tevent_req *winbindd_sid_to_uid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; diff --git a/source3/winbindd/winbindd_uid_to_sid.c b/source3/winbindd/winbindd_uid_to_sid.c index 151fffd296c..467a1af96a3 100644 --- a/source3/winbindd/winbindd_uid_to_sid.c +++ b/source3/winbindd/winbindd_uid_to_sid.c @@ -30,6 +30,7 @@ static void winbindd_uid_to_sid_done(struct tevent_req *subreq); struct tevent_req *winbindd_uid_to_sid_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct winbindd_cli_state *cli, struct winbindd_request *request) { struct tevent_req *req, *subreq; |