diff options
Diffstat (limited to 'source4/utils')
-rw-r--r-- | source4/utils/ntlm_auth.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c index 448559e350..c99dcb1b7a 100644 --- a/source4/utils/ntlm_auth.c +++ b/source4/utils/ntlm_auth.c @@ -431,10 +431,11 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode, /* get the string onto the context */ grouplist = talloc_strdup(session_info, ""); - for (i=0; i< session_info->nt_user_token->num_sids; i++) { - grouplist = talloc_asprintf_append(grouplist, "%s,", - dom_sid_string(session_info, - session_info->nt_user_token->user_sids[i])); + for (i=0; i<session_info->security_token->num_sids; i++) { + struct security_token *token = session_info->security_token; + const char *sidstr = dom_sid_string(session_info, + token->sids[i]); + grouplist = talloc_asprintf_append(grouplist, "%s,", sidstr); } mux_printf(mux_id, "GL %s\n", grouplist); |