summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-04-23 11:10:11 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 17:19:10 +0200
commit626db5c3b5854a895b79ab186a36d1b5cbb769b5 (patch)
tree6f7b3b89b9d7a928757e667527f5188a0610d53c /source4/auth
parent08a7bb4abc6e59bc109ac38c164ad3f0b63b2439 (diff)
downloadsamba-626db5c3b5854a895b79ab186a36d1b5cbb769b5.tar.gz
samba-626db5c3b5854a895b79ab186a36d1b5cbb769b5.tar.bz2
samba-626db5c3b5854a895b79ab186a36d1b5cbb769b5.zip
Add old functionality back which was removed in commit 589a42e2.
Andrew, please review! Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/session.c17
-rw-r--r--source4/auth/session.h6
2 files changed, 21 insertions, 2 deletions
diff --git a/source4/auth/session.c b/source4/auth/session.c
index 29ba13e536..75af3056a8 100644
--- a/source4/auth/session.c
+++ b/source4/auth/session.c
@@ -46,6 +46,19 @@ _PUBLIC_ NTSTATUS auth_generate_session_info(TALLOC_CTX *mem_ctx,
uint32_t session_info_flags,
struct auth_session_info **_session_info)
{
+ return auth_generate_session_info2(mem_ctx,
+ auth_context->event_ctx,
+ auth_context->lp_ctx,
+ server_info,
+ _session_info);
+}
+
+_PUBLIC_ NTSTATUS auth_generate_session_info2(TALLOC_CTX *mem_ctx,
+ struct tevent_context *event_ctx,
+ struct loadparm_context *lp_ctx,
+ struct auth_serversupplied_info *server_info,
+ struct auth_session_info **_session_info)
+{
struct auth_session_info *session_info;
NTSTATUS nt_status;
unsigned int i, num_groupSIDs = 0;
@@ -193,8 +206,8 @@ _PUBLIC_ NTSTATUS auth_generate_session_info(TALLOC_CTX *mem_ctx,
}
nt_status = security_token_create(session_info,
- auth_context->event_ctx,
- auth_context->lp_ctx,
+ event_ctx,
+ lp_ctx,
server_info->account_sid,
server_info->primary_group_sid,
num_groupSIDs,
diff --git a/source4/auth/session.h b/source4/auth/session.h
index 8e22cc0576..3e422d9790 100644
--- a/source4/auth/session.h
+++ b/source4/auth/session.h
@@ -53,6 +53,12 @@ NTSTATUS auth_generate_session_info(TALLOC_CTX *mem_ctx,
uint32_t session_info_flags,
struct auth_session_info **_session_info);
+NTSTATUS auth_generate_session_info2(TALLOC_CTX *mem_ctx,
+ struct tevent_context *event_ctx,
+ struct loadparm_context *lp_ctx,
+ struct auth_serversupplied_info *server_info,
+ struct auth_session_info **_session_info);
+
NTSTATUS auth_anonymous_session_info(TALLOC_CTX *parent_ctx,
struct loadparm_context *lp_ctx,
struct auth_session_info **_session_info);