summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-10-26 08:25:14 +0200
committerJeremy Allison <jra@samba.org>2018-11-09 22:42:28 +0100
commite8743444f797b3b1db3b53d1054473b1e4fba162 (patch)
tree6629f9c544fc1a5fa250cb006dd97ebfca0764d9 /source3/winbindd
parenta7c877847f855be5ee6673e541a181b818013abf (diff)
downloadsamba-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.c10
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) {