Add 'try_mapped_pass' standard option.

Asked for by:	lukeh@PADL.COM
This commit is contained in:
Mark Murray 2001-08-20 12:43:19 +00:00
parent 3c321a686f
commit 47965f01dd
3 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,8 @@
*/
enum opt { PAM_OPT_DEBUG, PAM_OPT_NO_WARN, PAM_OPT_ECHO_PASS,
PAM_OPT_USE_FIRST_PASS, PAM_OPT_TRY_FIRST_PASS, PAM_OPT_USE_MAPPED_PASS,
PAM_OPT_EXPOSE_ACCOUNT, PAM_OPT_STD_MAX /* XXX */ };
PAM_OPT_TRY_MAPPED_PASS, PAM_OPT_EXPOSE_ACCOUNT,
PAM_OPT_STD_MAX /* XXX */ };
#define PAM_MAX_OPTIONS 32

View File

@ -42,6 +42,7 @@ struct opttab std_options[PAM_MAX_OPTIONS] = {
{ "use_first_pass", PAM_OPT_USE_FIRST_PASS },
{ "try_first_pass", PAM_OPT_TRY_FIRST_PASS },
{ "use_mapped_pass", PAM_OPT_USE_MAPPED_PASS },
{ "try_mapped_pass", PAM_OPT_TRY_MAPPED_PASS },
{ "expose_account", PAM_OPT_EXPOSE_ACCOUNT },
{ NULL, 0 }
};

View File

@ -35,7 +35,8 @@
*/
enum opt { PAM_OPT_DEBUG, PAM_OPT_NO_WARN, PAM_OPT_ECHO_PASS,
PAM_OPT_USE_FIRST_PASS, PAM_OPT_TRY_FIRST_PASS, PAM_OPT_USE_MAPPED_PASS,
PAM_OPT_EXPOSE_ACCOUNT, PAM_OPT_STD_MAX /* XXX */ };
PAM_OPT_TRY_MAPPED_PASS, PAM_OPT_EXPOSE_ACCOUNT,
PAM_OPT_STD_MAX /* XXX */ };
#define PAM_MAX_OPTIONS 32