144
Chapter 9: Authentication
9.2 PAM (Pluggable Authentication Modules)
TheConsoleServersupportsRADIUS,TACACS+andLDAPfortwo-factorauthenticationviaPAM(PluggableAuthentication
Modules).PAMisaexiblemechanismforauthenticatingUsers.Nowadays,anumberofnewwaysofauthenticatingusers
havebecomepopular.Thechallengeisthateachtimeanewauthenticationschemeisdeveloped,itrequiresallthenecessary
programs(login,ftpd,etc.)toberewrittentosupportit.
PAM provides a way to develop programs that are independent of authentication schemes. These programs need
"authenticationmodules"tobeattachedtothematrun-timeinordertowork.Whichauthenticationmoduleistobeattached
is dependent upon the local system setup and is at the discretion of the local Administrator.
The Console Server family supports PAM to which we have added the following modules for remote authentication:
RADIUS -pam_radius_auth (http://www.freeradius.org/pam_radius_auth/)
TACACS+ -pam_tacplus (http://echelon.pl/pubs/pam_tacplus.html)
LDAP -pam_ldap (http://www.padl.com/OSS/pam_ldap.html)
Further modules can be added as required.
Changesmaybemadetolesin/etc/cong/pam.d/whichwillpersist,eveniftheauthenticationconguratorisrun.
• Usersaddedondemand:
Whenauserattemptstologin,butdoesnotalreadyhaveanaccountontheConsoleServer,anewuseraccountwillbe
created.Thisaccountwillnothaveanyrights,andnopasswordset.Theywillnotappearinthecongurationtools.
Automaticallyaddedaccountswillnotbeabletologiniftheremoteserversareunavailable.RADIUSusersarecurrently
assumedtohaveaccesstoallresources,sowillonlybeauthorizedtologintotheConsoleServer.RADIUSuserswillbe
authorized each time they access a new resource.
• AdminrightsgrantedoverAAA:
UsersmaybegrantedAdministratorrightsvianetworkedAAA.ForTACACS,apriv-lvlof12ofaboveindicatesan
administrator.ForRADIUS,administratorsareindicatedviatheFramedFilterID.(Seetheexamplecongurationles
below,forexample.)
• AuthorizationviaTACACSforbothserialportsandhostaccess:
Permission to access resources may be granted via TACACS by indicating an appliance and a port or networked host the
usermayaccess.(Seetheexamplecongurationlesbelow,forexample.)
TACACS Example:
user = tim {
service = raccess {
priv-lvl = 11
port1 = xxxxx/port02
port2 = 192.168.254.145/port05
}
global = cleartext mit
}
RADIUSExample:
paul Cleartext-Password := "luap"
Service-Type = Framed-User,
Fall-Through = No,
Framed-Filter-Id=":group_name=admin"