summaryrefslogtreecommitdiffstats
path: root/raddb/mods-available/passwd
blob: 11bd2246642bf3c080327c7f4a67dc42603f3a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- text -*-
#
#  $Id$

# passwd module allows to do authorization via any passwd-like
# file and to extract any attributes from these files.
#
#  See the "smbpasswd" and "etc_group" files for more examples.
#
# parameters are:
#   filename - path to file
#
#   format - format for filename record. This parameters
#            correlates record in the passwd file and RADIUS
#            attributes.
#
#            Field marked as '*' is a key field. That is, the parameter
#            with this name from the request is used to search for
#            the record from passwd file
#
#            Attributes marked as '=' are added to reply_items instead
#            of default configure_items
#
#	     Attributes marked as '~' are added to request_items
#
#            Field marked as ',' may contain a comma separated list
#            of attributes.
#
#   hash_size - hashtable size.  Setting it to 0 is no longer permitted
#		A future version of the server will have the module
#		automatically determine the hash size.  Having it set
#		manually should not be necessary.
#
#   allow_multiple_keys - if many records for a key are allowed
#
#   ignore_nislike - ignore NIS-related records
#
#   delimiter - symbol to use as a field separator in passwd file,
#            for format ':' symbol is always used. '\0', '\n' are
#	     not allowed
#

#  An example configuration for using /etc/passwd.
#
#  This is an example which will NOT WORK if you have shadow passwords,
#  NIS, etc.  The "unix" module is normally responsible for reading
#  system passwords.  You should use it instead of this example.
#
passwd etc_passwd {
	filename = /etc/passwd
	format = "*User-Name:Crypt-Password:"
	hash_size = 100
	ignore_nislike = no
	allow_multiple_keys = no
}