blob: bf77f3a07d6e454fed6a70d49d03ae92b1961430 [file] [log] [blame]
Chetan Gaonker7f4bf742016-05-04 15:56:08 -07001# -*- text -*-
2#
3# $Id: 11bd2246642bf3c080327c7f4a67dc42603f3a6c $
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 file
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_items
23#
24# Attributes marked as '~' are added to request_items
25#
26# Field marked as ',' may contain a comma separated list
27# of attributes.
28#
29# hash_size - 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.
33#
34# allow_multiple_keys - if many records for a key are allowed
35#
36# ignore_nislike - 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#
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.
48#
49passwd etc_passwd {
50 filename = /etc/passwd
51 format = "*User-Name:Crypt-Password:"
52 hash_size = 100
53 ignore_nislike = no
54 allow_multiple_keys = no
55}