On this page
6.3. pam_debug-调试 PAM 堆栈
pam_debug.so
[auth = * +14+
*] [cred = * +15+
*] [acct = * +16+
*] [prechauthtok = * +17+
*] [chauthtok = * +18+
*] [auth = * +19+
*] [open_session = * +20+
*] [close_session = * +21+
*]
6.3.1. DESCRIPTION
pam_debug PAM 模块旨在用作确定 PAM 堆栈如何运行的调试助手。该模块返回其模块自变量告诉它返回的内容。
6.3.2. OPTIONS
auth=value
- pam_sm_authenticate(3)函数将返回*
value
*。
- pam_sm_authenticate(3)函数将返回*
cred=value
- pam_sm_setcred(3)函数将返回*
value
*。
- pam_sm_setcred(3)函数将返回*
acct=value
- pam_sm_acct_mgmt(3)函数将返回*
value
*。
- pam_sm_acct_mgmt(3)函数将返回*
prechauthtok=value
- 如果设置了* PAM_PRELIM_CHECK 标志,则 pam_sm_chauthtok(3)函数将返回
value
*。
- 如果设置了* PAM_PRELIM_CHECK 标志,则 pam_sm_chauthtok(3)函数将返回
chauthtok=value
- 如果未设置* PAM_PRELIM_CHECK 标志,则 pam_sm_chauthtok(3)函数将返回
value
*。
- 如果未设置* PAM_PRELIM_CHECK 标志,则 pam_sm_chauthtok(3)函数将返回
open_session=value
- pam_sm_open_session(3)函数将返回*
value
*。
- pam_sm_open_session(3)函数将返回*
close_session=value
- pam_sm_close_session(3)函数将返回*
value
*。
- pam_sm_close_session(3)函数将返回*
其中* value
*可以是以下之一:成功,open_err,symbol_err,service_err,system_err,buf_err,perm_denied,auth_err,cred_insufficient,authinfo_unavail,user_unknown,maxtries,new_authtok_reqd,acct_unired, ,authtok_recover_err,authtok_lock_busy,authtok_disable_aging,try_again,忽略,中止,authtok_expired,module_unknown,bad_item,conv_again,不完整。
6.3.3. 提供的模块类型
提供了所有模块类型(auth
,account
,password
和session
)。
6.3.4. 返回值
PAM_SUCCESS
- 如果未指定其他值,则为默认返回码,否则指定返回值。
6.3.5. EXAMPLES
auth requisite pam_permit.so
auth [success=2 default=ok] pam_debug.so auth=perm_denied cred=success
auth [default=reset] pam_debug.so auth=success cred=perm_denied
auth [success=done default=die] pam_debug.so
auth optional pam_debug.so auth=perm_denied cred=perm_denied
auth sufficient pam_debug.so auth=success cred=success
6.3.6. AUTHOR
pam_debug 由 Andrew G. Morgan<morgan@kernel.org>编写。