Howto authenticate to a Linux box using the eTokenNG OTP

introduction

Hit me, beat me. But - I am sorry - this example is about using a windows backend. This is - since this example is rather old. If you want to run a Linux Backend please take a look at LinOTP. Of course the client configuration (pam_radius) stays the same.

installing the windows server

rollout eTokenNG

Having done all the steps above, you are now able to roll out an eTokenNG OTP using the Aladdin eToken Wizard.

configure IAS

configure pam_radius_auth

Again you need a new pam module. Download pam_radius_auth from ftp://ftp.freeradius.org/pub/radius/

We create a new file /etc/pam.d/system-auth-radius, that can be used in all pam-configs.

 --snip--
 #%PAM-1.0
 # This file is auto-generated.
 # User changes will be destroyed the next time authconfig is run.
 auth        required      /lib/security/$ISA/pam_env.so
 auth            sufficient      /root/pam_radius-1.3.16/pam_radius_auth.so conf=/root/pam_radius-1.3.16/pam_radius_auth.conf debug
 auth        required      /lib/security/$ISA/pam_deny.so
 account     required      /lib/security/$ISA/pam_unix.so
 password    required      /lib/security/$ISA/pam_cracklib.so retry=3 type=
 password    sufficient    /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow
 password    required      /lib/security/$ISA/pam_deny.so
 session     required      /lib/security/$ISA/pam_limits.so
 session     required      /lib/security/$ISA/pam_unix.so
 --snip--

Now we have to edit the file pam_auth_radius.conf:

 --snip--
 # server[:port] shared_secret      timeout (s)
 #127.0.0.1      secret             1
 #other-server    other-secret       3
 172.16.200.201  123456                  6
 --snip-- 

This is very simple. Just enter the IP of your windows machine and the preshared secret.

finally

Now you only need to make sure, that your Linux box has the same user account name like the user on the Windows machine, for whom you were enrolling the eTokenNG.

HowTos/Linux_and_OTP (last edited 2008-09-15 08:25:13 by CorneliusKoelbel)