• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/samba-3.5.8/source3/auth/

Lines Matching defs:auth_ntlmssp_state

33 	AUTH_NTLMSSP_STATE *auth_ntlmssp_state =
35 auth_ntlmssp_state->auth_context->get_ntlm_challenge(
36 auth_ntlmssp_state->auth_context, chal);
46 AUTH_NTLMSSP_STATE *auth_ntlmssp_state =
48 struct auth_context *auth_context = auth_ntlmssp_state->auth_context;
59 AUTH_NTLMSSP_STATE *auth_ntlmssp_state =
61 struct auth_context *auth_context = auth_ntlmssp_state->auth_context;
84 AUTH_NTLMSSP_STATE *auth_ntlmssp_state =
93 set_remote_machine_name(auth_ntlmssp_state->ntlmssp_state->workstation, True);
97 sub_set_smb_name(auth_ntlmssp_state->ntlmssp_state->user);
102 auth_ntlmssp_state->ntlmssp_state->user,
103 auth_ntlmssp_state->ntlmssp_state->domain,
104 auth_ntlmssp_state->ntlmssp_state->workstation,
105 auth_ntlmssp_state->ntlmssp_state->lm_resp.data ? &auth_ntlmssp_state->ntlmssp_state->lm_resp : NULL,
106 auth_ntlmssp_state->ntlmssp_state->nt_resp.data ? &auth_ntlmssp_state->ntlmssp_state->nt_resp : NULL,
116 nt_status = auth_ntlmssp_state->auth_context->check_ntlm_password(auth_ntlmssp_state->auth_context,
117 user_info, &auth_ntlmssp_state->server_info);
127 auth_ntlmssp_state->server_info->nss_token |= username_was_mapped;
129 if (auth_ntlmssp_state->server_info->ptok == NULL) {
130 nt_status = create_local_token(auth_ntlmssp_state->server_info);
138 if (auth_ntlmssp_state->server_info->user_session_key.length) {
140 (unsigned int)auth_ntlmssp_state->server_info->user_session_key.length));
141 *user_session_key = data_blob_talloc(auth_ntlmssp_state->mem_ctx,
142 auth_ntlmssp_state->server_info->user_session_key.data,
143 auth_ntlmssp_state->server_info->user_session_key.length);
145 if (auth_ntlmssp_state->server_info->lm_session_key.length) {
147 (unsigned int)auth_ntlmssp_state->server_info->lm_session_key.length));
148 *lm_session_key = data_blob_talloc(auth_ntlmssp_state->mem_ctx,
149 auth_ntlmssp_state->server_info->lm_session_key.data,
150 auth_ntlmssp_state->server_info->lm_session_key.length);
155 NTSTATUS auth_ntlmssp_start(AUTH_NTLMSSP_STATE **auth_ntlmssp_state)
162 *auth_ntlmssp_state = TALLOC_ZERO_P(mem_ctx, AUTH_NTLMSSP_STATE);
163 if (!*auth_ntlmssp_state) {
169 ZERO_STRUCTP(*auth_ntlmssp_state);
171 (*auth_ntlmssp_state)->mem_ctx = mem_ctx;
173 if (!NT_STATUS_IS_OK(nt_status = ntlmssp_server_start(&(*auth_ntlmssp_state)->ntlmssp_state))) {
177 if (!NT_STATUS_IS_OK(nt_status = make_auth_context_subsystem(&(*auth_ntlmssp_state)->auth_context))) {
181 (*auth_ntlmssp_state)->ntlmssp_state->auth_context = (*auth_ntlmssp_state);
182 (*auth_ntlmssp_state)->ntlmssp_state->get_challenge = auth_ntlmssp_get_challenge;
183 (*auth_ntlmssp_state)->ntlmssp_state->may_set_challenge = auth_ntlmssp_may_set_challenge;
184 (*auth_ntlmssp_state)->ntlmssp_state->set_challenge = auth_ntlmssp_set_challenge;
185 (*auth_ntlmssp_state)->ntlmssp_state->check_password = auth_ntlmssp_check_password;
186 (*auth_ntlmssp_state)->ntlmssp_state->server_role = (enum server_types)lp_server_role();
191 void auth_ntlmssp_end(AUTH_NTLMSSP_STATE **auth_ntlmssp_state)
195 if (*auth_ntlmssp_state == NULL) {
199 mem_ctx = (*auth_ntlmssp_state)->mem_ctx;
200 if ((*auth_ntlmssp_state)->ntlmssp_state) {
201 ntlmssp_end(&(*auth_ntlmssp_state)->ntlmssp_state);
203 if ((*auth_ntlmssp_state)->auth_context) {
204 ((*auth_ntlmssp_state)->auth_context->free)(&(*auth_ntlmssp_state)->auth_context);
206 if ((*auth_ntlmssp_state)->server_info) {
207 TALLOC_FREE((*auth_ntlmssp_state)->server_info);
210 *auth_ntlmssp_state = NULL;
213 NTSTATUS auth_ntlmssp_update(AUTH_NTLMSSP_STATE *auth_ntlmssp_state,
216 return ntlmssp_update(auth_ntlmssp_state->ntlmssp_state, request, reply);