<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Explore &#187; AAA</title>
	<atom:link href="https://blog.linuxexplore.com/tag/aaa/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Mon, 07 Apr 2014 00:30:50 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>PAM with Radius Authentication</title>
		<link>https://blog.linuxexplore.com/2013/01/12/pam-with-radius-authentication-2/</link>
		<comments>https://blog.linuxexplore.com/2013/01/12/pam-with-radius-authentication-2/#comments</comments>
		<pubDate>Sat, 12 Jan 2013 15:57:48 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[AAA]]></category>
		<category><![CDATA[PAM]]></category>
		<category><![CDATA[Radius]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=686</guid>
		<description><![CDATA[PAM Radius Module allows any PAM-capable machine to become a RADIUS client for authentication and accounting requests. The actual authentication will be performed by a RADIUS server. The freeradius can be used for radius server. Download the PAM Radius Module To download the PAM Radius module, click here. Installing &#38; configuring PAM Radius Module To&#8230;]]></description>
				<content:encoded><![CDATA[<p>PAM Radius Module allows any PAM-capable machine to become a RADIUS client for authentication and accounting requests. The actual authentication will be performed by a RADIUS server. The <a href="http://freeradius.org/" target="_blank">freeradius</a> can be used for radius server.</p>
<p style="text-align:center;"><a href="https://www.facebook.com/linux.explore.blog"><img class="size-full wp-image-684 aligncenter" alt="PAM" src="http://linuxexplore.files.wordpress.com/2009/09/pam1.png?w=610" width="595" height="344" /></a></p>
<h1>Download the PAM Radius Module</h1>
<p>To download the PAM Radius module, click <a href="ftp://ftp.freeradius.org/pub/radius/pam_radius-1.3.17.tar.gz">here</a>.</p>
<h1>Installing &amp; configuring PAM Radius Module</h1>
<p>To install PAM radius module, give the following commands:</p>
<p>[root@rahul-pc]# tar -xvf pam_radius-1.3.17.tar.gz</p>
<p>[root@rahul-pc]# cd pam_radius-1.3.17</p>
<p>[root@rahul-pc]# make</p>
<p>It will generate a library file <strong>pam_radius_login.so</strong>. Copy that file to <strong>/lib/security/ </strong>directory.</p>
<p>[root@rahul-pc]# cp pam_radius_login.so /lib/security/</p>
<p>Create a directory <strong>/etc/raddb/. </strong>Copy the file <strong>pam_radius_auth.conf</strong> to <strong>/etc/raddb/</strong> directory named as <strong>server.</strong></p>
<p>[root@rahul-pc]# mkdir /etc/raddb/</p>
<p>[root@rahul-pc]# cp pam_radius_auth.conf /etc/raddb/server</p>
<p>Change the file <strong>/etc/raddb/server</strong> according to your configuration.</p>
<p># Radius Server IP address           Secret                                   Timeout</p>
<p>192.168.2.43                                       yoursecret                          3</p>
<h1>Configure PAM Applications for Radius Server</h1>
<p>After doing the above configurations, edit the PAM application’s files to authenticate from radius server.</p>
<h2>SSH server configuration</h2>
<p>To authenticate the SSH server request from radius server, edit the file /etc/pam.d/sshd.  Add a new line</p>
<p>auth                       sufficient                             pam_radius_auth.so</p>
<p>above the following line</p>
<p>auth                       include                                 system-auth</p>
<p>After changing the PAM file, the authentication request for SSH server will go to the configured radius server (192.168.2.43 in our example) first. If the request is not accepted from radius server, then it will check the system-authentication.</p>
<h2>Password change configuration</h2>
<p>Similarly, to change the password of any SSH user, change the file /etc/pam.d/passwd. Add a new line</p>
<p>password                            sufficient                             pam_radius_auth.so</p>
<p>above the following line</p>
<p>password                            include                 system-auth</p>
<p>After this password change request will go to the radius server.</p>
<h2>FTP Server Configuration</h2>
<p>Similarly do the above changes for <strong>vsftpd</strong> file in /etc/pam.d/ directory. Then the entire authentication request for FTP server will go to radius server.</p>
<p>In the same way do the changes for other required applications.</p>
<p><a href="http://linuxexplore.com/how-tos/pam-with-radius-authentication/">PAM with Radius Authentication</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/01/12/pam-with-radius-authentication-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
