From 2e69e894566d32001120d76d7ba58cdacb56d279 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 21 Feb 2011 10:25:52 +0100 Subject: s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_info These variables, of type struct auth_serversupplied_info were poorly named when added into 2001, and in good consistant practice, this has extended all over the codebase in the years since. The structure is also not ideal for it's current purpose. Originally intended to convey the results of the authentication modules, it really describes all the essential attributes of a session. This rename will reduce the volume of a future patch to replaced these with a struct auth_session_info, with auth_serversupplied_info confined to the lower levels of the auth subsystem, and then eliminated. (The new structure will be the output of create_local_token(), and the change in struct definition will ensure that this is always run, populating local groups and privileges). Andrew Bartlett Signed-off-by: Stefan Metzmacher --- source3/lib/afs.c | 10 +++++----- source3/lib/substitute.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/afs.c b/source3/lib/afs.c index 117f6fa0b7..d73e9df4c0 100644 --- a/source3/lib/afs.c +++ b/source3/lib/afs.c @@ -231,16 +231,16 @@ bool afs_login(connection_struct *conn) } afs_username = talloc_sub_advanced(ctx, - SNUM(conn), conn->server_info->unix_name, - conn->connectpath, conn->server_info->utok.gid, - conn->server_info->sanitized_username, - pdb_get_domain(conn->server_info->sam_account), + SNUM(conn), conn->session_info->unix_name, + conn->connectpath, conn->session_info->utok.gid, + conn->session_info->sanitized_username, + pdb_get_domain(conn->session_info->sam_account), afs_username); if (!afs_username) { return false; } - user_sid = &conn->server_info->security_token->user_sids[0]; + user_sid = &conn->session_info->security_token->user_sids[0]; afs_username = talloc_string_sub(talloc_tos(), afs_username, "%s", diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c index 399ef1daa3..629c4b63d7 100644 --- a/source3/lib/substitute.c +++ b/source3/lib/substitute.c @@ -917,9 +917,9 @@ char *standard_sub_conn(TALLOC_CTX *ctx, connection_struct *conn, const char *st { return talloc_sub_advanced(ctx, lp_servicename(SNUM(conn)), - conn->server_info->unix_name, + conn->session_info->unix_name, conn->connectpath, - conn->server_info->utok.gid, + conn->session_info->utok.gid, get_smb_user_name(), "", str); -- cgit