mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
lib: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3028401737
commit
49f7dc01f2
@ -228,6 +228,7 @@ bool afs_login(connection_struct *conn)
|
||||
char *ticket_str = NULL;
|
||||
const struct dom_sid *user_sid;
|
||||
TALLOC_CTX *ctx = talloc_tos();
|
||||
struct dom_sid_buf buf;
|
||||
|
||||
struct ClearToken ct;
|
||||
|
||||
@ -253,7 +254,7 @@ bool afs_login(connection_struct *conn)
|
||||
afs_username = talloc_string_sub(talloc_tos(),
|
||||
afs_username,
|
||||
"%s",
|
||||
sid_string_tos(user_sid));
|
||||
dom_sid_str_buf(user_sid, &buf));
|
||||
if (!afs_username) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user