diff options
author | Tim Potter <tpot@samba.org> | 2002-04-15 05:02:22 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-04-15 05:02:22 +0000 |
commit | d9cfe0f3ebdcf053f79ee0bbba59d4dbe2831145 (patch) | |
tree | bdffbae91c0eef28bad9e1b3b092bc766d9f3150 /source3/nsswitch | |
parent | 59a04032c86a9304156946c6f71bb4b1375ab81b (diff) | |
download | samba-d9cfe0f3ebdcf053f79ee0bbba59d4dbe2831145.tar.gz samba-d9cfe0f3ebdcf053f79ee0bbba59d4dbe2831145.tar.bz2 samba-d9cfe0f3ebdcf053f79ee0bbba59d4dbe2831145.zip |
Merge of lsa lookup names/sids patch from HEAD.
(This used to be commit e57c162897d4a7e66bb87091d179ac138f751c64)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_rpc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index 5af42ee041..d0d97cae49 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -187,7 +187,6 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain, NTSTATUS status; DOM_SID *sids = NULL; uint32 *types = NULL; - int num_sids; const char *full_name; if (!(mem_ctx = talloc_init_named("name_to_sid[rpc] for [%s]\\[%s]", domain->name, name))) { @@ -209,7 +208,7 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain, } status = cli_lsa_lookup_names(hnd->cli, mem_ctx, &hnd->pol, 1, - &full_name, &sids, &types, &num_sids); + &full_name, &sids, &types); /* Return rid and type if lookup successful */ if (NT_STATUS_IS_OK(status)) { @@ -234,15 +233,13 @@ static NTSTATUS sid_to_name(struct winbindd_domain *domain, char **domains; char **names; uint32 *types; - int num_names; NTSTATUS status; if (!(hnd = cm_get_lsa_handle(domain->name))) return NT_STATUS_UNSUCCESSFUL; status = cli_lsa_lookup_sids(hnd->cli, mem_ctx, &hnd->pol, - 1, sid, &domains, &names, &types, - &num_names); + 1, sid, &domains, &names, &types); if (NT_STATUS_IS_OK(status)) { *type = types[0]; |