diff options
Diffstat (limited to 'auth')
-rw-r--r-- | auth/common_auth.h | 1 | ||||
-rw-r--r-- | auth/ntlmssp/gensec_ntlmssp_server.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/auth/common_auth.h b/auth/common_auth.h index 8cbfc54794b..95b36cd334f 100644 --- a/auth/common_auth.h +++ b/auth/common_auth.h @@ -39,6 +39,7 @@ enum auth_password_state { #define AUTH_SESSION_INFO_AUTHENTICATED 0x02 /* Add the user to the 'authenticated users' group */ #define AUTH_SESSION_INFO_SIMPLE_PRIVILEGES 0x04 /* Use a trivial map between users and privilages, rather than a DB */ #define AUTH_SESSION_INFO_UNIX_TOKEN 0x08 /* The returned token must have the unix_token and unix_info elements provided */ +#define AUTH_SESSION_INFO_NTLM 0x10 /* The returned token must have authenticated-with-NTLM flag set */ struct auth_usersupplied_info { diff --git a/auth/ntlmssp/gensec_ntlmssp_server.c b/auth/ntlmssp/gensec_ntlmssp_server.c index da0cd50bac2..561c7cff5bd 100644 --- a/auth/ntlmssp/gensec_ntlmssp_server.c +++ b/auth/ntlmssp/gensec_ntlmssp_server.c @@ -62,6 +62,7 @@ NTSTATUS gensec_ntlmssp_session_info(struct gensec_security *gensec_security, } session_info_flags |= AUTH_SESSION_INFO_DEFAULT_GROUPS; + session_info_flags |= AUTH_SESSION_INFO_NTLM; if (gensec_security->auth_context && gensec_security->auth_context->generate_session_info) { nt_status = gensec_security->auth_context->generate_session_info(gensec_security->auth_context, mem_ctx, |