4 |
- |
1 |
# -*- text -*-
|
|
|
2 |
#
|
34 |
- |
3 |
# $Id: cc37ca0d7eaf9887720eccc2de0ecb75a51117c8 $
|
4 |
- |
4 |
|
|
|
5 |
# passwd module allows to do authorization via any passwd-like
|
|
|
6 |
# file and to extract any attributes from these files.
|
|
|
7 |
#
|
|
|
8 |
# See the "smbpasswd" and "etc_group" files for more examples.
|
|
|
9 |
#
|
|
|
10 |
# parameters are:
|
|
|
11 |
# filename - path to filename
|
|
|
12 |
#
|
|
|
13 |
# format - format for filename record. This parameters
|
|
|
14 |
# correlates record in the passwd file and RADIUS
|
|
|
15 |
# attributes.
|
|
|
16 |
#
|
|
|
17 |
# Field marked as '*' is a key field. That is, the parameter
|
|
|
18 |
# with this name from the request is used to search for
|
|
|
19 |
# the record from passwd file
|
|
|
20 |
#
|
|
|
21 |
# Attributes marked as '=' are added to reply_items instead
|
|
|
22 |
# of default configure_itmes
|
|
|
23 |
#
|
34 |
- |
24 |
# Attributes marked as '~' are added to request_items
|
4 |
- |
25 |
#
|
|
|
26 |
# Field marked as ',' may contain a comma separated list
|
|
|
27 |
# of attributes.
|
|
|
28 |
#
|
34 |
- |
29 |
# hashsize - hashtable size. Setting it to 0 is no longer permitted
|
|
|
30 |
# A future version of the server will have the module
|
|
|
31 |
# automatically determine the hash size. Having it set
|
|
|
32 |
# manually should not be necessary.
|
4 |
- |
33 |
#
|
|
|
34 |
# allowmultiplekeys - if many records for a key are allowed
|
|
|
35 |
#
|
|
|
36 |
# ignorenislike - ignore NIS-related records
|
|
|
37 |
#
|
|
|
38 |
# delimiter - symbol to use as a field separator in passwd file,
|
|
|
39 |
# for format ':' symbol is always used. '\0', '\n' are
|
|
|
40 |
# not allowed
|
|
|
41 |
#
|
|
|
42 |
|
|
|
43 |
# An example configuration for using /etc/passwd.
|
|
|
44 |
#
|
34 |
- |
45 |
# This is an example which will NOT WORK if you have shadow passwords,
|
|
|
46 |
# NIS, etc. The "unix" module is normally responsible for reading
|
|
|
47 |
# system passwords. You should use it instead of this example.
|
4 |
- |
48 |
#
|
|
|
49 |
passwd etc_passwd {
|
|
|
50 |
filename = /etc/passwd
|
|
|
51 |
format = "*User-Name:Crypt-Password:"
|
|
|
52 |
hashsize = 100
|
|
|
53 |
ignorenislike = no
|
|
|
54 |
allowmultiplekeys = no
|
|
|
55 |
}
|