From d3e5a0bea4595891014fafe75a34f155e789cef3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 11 Jan 2012 22:25:38 +0100 Subject: s3:smbd: explicitly ask for GENSEC_FEATURE_UNIX_TOKEN metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Thu Jan 12 11:22:53 CET 2012 on sn-devel-104 --- source3/smbd/sesssetup.c | 3 +++ source3/smbd/smb2_sesssetup.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 08a3c2c238..ca380a836e 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -634,6 +634,7 @@ static void reply_spnego_negotiate(struct smb_request *req, } gensec_want_feature(*gensec_security, GENSEC_FEATURE_SESSION_KEY); + gensec_want_feature(*gensec_security, GENSEC_FEATURE_UNIX_TOKEN); status = gensec_start_mech_by_oid(*gensec_security, GENSEC_OID_NTLMSSP); if (!NT_STATUS_IS_OK(status)) { @@ -746,6 +747,7 @@ static void reply_spnego_auth(struct smb_request *req, } gensec_want_feature(*gensec_security, GENSEC_FEATURE_SESSION_KEY); + gensec_want_feature(*gensec_security, GENSEC_FEATURE_UNIX_TOKEN); status = gensec_start_mech_by_oid(*gensec_security, GENSEC_OID_NTLMSSP); if (!NT_STATUS_IS_OK(status)) { @@ -1155,6 +1157,7 @@ static void reply_sesssetup_and_X_spnego(struct smb_request *req) } gensec_want_feature(vuser->gensec_security, GENSEC_FEATURE_SESSION_KEY); + gensec_want_feature(vuser->gensec_security, GENSEC_FEATURE_UNIX_TOKEN); if (sconn->use_gensec_hook) { status = gensec_start_mech_by_oid(vuser->gensec_security, GENSEC_OID_SPNEGO); diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index 017319ea7f..0cd24c9b7e 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -381,6 +381,7 @@ static NTSTATUS smbd_smb2_spnego_negotiate(struct smbd_smb2_session *session, } gensec_want_feature(session->gensec_security, GENSEC_FEATURE_SESSION_KEY); + gensec_want_feature(session->gensec_security, GENSEC_FEATURE_UNIX_TOKEN); status = gensec_start_mech_by_oid(session->gensec_security, GENSEC_OID_NTLMSSP); if (!NT_STATUS_IS_OK(status)) { @@ -569,6 +570,7 @@ static NTSTATUS smbd_smb2_spnego_auth(struct smbd_smb2_session *session, } gensec_want_feature(session->gensec_security, GENSEC_FEATURE_SESSION_KEY); + gensec_want_feature(session->gensec_security, GENSEC_FEATURE_UNIX_TOKEN); status = gensec_start_mech_by_oid(session->gensec_security, GENSEC_OID_NTLMSSP); if (!NT_STATUS_IS_OK(status)) { @@ -643,6 +645,7 @@ static NTSTATUS smbd_smb2_raw_ntlmssp_auth(struct smbd_smb2_session *session, } gensec_want_feature(session->gensec_security, GENSEC_FEATURE_SESSION_KEY); + gensec_want_feature(session->gensec_security, GENSEC_FEATURE_UNIX_TOKEN); if (session->sconn->use_gensec_hook) { status = gensec_start_mech_by_oid(session->gensec_security, GENSEC_OID_SPNEGO); -- cgit