mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
r5331: Support SIDs as %s replacements in the afs username map parameter.
Add 'log nt token command' parameter. If set, %s is replaced with the user sid, and %t takes all the group sids. Volker
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
da23577f16
commit
e7dc9fde45
@ -214,12 +214,16 @@ BOOL afs_login(connection_struct *conn)
|
||||
char *cell;
|
||||
BOOL result;
|
||||
char *ticket_str;
|
||||
DOM_SID user_sid;
|
||||
|
||||
struct ClearToken ct;
|
||||
|
||||
pstrcpy(afs_username, lp_afs_username_map());
|
||||
standard_sub_conn(conn, afs_username, sizeof(afs_username));
|
||||
|
||||
if (NT_STATUS_IS_OK(uid_to_sid(&user_sid, conn->uid)))
|
||||
pstring_sub(afs_username, "%s", sid_string_static(&user_sid));
|
||||
|
||||
/* The pts command always generates completely lower-case user
|
||||
* names. */
|
||||
strlower_m(afs_username);
|
||||
|
Reference in New Issue
Block a user