mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3/winbindd: use parse_domain_user_fstr instead of parse_domain_user
in winbindd_getgroups_send replace parse_domain_user_fstr with parse_domain_user Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
d4341d4884
commit
f734b1b2fc
@ -24,9 +24,9 @@
|
||||
|
||||
struct winbindd_getgroups_state {
|
||||
struct tevent_context *ev;
|
||||
fstring namespace;
|
||||
fstring domname;
|
||||
fstring username;
|
||||
char *namespace;
|
||||
char *domname;
|
||||
char *username;
|
||||
struct dom_sid sid;
|
||||
enum lsa_SidType type;
|
||||
uint32_t num_sids;
|
||||
@ -76,10 +76,10 @@ struct tevent_req *winbindd_getgroups_send(TALLOC_CTX *mem_ctx,
|
||||
domuser = mapped_user;
|
||||
}
|
||||
|
||||
ok = parse_domain_user_fstr(domuser,
|
||||
state->namespace,
|
||||
state->domname,
|
||||
state->username);
|
||||
ok = parse_domain_user(state, domuser,
|
||||
&state->namespace,
|
||||
&state->domname,
|
||||
&state->username);
|
||||
if (!ok) {
|
||||
D_WARNING("Could not parse domain user: %s\n", domuser);
|
||||
tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER);
|
||||
|
Loading…
Reference in New Issue
Block a user