summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_async.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-27 17:11:24 +0200
committerVolker Lendecke <vl@samba.org>2009-08-29 19:42:26 +0200
commit50d9fb42fc771e07326f3f47103676f2ef88107e (patch)
tree67239f96f1154386cf5ca874bdec731fa48ac58b /source3/winbindd/winbindd_async.c
parent425239caeeb22cb0a221a38b70f2f2dc8b64bdcc (diff)
downloadsamba-50d9fb42fc771e07326f3f47103676f2ef88107e.tar.gz
samba-50d9fb42fc771e07326f3f47103676f2ef88107e.tar.bz2
samba-50d9fb42fc771e07326f3f47103676f2ef88107e.zip
w3:winbind: Convert WINBINDD_LOOKUPRIDS to the new API
Diffstat (limited to 'source3/winbindd/winbindd_async.c')
-rw-r--r--source3/winbindd/winbindd_async.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/source3/winbindd/winbindd_async.c b/source3/winbindd/winbindd_async.c
index d16a1f8288..1e63ed1fec 100644
--- a/source3/winbindd/winbindd_async.c
+++ b/source3/winbindd/winbindd_async.c
@@ -694,64 +694,6 @@ static bool parse_ridlist(TALLOC_CTX *mem_ctx, char *ridstr,
return True;
}
-enum winbindd_result winbindd_dual_lookuprids(struct winbindd_domain *domain,
- struct winbindd_cli_state *state)
-{
- uint32 *rids = NULL;
- size_t i, buflen, num_rids = 0;
- ssize_t len;
- DOM_SID domain_sid;
- char *domain_name;
- char **names;
- enum lsa_SidType *types;
- NTSTATUS status;
- char *result;
-
- DEBUG(10, ("Looking up RIDs for domain %s (%s)\n",
- state->request->domain_name,
- state->request->data.sid));
-
- if (!parse_ridlist(state->mem_ctx, state->request->extra_data.data,
- &rids, &num_rids)) {
- DEBUG(5, ("Could not parse ridlist\n"));
- return WINBINDD_ERROR;
- }
-
- if (!string_to_sid(&domain_sid, state->request->data.sid)) {
- DEBUG(5, ("Could not parse domain sid %s\n",
- state->request->data.sid));
- return WINBINDD_ERROR;
- }
-
- status = domain->methods->rids_to_names(domain, state->mem_ctx,
- &domain_sid, rids, num_rids,
- &domain_name,
- &names, &types);
-
- if (!NT_STATUS_IS_OK(status) &&
- !NT_STATUS_EQUAL(status, STATUS_SOME_UNMAPPED)) {
- return WINBINDD_ERROR;
- }
-
- len = 0;
- buflen = 0;
- result = NULL;
-
- for (i=0; i<num_rids; i++) {
- sprintf_append(state->mem_ctx, &result, &len, &buflen,
- "%d %s\n", types[i], names[i]);
- }
-
- fstrcpy(state->response->data.domain_name, domain_name);
-
- if (result != NULL) {
- state->response->extra_data.data = result;
- state->response->length += len+1;
- }
-
- return WINBINDD_OK;
-}
-
static void getsidaliases_recv(TALLOC_CTX *mem_ctx, bool success,
struct winbindd_response *response,
void *c, void *private_data)