| 1 |
RADIUS rlm_passwd (passwd-like files authorization module) |
| 2 |
|
| 3 |
FAQ |
| 4 |
|
| 5 |
Q: Can I use rlm_passwd to authenticate user against Linux shadow password |
| 6 |
file or BSD-style master.passwd? |
| 7 |
A: Yes, but you need RADIUS running as root. Hint: use Crypt-Password |
| 8 |
attribute. You probably don't want to use this module with |
| 9 |
FreeBSD to authenticate against system file, as it already takes care |
| 10 |
of caching passwd file entries, but it may be helpfull to authenticate |
| 11 |
against alternate file. |
| 12 |
|
| 13 |
Q: Can I use rlm_passwd to authenticate user against SAMBA smbpasswd? |
| 14 |
A: Yes, you can. Hint: use LM-Password/NT-Password attribute, set |
| 15 |
authtype = MS-CHAP. |
| 16 |
|
| 17 |
Q: Can I use rlm_password to authenticate user against BLA-BLA-BLApasswd? |
| 18 |
A: Probably you can, if BLA-BLA-BLA stores password in some format supported |
| 19 |
by RADIUS, for example cleartext, NT/LM hashes, crypt, Netscape MD5 format. |
| 20 |
You have to set authtype to corresponding type, for example |
| 21 |
authtype = NS-MTA-MD5 |
| 22 |
for Netscape MD5. |
| 23 |
|
| 24 |
Q: Are where are differences between rlm_passwd and rlm_unix? |
| 25 |
A: rlm_passwd supports passwd files in any format and may be used, for |
| 26 |
example, to parse FreeBSD's master.passwd or SAMBA smbpasswd files, but |
| 27 |
it can't perform system authentication (for example to authenticate |
| 28 |
NIS user, like rlm_unix does). If you need system authentication you |
| 29 |
need rlm_unix, if you have to authenticate against files only under |
| 30 |
BSD you need rlm_passwd, if you need to authenticate against files only |
| 31 |
under Linux, you can choose between rlm_unix and rlm_passwd, probably |
| 32 |
you will have nearly same results in performance (I hope :) ). |
| 33 |
|
| 34 |
Q: I'm using realms with rlm_passwd. I see rlm_passwd do not strip realm |
| 35 |
from user name. How to configure rlm_passwd to strip realm? |
| 36 |
|
| 37 |
A: In case you configured realm to strip username, User-Password attribute |
| 38 |
is not changed. Instead, rlm_realm creates new attribute Stripped-User-Name. |
| 39 |
All you need is to use Stripped-User-Name instead of User-Name as a key |
| 40 |
field for passwd file. |
| 41 |
|
| 42 |
Q: How can I say passwd to add attribute even if it's value is empty? |
| 43 |
|
| 44 |
A: set ignore_empty to "no" in module configuration. |
| 45 |
|
| 46 |
|
| 47 |
5. Acknowlegements: |
| 48 |
|
| 49 |
ZARAZA, <[email protected]> |
| 50 |
Michael Chernyakhovsky <[email protected]> - reply-items support |