Home
last modified time | relevance | path

Searched refs:auth_rep (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/pam_modules/authtok_store/
H A Dauthtok_store.c104 const struct pam_repository *auth_rep;
189 res = pam_get_item(pamh, PAM_REPOSITORY, (const void **)&auth_rep);
196 if (auth_rep == NULL) {
203 pwu_rep->type = auth_rep->type;
204 pwu_rep->scope = auth_rep->scope;
205 pwu_rep->scope_len = auth_rep->scope_len;
249 if (auth_rep != NULL) {
252 service, auth_rep->type, user);
/illumos-gate/usr/src/lib/pam_modules/passwd_auth/
H A Dpasswd_auth.c89 const pam_repository_t *auth_rep = NULL; in pam_sm_authenticate() local
129 res = pam_get_item(pamh, PAM_REPOSITORY, (const void **)&auth_rep); in pam_sm_authenticate()
136 if (auth_rep == NULL) { in pam_sm_authenticate()
141 pwu_rep->type = auth_rep->type; in pam_sm_authenticate()
142 pwu_rep->scope = auth_rep->scope; in pam_sm_authenticate()
143 pwu_rep->scope_len = auth_rep->scope_len; in pam_sm_authenticate()
/illumos-gate/usr/src/lib/pam_modules/unix_auth/
H A Dunix_auth.c152 const struct pam_repository *auth_rep; in pam_sm_authenticate() local
194 result = pam_get_item(pamh, PAM_REPOSITORY, (const void **)&auth_rep); in pam_sm_authenticate()
195 if (result == PAM_SUCCESS && auth_rep != NULL) { in pam_sm_authenticate()
198 pwu_rep->type = auth_rep->type; in pam_sm_authenticate()
199 pwu_rep->scope = auth_rep->scope; in pam_sm_authenticate()
200 pwu_rep->scope_len = auth_rep->scope_len; in pam_sm_authenticate()
/illumos-gate/usr/src/lib/pam_modules/authtok_get/
H A Dauthtok_get.c232 const pam_repository_t *auth_rep = NULL; in pam_sm_authenticate() local
270 res = pam_get_item(pamh, PAM_REPOSITORY, (const void **)&auth_rep); in pam_sm_authenticate()
277 if (auth_rep == NULL) { in pam_sm_authenticate()
282 pwu_rep->type = auth_rep->type; in pam_sm_authenticate()
283 pwu_rep->scope = auth_rep->scope; in pam_sm_authenticate()
284 pwu_rep->scope_len = auth_rep->scope_len; in pam_sm_authenticate()
/illumos-gate/usr/src/lib/pam_modules/dhkeys/
H A Ddhkeys.c406 const struct pam_repository *auth_rep = NULL; in remove_key() local
441 (void) pam_get_item(pamh, PAM_REPOSITORY, (const void **)&auth_rep); in remove_key()
442 if (auth_rep != NULL) { in remove_key()
445 pwu_rep->type = auth_rep->type; in remove_key()
446 pwu_rep->scope = auth_rep->scope; in remove_key()
447 pwu_rep->scope_len = auth_rep->scope_len; in remove_key()
/illumos-gate/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c292 const pwu_repository_t *auth_rep = NULL; in pam_sm_acct_mgmt() local
330 (const void **)&auth_rep)) != PAM_SUCCESS) { in pam_sm_acct_mgmt()
334 if (auth_rep == NULL) { in pam_sm_acct_mgmt()
341 pwu_rep->type = auth_rep->type; in pam_sm_acct_mgmt()
342 pwu_rep->scope = auth_rep->scope; in pam_sm_acct_mgmt()
343 pwu_rep->scope_len = auth_rep->scope_len; in pam_sm_acct_mgmt()
/illumos-gate/usr/src/cmd/passwd/
H A Dpasswd.c189 static pam_repository_t auth_rep; variable
246 auth_rep.type = NULL; in main()
247 auth_rep.scope = NULL; in main()
303 auth_rep.type = repository.type; in main()
304 auth_rep.scope = repository.scope; in main()
305 auth_rep.scope_len = repository.scope_len; in main()
307 if (auth_rep.type != NULL) { in main()
308 if (pam_set_item(pamh, PAM_REPOSITORY, (void *)&auth_rep) in main()
/illumos-gate/usr/src/lib/libpam/
H A Dpam_framework.c467 pam_repository_t *auth_rep; in pam_set_item() local
469 auth_rep = (pam_repository_t *)pip->pi_addr; in pam_set_item()
470 if (auth_rep->type != NULL) in pam_set_item()
471 free(auth_rep->type); in pam_set_item()
472 if (auth_rep->scope != NULL) in pam_set_item()
473 free(auth_rep->scope); in pam_set_item()
474 free(auth_rep); in pam_set_item()
2510 pam_repository_t *auth_rep; in clean_up() local
2519 auth_rep = pamh->ps_item[PAM_REPOSITORY].pi_addr; in clean_up()
2520 if (auth_rep != NULL) { in clean_up()
[all …]