diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-15 15:55:31 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-07-20 09:17:11 +1000 |
commit | 92895379934b660affa70cd406e40719d429ae2a (patch) | |
tree | 6a6185b2e0476a7045535332fad6201caeda2424 /source3/lib/substitute.c | |
parent | a39187f0f5e6f99ce8a38cba997e4ad15353e09e (diff) | |
download | samba-92895379934b660affa70cd406e40719d429ae2a.tar.gz samba-92895379934b660affa70cd406e40719d429ae2a.tar.xz samba-92895379934b660affa70cd406e40719d429ae2a.zip |
s3-auth Use struct auth_user_info_unix for unix_name and sanitized_username
This is closer to the layout of struct auth_session_info in auth.idl
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/lib/substitute.c')
-rw-r--r-- | source3/lib/substitute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c index bf3cd5d51ee..eae6d15f7c0 100644 --- a/source3/lib/substitute.c +++ b/source3/lib/substitute.c @@ -815,11 +815,12 @@ void standard_sub_advanced(const char *servicename, const char *user, char *standard_sub_conn(TALLOC_CTX *ctx, connection_struct *conn, const char *str) { - /* Make clear that we require the optional unix_token in the source3 code */ + /* Make clear that we require the optional unix_token and unix_info in the source3 code */ SMB_ASSERT(conn->session_info->unix_token); + SMB_ASSERT(conn->session_info->unix_info); return talloc_sub_advanced(ctx, lp_servicename(SNUM(conn)), - conn->session_info->unix_name, + conn->session_info->unix_info->unix_name, conn->connectpath, conn->session_info->unix_token->gid, get_smb_user_name(), |