Print this page

PAM Radius Authentication on RHEL - Building the pam_radius rpm

 

Building pam_radius RPM and installing and configuring

PAM Radius Authentication on Red Hat based distributions

None of the Red Hat Enterprise Linux's come with a pam module for authenticating against a radius server. However, an excellent howto was found on the web at this address:

http://www.van-sluis.nl/php/index.php?dest=smtpauth

Anyway, the gist is that the pam_radius_auth module code is available on the freeradius site. ftp://ftp.freeradius.org/pub/radius/pam_radius-1.3.16.tar

Downloaded the tarball, renamed it to pam_radius_auth-1.3.16.tar. Copied the tarball to /usr/src/redhat/SOURCES and untarred a copy in tmp. Copied the spec file from it to /usr/src/redhat/SPECS/pam_radius_auth.spec. Had to make a couple of changes to the spec file to get it to build...

changed

%define version 1.3.15
to
%define version 1.3.16

and added
BuildRequires: pam pam-devel
right after the Requires: line.

Of course you need kernel sources and general dev tools installed. Lastly, from the /usr/src/redhat dir, run

#rpmbuild -ba SPECS/pam_radius_auth.spec

which _should_ build successfully.