| 1 |
This is a simple and safe example on how to enable radius |
| 2 |
authentication to the console login on a Debian system and |
| 3 |
you are too lazy to read the USAGE documentation. |
| 4 |
|
| 5 |
Edit /etc/pam.d/login |
| 6 |
|
| 7 |
The default looks like: |
| 8 |
|
| 9 |
[SNIP] |
| 10 |
|
| 11 |
# Disallows other than root logins when /etc/nologin exists |
| 12 |
# (Replaces the `NOLOGINS_FILE' option from login.defs) |
| 13 |
auth requisite pam_nologin.so |
| 14 |
|
| 15 |
# This module parses /etc/environment (the standard for setting |
| 16 |
# environ vars) and also allows you to use an extended config |
| 17 |
# file /etc/security/pam_env.conf. |
| 18 |
# (Replaces the `ENVIRON_FILE' setting from login.defs) |
| 19 |
auth required pam_env.so |
| 20 |
|
| 21 |
# Standard Un*x authentication. The "nullok" line allows passwordless |
| 22 |
# accounts. |
| 23 |
@include common-auth |
| 24 |
|
| 25 |
[SNIP] |
| 26 |
|
| 27 |
|
| 28 |
Insert the following line: |
| 29 |
|
| 30 |
auth sufficient pam_radius_auth.so |
| 31 |
|
| 32 |
AFTER |
| 33 |
|
| 34 |
auth required pam_env.so |
| 35 |
|
| 36 |
and BEFORE |
| 37 |
|
| 38 |
# Standard Un*x authentication. The "nullok" line allows passwordless |
| 39 |
# accounts. |
| 40 |
@include common-auth |
| 41 |
|
| 42 |
so that it will looks like: |
| 43 |
|
| 44 |
[SNIP] |
| 45 |
|
| 46 |
# This module parses /etc/environment (the standard for setting |
| 47 |
# environ vars) and also allows you to use an extended config |
| 48 |
# file /etc/security/pam_env.conf. |
| 49 |
# (Replaces the `ENVIRON_FILE' setting from login.defs) |
| 50 |
auth required pam_env.so |
| 51 |
|
| 52 |
##### RADIUS ##### |
| 53 |
auth sufficient pam_radius_auth.so |
| 54 |
|
| 55 |
# Standard Un*x authentication. The "nullok" line allows passwordless |
| 56 |
# accounts. |
| 57 |
@include common-auth |
| 58 |
|
| 59 |
[SNIP] |
| 60 |
|
| 61 |
Try now to login in one of the consoles using the radius password. |
| 62 |
If it fails the system will prompt again for a password. This time |
| 63 |
provide the local one. |
| 64 |
|