⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rlm_pap.5

📁 新的radius程序
💻 5
字号:
.TH rlm_pap 5 "3 February 2004" "" "FreeRADIUS Module".SH NAMErlm_pap \- FreeRADIUS Module.SH DESCRIPTIONThe \fIrlm_pap\fP module performs PAP authentication..PPThis module performs authentication when the Access-Request contains aUser-Password attribute AND when a "known good" password has beenconfigured for the user.  In addition, it takes care of decoding the"known good" password from hex or Base64 encoding to a form it can usefor authentication..PPAs a result, as of 1.1.4, the "encryption_scheme" configuration itemSHOULD NOT BE USED, and the rlm_ldap configurationitem "password_header" SHOULD NOT BE USED.  Those items will continue to workin 1.1.4, and existing systems will work un-changed after upgrading to1.1.4.  We recommend, though, that sites using multiple instances ofrlm_pap see if they can replace those multiple instances with one instance,using the new "auto_header" configuration, and remove the "password_header"configuration from rlm_ldap..PPThe configuration item(s):.IP auto_headerAutomatically discover password headers.  Permitted values are "yes"and "no".  For backwards compatibility, the default is "no"..IPThe recommended value is "yes"..IP encryption_schemeNo longer used, and therefore no longer documented..PPWhen "auto_header" is set to "yes", the module will look in theconfiguration list for the User-Password attribute or the newPassword-With-Header attribute.  If found, it will then look at thestring value of those attributes, for one of the following headers:.PP.DS.br		{clear}.br	{cleartext}.br	{crypt}.br	{md5}.br	{smd5}.br	{sha1}.br	{ssha1}.br	{nt}.br	{x-nthash}.br	{ns-mta-md5}.DE.PPThe text following the header is taken as the "known good" password,either cleartext, crypted, hashed, or hashed with a salt.  If the textis hex or Base64 encoded, it will be decoded to obtain the correctform of the "known good" password.  The User-Password in theAccess-Request will then be crypted, or hashed as appropriate, andcompared to the "known good" password.  If they match, the user isauthenticated, otherwise the module returns reject..SH CAVEATSIn order for the "auto_header = yes" functionality to work, the\fIpap\fP module MUST be listed LAST in the \fIauthorize\fP section of\fIradiusd.conf\fP.  This lets other modules such as LDAP blindly adda "known good" password to the configuration items, and the PAP modulewill just figure it out.  In most cases, multiple instances of the PAPmodule, along with complex logic to determine which one to call when,can be replaced with one instance of the module, with it listed lastin the \fIauthorize\fP section..PPNote that the \fIns_mta_md5\fP module is no longer necessary, and canbe removed..PPAlso, setting "Auth-Type = Local" or "Auth-Type = Crypt-Local" is nolonger necessary.  Any such settings SHOULD BE DELETED.  Simply list\fIpap\fP LAST in the \fIauthorize\fP section, and the module willtake care of figuring out what to do.  (Have we emphasized that enough?).PPAnother reason to list the module last is that it will take care ofnormalizing any crypt'd or hashed password retrieved from a database.So it is now safe to have clear-text passwords as "{clear}...",because the PAP module will take care of removing the "{clear}" prefixfrom the password.  Any other modules that need access to thecleartext password will.PPThe module uses a number of new attributes..IP Password-With-HeaderThis attribute should contain a "known good" password, with a headersuch as "{crypt}, or "{md5}", etc.  It should be used when thepasswords retrieved from a DB may have different headers.  When\fIpap\fP is listed in the \fIauthorize\fP section, the module willexamine this attribute, and use it to create one of the otherattributes listed below.  That other attribute is then used forauthentication..IPIf the passwords in a DB do not have a header, and are always in oneparticular form, then the attributes listed below can be useddirectly.  In that case, the PAP module will do hex or Base64 decodingof the attribute contents, if necessary.  So \fIpap\fP should still belisted in the \fIauthorize\fP section, because it will enable themaximum flexibility for the server, and minimize configuration for theadministrator..IP Cleartext-PasswordThis attribute should contain the cleartext for a "known good"password.  Previously, the User-Password attribute was overloaded tocontain this, both in the FAQ and in databases in many sites.  Anyconfiguration that sets a cleartext form of the password usingUser-Password SHOULD UPDATE to using Cleartext-Password.  Doing sowill simplify a number of debugging issues..IP Crypt-PasswordThis attribute has been around for a while, but is documented here forcompleteness.  It contains the crypt'd form of the password..IP MD5-PasswordThis attribute contains the MD5 hashed form of the password..IP SMD5-PasswordThis attribute contains the MD5 hashed form of the password, with a salt..IP SHA1-PasswordThis attribute contains the SHA1 hashed form of the password..IP SSHA1-PasswordThis attribute contains the SHA1 hashed form of the password, with a salt..IP NT-PasswordThis attribute has been around for a while, but is documented here forcompleteness.  It contains the NT hash form of the password, as usedby Active Directory and Samba..SH SECTIONS.BR authorize.BR authenticate.PP.SH FILES.I /etc/raddb/radiusd.conf.PP.SH "SEE ALSO".BR radiusd (8),.BR radiusd.conf (5).SH AUTHORAlan DeKok <aland@freeradius.org>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -