Add mods-available/enabled
[freeradius.git] / raddb / mods-available / passwd
1 # -*- text -*-
2 #
3 #  $Id$
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 #
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 #   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.
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 #
45 #  We do NOT recommend using the configuration below.  See the "unix"
46 #  module, or the "pam" module for a cleaner way to get system passwords.
47 #  Using this configuration means that the server will find *only* those
48 #  passwords which are in /etc/passwd, and will *ignore* all of the
49 #  passwords in NIS, LDAP, etc.
50 #
51 passwd etc_passwd {
52         filename = /etc/passwd
53         format = "*User-Name:Crypt-Password:"
54         hashsize = 100
55         ignorenislike = no
56         allowmultiplekeys = no
57 }