diff options
author | Volker Lendecke <vl@samba.org> | 2018-10-26 08:25:14 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-11-09 22:42:28 +0100 |
commit | e8743444f797b3b1db3b53d1054473b1e4fba162 (patch) | |
tree | 6629f9c544fc1a5fa250cb006dd97ebfca0764d9 /source3/winbindd | |
parent | a7c877847f855be5ee6673e541a181b818013abf (diff) | |
download | samba-e8743444f797b3b1db3b53d1054473b1e4fba162.tar.gz |
winbind: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_pam.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index bed5a940282..a02926decb2 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -251,13 +251,15 @@ static NTSTATUS append_afs_token(TALLOC_CTX *mem_ctx, { struct dom_sid user_sid; - fstring sidstr; + struct dom_sid_buf sidstr; sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid); - sid_to_fstring(sidstr, &user_sid); - afsname = talloc_string_sub(mem_ctx, afsname, - "%s", sidstr); + afsname = talloc_string_sub( + mem_ctx, + afsname, + "%s", + dom_sid_str_buf(&user_sid, &sidstr)); } if (afsname == NULL) { |