Home
last modified time | relevance | path

Searched refs:pamh (Results 1 – 25 of 56) sorted by relevance

123

/illumos-gate/usr/src/lib/libpam/
H A Dpam_framework.c147 if (pamh->pam_conf_name[pamh->include_depth] == NULL) in pam_trace_cname()
149 return (pamh->pam_conf_name[pamh->include_depth]); in pam_trace_cname()
1044 pamh->pam_conf_modulep[pamh->include_depth] = in run_stack()
1083 pam_trace_cname(pamh), (void *)pamh, in run_stack()
1090 pamh->include_depth, pam_trace_cname(pamh), in run_stack()
1105 pamh->include_depth, pam_trace_cname(pamh), in run_stack()
1116 pamh->include_depth, pam_trace_cname(pamh), in run_stack()
1593 pamh->include_depth, pam_trace_cname(pamh), (void *)pamh, in load_modules()
1600 pamh->include_depth, pam_trace_cname(pamh), (void *)pamh, in load_modules()
1606 pamh->include_depth, pam_trace_cname(pamh), in load_modules()
[all …]
H A Dpam_appl.h176 pam_handle_t *pamh, /* PAM handle */
236 pam_handle_t *pamh, /* pam handle */
248 pam_handle_t *pamh,
263 pam_handle_t *pamh,
273 pam_handle_t *pamh,
282 pam_handle_t *pamh,
289 pam_handle_t *pamh,
304 pam_handle_t *pamh,
321 pam_handle_t *pamh,
329 pam_handle_t *pamh,
[all …]
H A Dpam_modules.h38 pam_handle_t *pamh,
45 pam_handle_t *pamh,
52 pam_handle_t *pamh,
59 pam_handle_t *pamh,
66 pam_handle_t *pamh,
80 pam_handle_t *pamh,
92 pam_handle_t *pamh, /* PAM handle */
95 void (*cleanup)(pam_handle_t *pamh, void *data, int pam_end_status)
104 const pam_handle_t *pamh,
H A Dpam_impl.h144 __pam_get_authtok(pam_handle_t *pamh, int source, int type, char *prompt,
148 __pam_display_msg(pam_handle_t *pamh, int msg_style, int num_msg,
174 void (*cleanup)(pam_handle_t *pamh, void *data, int pam_status);
227 int (*pam_sm_authenticate)(pam_handle_t *pamh, int flags, int argc,
229 int (*pam_sm_setcred)(pam_handle_t *pamh, int flags, int argc,
234 int (*pam_sm_chauthtok)(pam_handle_t *pamh, int flags, int argc,
239 int (*pam_sm_open_session)(pam_handle_t *pamh, int flags, int argc,
241 int (*pam_sm_close_session)(pam_handle_t *pamh, int flags, int argc,
246 int (*pam_sm_acct_mgmt)(pam_handle_t *pamh, int flags, int argc,
/illumos-gate/usr/src/lib/pam_modules/authtok_get/
H A Dauthtok_get.c43 error(pam_handle_t *pamh, char *fmt, ...) in error() argument
55 read_authtok(pam_handle_t *pamh, int debug) in read_authtok() argument
76 res = pam_set_item(pamh, PAM_OLDAUTHTOK, in read_authtok()
79 res = pam_set_item(pamh, PAM_AUTHTOK, NULL); in read_authtok()
110 (void) pam_set_item(pamh, PAM_AUTHTOK, NULL); in read_authtok()
132 (void) pam_set_item(pamh, PAM_AUTHTOK, NULL); in read_authtok()
147 verify_authtok(pam_handle_t *pamh, int debug) in verify_authtok() argument
177 error(pamh, dgettext(TEXT_DOMAIN, in verify_authtok()
207 res = read_authtok(pamh, debug); in pam_sm_chauthtok()
209 res = verify_authtok(pamh, debug); in pam_sm_chauthtok()
[all …]
/illumos-gate/usr/src/lib/pam_modules/allow/
H A Dallow.c47 debug(pam_handle_t *pamh, int flags, int argc, const char **argv, char *mod) in debug() argument
55 (void) pam_get_item(pamh, PAM_SERVICE, (void **)&service); in debug()
56 (void) pam_get_item(pamh, PAM_USER, (void **)&user); in debug()
66 debug(pamh, flags, argc, argv, "pam_sm_authenticate"); in pam_sm_authenticate()
71 pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) in pam_sm_setcred() argument
73 debug(pamh, flags, argc, argv, "pam_sm_setcred"); in pam_sm_setcred()
78 pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc, const char **argv) in pam_sm_acct_mgmt() argument
80 debug(pamh, flags, argc, argv, "pam_sm_acct_mgmt"); in pam_sm_acct_mgmt()
87 debug(pamh, flags, argc, argv, "pam_sm_open_session"); in pam_sm_open_session()
94 debug(pamh, flags, argc, argv, "pam_sm_close_session"); in pam_sm_close_session()
[all …]
/illumos-gate/usr/src/lib/pam_modules/deny/
H A Ddeny.c47 debug(pam_handle_t *pamh, int flags, int argc, const char **argv, char *mod) in debug() argument
55 (void) pam_get_item(pamh, PAM_SERVICE, (void **)&service); in debug()
56 (void) pam_get_item(pamh, PAM_USER, (void **)&user); in debug()
66 debug(pamh, flags, argc, argv, "pam_sm_authenticate"); in pam_sm_authenticate()
71 pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) in pam_sm_setcred() argument
73 debug(pamh, flags, argc, argv, "pam_sm_setcred"); in pam_sm_setcred()
78 pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc, const char **argv) in pam_sm_acct_mgmt() argument
80 debug(pamh, flags, argc, argv, "pam_sm_acct_mgmt"); in pam_sm_acct_mgmt()
87 debug(pamh, flags, argc, argv, "pam_sm_open_session"); in pam_sm_open_session()
94 debug(pamh, flags, argc, argv, "pam_sm_close_session"); in pam_sm_close_session()
[all …]
/illumos-gate/usr/src/lib/pam_modules/authtok_store/
H A Dauthtok_store.c59 info(int nowarn, pam_handle_t *pamh, char *fmt, ...) in info() argument
78 authtok_is_aged(pam_handle_t *pamh) in authtok_is_aged() argument
82 if (pam_get_data(pamh, UNIX_AUTHTOK_DATA, in authtok_is_aged()
214 info(nowarn, pamh, dgettext(TEXT_DOMAIN,
221 error(nowarn, pamh, dgettext(TEXT_DOMAIN,
234 error(nowarn, pamh, dgettext(TEXT_DOMAIN,
242 error(nowarn, pamh, dgettext(TEXT_DOMAIN,
246 error(nowarn, pamh, dgettext(TEXT_DOMAIN,
252 error(nowarn, pamh, dgettext(TEXT_DOMAIN,
269 info(nowarn, pamh, dgettext(TEXT_DOMAIN,
[all …]
/illumos-gate/usr/src/lib/pam_modules/ldap/
H A Dldap_acct_mgmt.c34 pam_handle_t *pamh, in ldap_cleanup() argument
48 pam_handle_t *pamh, in warn_user_passwd_will_expire() argument
96 (void) __pam_display_msg(pamh, PAM_TEXT_INFO, 1, in display_acct_unlock_time()
133 warn_user_passwd_expired(pam_handle_t *pamh, int grace) in warn_user_passwd_expired() argument
156 display_passwd_reset_msg(pam_handle_t *pamh) in display_passwd_reset_msg() argument
245 pam_handle_t *pamh, in pam_sm_acct_mgmt() argument
314 display_acct_unlock_time(pamh, seconds); in pam_sm_acct_mgmt()
321 warn_user_passwd_expired(pamh, grace); in pam_sm_acct_mgmt()
330 display_passwd_reset_msg(pamh); in pam_sm_acct_mgmt()
339 warn_user_passwd_will_expire(pamh, in pam_sm_acct_mgmt()
[all …]
/illumos-gate/usr/src/lib/pam_modules/smb/
H A Dsmb_passwd.c45 error(boolean_t nowarn, pam_handle_t *pamh, char *fmt, ...) in error() argument
55 (void) __pam_display_msg(pamh, PAM_ERROR_MSG, 1, &message, in error()
62 info(boolean_t nowarn, pam_handle_t *pamh, char *fmt, ...) in info() argument
72 (void) __pam_display_msg(pamh, PAM_TEXT_INFO, 1, &message, in info()
111 (void) pam_get_item(pamh, PAM_USER, (void **)&user); in pam_sm_chauthtok()
119 (void) pam_get_item(pamh, PAM_AUTHTOK, (void **)&newpw); in pam_sm_chauthtok()
160 info(nowarn, pamh, dgettext(TEXT_DOMAIN, in pam_sm_chauthtok()
174 error(nowarn, pamh, dgettext(TEXT_DOMAIN, in pam_sm_chauthtok()
180 error(nowarn, pamh, dgettext(TEXT_DOMAIN, in pam_sm_chauthtok()
187 error(nowarn, pamh, dgettext(TEXT_DOMAIN, in pam_sm_chauthtok()
[all …]
/illumos-gate/usr/src/lib/pam_modules/dhkeys/
H A Ddhkeys.c74 msg(pam_handle_t *pamh, char *fmt, ...) in msg() argument
97 pam_handle_t *pamh, /* in */ in get_and_set_seckey() argument
137 if (pamh && !(flags & PAM_SILENT)) { in get_and_set_seckey()
144 (void) __pam_display_msg(pamh, PAM_ERROR_MSG, 1, in get_and_set_seckey()
217 (void) pam_get_item(pamh, PAM_USER, (void **)&user); in establish_key()
399 remove_key(pam_handle_t *pamh, int flags, int debug) in remove_key() argument
433 (void) __pam_display_msg(pamh, PAM_ERROR_MSG, 3, in remove_key()
479 (void) msg(pamh, dgettext(TEXT_DOMAIN, in remove_key()
526 result = remove_key(pamh, flags, debug); in pam_sm_setcred()
532 (void) msg(pamh, dgettext(TEXT_DOMAIN, in pam_sm_setcred()
[all …]
/illumos-gate/usr/src/lib/pam_modules/krb5/
H A Dkrb5_password.c59 pam_handle_t *pamh, in set_ccname() argument
80 if ((result = pam_putenv(pamh, kmd->env)) in set_ccname()
107 pam_handle_t *pamh, in get_set_creds() argument
134 display_msg(pamh, PAM_TEXT_INFO, in get_set_creds()
141 set_ccname(pamh, kmd, login_result, debug); in get_set_creds()
150 pam_handle_t *pamh, in pam_sm_chauthtok() argument
309 get_set_creds(pamh, kmd, user, newpass, debug); in pam_sm_chauthtok()
421 pam_handle_t *pamh, in krb5_changepw() argument
500 display_msgs(pamh, PAM_ERROR_MSG, 2, msgs); in krb5_changepw()
518 display_msgs(pam_handle_t *pamh, in display_msgs() argument
[all …]
H A Dkrb5_acct_mgmt.c166 pam_handle_t *pamh, in exp_warn() argument
185 if (!pamh || !user || !password) { in exp_warn()
266 (void) __pam_display_msg(pamh, PAM_TEXT_INFO, 1, in exp_warn()
303 pam_handle_t *pamh, in pam_sm_acct_mgmt() argument
337 (void) pam_get_item(pamh, PAM_REPOSITORY, (void **)&rep_data); in pam_sm_acct_mgmt()
356 (void) pam_get_item(pamh, PAM_USER, (void **) &user); in pam_sm_acct_mgmt()
364 err = pam_get_data(pamh, KRB5_AUTOMIGRATE_DATA, in pam_sm_acct_mgmt()
378 (void) pam_sm_authenticate(pamh, flags, argc, in pam_sm_acct_mgmt()
451 (void) __pam_display_msg(pamh, PAM_TEXT_INFO, in pam_sm_acct_mgmt()
461 (void) exp_warn(pamh, user, kmd, debug); in pam_sm_acct_mgmt()
[all …]
H A Dkrb5_authenticate.c89 pam_handle_t *pamh, in pam_sm_authenticate() argument
159 err = pam_set_data(pamh, KRB5_DATA, NULL, NULL); in pam_sm_authenticate()
161 krb5_cleanup(pamh, kmd, err); in pam_sm_authenticate()
182 (void) pam_get_item(pamh, PAM_USER, (void**) &user); in pam_sm_authenticate()
190 if ((err = pam_get_user(pamh, &user, NULL)) != in pam_sm_authenticate()
195 "%s", pam_strerror(pamh, err)); in pam_sm_authenticate()
346 if ((result = pam_putenv(pamh, kmd->env)) in pam_sm_authenticate()
384 pam_handle_t *pamh = (pam_handle_t *)data; in pam_krb5_prompter() local
462 (void) __pam_display_msg(pamh, PAM_ERROR_MSG, in pam_krb5_prompter()
501 pam_handle_t *pamh, in attempt_krb5_auth() argument
[all …]
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dauthtok_check.c531 error(pamh, flags, dgettext(TEXT_DOMAIN, in check_composition()
543 error(pamh, flags, errmsg, pwdef->minalpha, in check_composition()
590 error(pamh, flags, dgettext(TEXT_DOMAIN, in check_composition()
634 error(pamh, flags, dgettext(TEXT_DOMAIN, in check_diff()
667 error(pamh, flags, dgettext(TEXT_DOMAIN, in check_dictionary()
680 error(pamh, flags, dgettext(TEXT_DOMAIN, in check_dictionary()
685 error(pamh, flags, dgettext(TEXT_DOMAIN, in check_dictionary()
690 error(pamh, flags, dgettext(TEXT_DOMAIN, in check_dictionary()
821 error(pamh, flags, dgettext(TEXT_DOMAIN, in pam_sm_chauthtok()
832 error(pamh, flags, dgettext(TEXT_DOMAIN, in pam_sm_chauthtok()
[all …]
/illumos-gate/usr/src/lib/pam_modules/passwd_auth/
H A Dpasswd_auth.c46 error(int nowarn, pam_handle_t *pamh, char *fmt, ...) in error() argument
54 (void) __pam_display_msg(pamh, PAM_ERROR_MSG, 1, messages, in error()
102 if ((res = pam_get_user(pamh, &user, NULL)) != PAM_SUCCESS) { in pam_sm_authenticate()
105 "get user failed: %s", pam_strerror(pamh, res)); in pam_sm_authenticate()
115 res = pam_get_item(pamh, PAM_AUTHTOK, (void **)&password); in pam_sm_authenticate()
122 res = pam_get_item(pamh, PAM_SERVICE, (void **)&service); in pam_sm_authenticate()
126 res = pam_get_item(pamh, PAM_REPOSITORY, (void **)&auth_rep); in pam_sm_authenticate()
153 error(nowarn, pamh, dgettext(TEXT_DOMAIN, "%s: " in pam_sm_authenticate()
281 error(nowarn, pamh, dgettext(TEXT_DOMAIN, in pam_sm_authenticate()
294 error(nowarn, pamh, dgettext(TEXT_DOMAIN, in pam_sm_authenticate()
[all …]
/illumos-gate/usr/src/lib/pam_modules/unix_auth/
H A Dunix_auth.c56 error(pam_handle_t *pamh, char *fmt, ...) in error() argument
63 (void) __pam_display_msg(pamh, PAM_ERROR_MSG, 1, messages, NULL); in error()
108 display_warning(pam_handle_t *pamh, int failures, char *homedir) in display_warning() argument
118 error(pamh, "Warning: 1 failed login attempt since last " in display_warning()
121 error(pamh, "Warning: %d failed login attempts since last " in display_warning()
124 error(pamh, "Warning: at least %d failed login attempts since " in display_warning()
174 if (pam_get_item(pamh, PAM_USER, (void **)&user) != PAM_SUCCESS) { in pam_sm_authenticate()
185 if (pam_get_item(pamh, PAM_AUTHTOK, (void **)&passwd) != PAM_SUCCESS) { in pam_sm_authenticate()
191 result = pam_get_item(pamh, PAM_REPOSITORY, (void **)&auth_rep); in pam_sm_authenticate()
312 display_warning(pamh, old_failed_count, homedir); in pam_sm_authenticate()
[all …]
/illumos-gate/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c75 pam_handle_t *pamh, in unix_cleanup() argument
183 pam_handle_t *pamh, in perform_passwd_aging_check() argument
231 (void) __pam_display_msg(pamh, PAM_ERROR_MSG, 2, messages, in perform_passwd_aging_check()
244 pam_handle_t *pamh, in warn_user_passwd_will_expire() argument
272 (void) __pam_display_msg(pamh, PAM_TEXT_INFO, 1, messages, in warn_user_passwd_will_expire()
319 if ((error = pam_get_item(pamh, PAM_USER, (void **)&user)) in pam_sm_acct_mgmt()
454 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); in pam_sm_acct_mgmt()
473 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); in pam_sm_acct_mgmt()
519 warn_user_passwd_will_expire(pamh, shpwd); in pam_sm_acct_mgmt()
537 pam_strerror(pamh, error)); in pam_sm_acct_mgmt()
[all …]
/illumos-gate/usr/src/lib/pam_modules/dial_auth/
H A Ddial_auth.c55 pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv) in pam_sm_authenticate() argument
77 if ((retcode = pam_get_user(pamh, &user, NULL)) in pam_sm_authenticate()
79 (retcode = pam_get_item(pamh, PAM_TTY, (void **)&ttyn)) in pam_sm_authenticate()
92 (void) pam_get_item(pamh, PAM_SERVICE, (void **)&service); in pam_sm_authenticate()
95 pam_strerror(pamh, PAM_SERVICE_ERR)); in pam_sm_authenticate()
117 pam_strerror(pamh, PAM_SYSTEM_ERR)); in pam_sm_authenticate()
153 res = __pam_get_authtok(pamh, PAM_PROMPT, PAM_AUTHTOK, in pam_sm_authenticate()
177 pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) in pam_sm_setcred() argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rexecd.c93 static pam_handle_t *pamh; /* authentication handle */ variable
294 if (pam_start("rexec", user, &conv, &pamh) != PAM_SUCCESS) { in doit()
313 pam_end(pamh, status); in doit()
333 pam_end(pamh, status); in doit()
343 pam_end(pamh, PAM_ABORT); in doit()
352 pam_end(pamh, PAM_SUCCESS); in doit()
361 pam_end(pamh, PAM_ABORT); in doit()
371 pam_end(pamh, PAM_ABORT); in doit()
424 pam_end(pamh, PAM_ABORT); in doit()
444 if ((pam_env = pam_getenvlist(pamh)) != 0) { in doit()
[all …]
/illumos-gate/usr/src/lib/pam_modules/roles/
H A Droles.c50 pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc, const char **argv) in pam_sm_acct_mgmt() argument
66 (void) pam_get_item(pamh, PAM_USER, (void **)&username); in pam_sm_acct_mgmt()
67 (void) pam_get_item(pamh, PAM_AUSER, (void **)&auser); in pam_sm_acct_mgmt()
68 (void) pam_get_item(pamh, PAM_RHOST, (void **)&rhost); in pam_sm_acct_mgmt()
86 (void) pam_get_item(pamh, PAM_RUSER, (void **)&ruser); in pam_sm_acct_mgmt()
87 (void) pam_get_item(pamh, PAM_SERVICE, (void **)&service); in pam_sm_acct_mgmt()
176 (void) __pam_display_msg(pamh, PAM_ERROR_MSG, 1, messages, in pam_sm_acct_mgmt()
/illumos-gate/usr/src/cmd/bnu/
H A Din.uucpd.c59 pam_handle_t *pamh; variable
229 if (pam_authenticate(pamh, PAM_SILENT) != PAM_SUCCESS) {
233 pam_end(pamh, PAM_ABORT);
252 pam_end(pamh, PAM_ABORT);
260 pam_end(pamh, PAM_USER_UNKNOWN);
270 pam_end(pamh, PAM_ABORT);
277 pam_end(pamh, PAM_PERM_DENIED);
286 pam_end(pamh, PAM_PERM_DENIED);
292 pam_end(pamh, PAM_CRED_INSUFFICIENT);
299 pam_end(pamh, PAM_CRED_ERR);
[all …]
/illumos-gate/usr/src/lib/pam_modules/rhosts_auth/
H A Drhosts_auth.c49 pam_handle_t *pamh, in pam_sm_authenticate() argument
69 if (pam_get_item(pamh, PAM_USER, (void **) &lusername) != PAM_SUCCESS) in pam_sm_authenticate()
71 if (pam_get_item(pamh, PAM_RHOST, (void **) &host) != PAM_SUCCESS) in pam_sm_authenticate()
73 if (pam_get_item(pamh, PAM_RUSER, (void **)&rusername) != PAM_SUCCESS) in pam_sm_authenticate()
109 pam_handle_t *pamh, in pam_sm_setcred() argument
/illumos-gate/usr/src/lib/pam_modules/krb5_migrate/
H A Dkrb5_migrate_authenticate.c40 static void krb5_migrate_cleanup(pam_handle_t *pamh, void *data,
48 int pam_sm_authenticate(pam_handle_t *pamh, int flags, in pam_sm_authenticate() argument
99 err = pam_get_item(pamh, PAM_USER, (void**)&user); in pam_sm_authenticate()
127 err = pam_get_item(pamh, PAM_AUTHTOK, (void **)&password); in pam_sm_authenticate()
323 (void) __pam_display_msg(pamh, PAM_TEXT_INFO, 1, in pam_sm_authenticate()
336 if (pam_get_data(pamh, KRB5_AUTOMIGRATE_DATA, in pam_sm_authenticate()
347 if (pam_set_data(pamh, KRB5_AUTOMIGRATE_DATA, userdata, in pam_sm_authenticate()
373 krb5_migrate_cleanup(pam_handle_t *pamh, void *data, int pam_status) { in krb5_migrate_cleanup() argument
380 pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) in pam_sm_setcred() argument
/illumos-gate/usr/src/cmd/login/
H A Dlogin.c608 pamh = NULL; in main()
670 if (pamh) in donothing()
671 (void) pam_end(pamh, PAM_ABORT); in donothing()
940 error = pam_authenticate(pamh, flag); in verify_passwd()
1670 error = pam_chauthtok(pamh, in validate_account()
1674 error = pam_chauthtok(pamh, in validate_account()
1684 pam_strerror(pamh, error)); in validate_account()
1696 pam_strerror(pamh, error)); in validate_account()
2126 pamh = NULL; /* really done */ in process_chroot_logins()
2515 if (pamh) in login_exit()
[all …]

123