mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +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;
|
char *ticket_str = NULL;
|
||||||
const struct dom_sid *user_sid;
|
const struct dom_sid *user_sid;
|
||||||
TALLOC_CTX *ctx = talloc_tos();
|
TALLOC_CTX *ctx = talloc_tos();
|
||||||
|
struct dom_sid_buf buf;
|
||||||
|
|
||||||
struct ClearToken ct;
|
struct ClearToken ct;
|
||||||
|
|
||||||
@ -253,7 +254,7 @@ bool afs_login(connection_struct *conn)
|
|||||||
afs_username = talloc_string_sub(talloc_tos(),
|
afs_username = talloc_string_sub(talloc_tos(),
|
||||||
afs_username,
|
afs_username,
|
||||||
"%s",
|
"%s",
|
||||||
sid_string_tos(user_sid));
|
dom_sid_str_buf(user_sid, &buf));
|
||||||
if (!afs_username) {
|
if (!afs_username) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user