]> mj.ucw.cz Git - subauth.git/blob - etc/subauthd
b66b17827bdcf2f5dc21602ce0af4d913f8449f8
[subauth.git] / etc / subauthd
1 SubauthD {
2         # Path to local socket over which clients communicate with the daemon
3         SocketPath      @INSTALL_RUN_DIR@/subauthd.socket
4
5         # Path to database of users and accounts
6         Database        @INSTALL_STATE_DIR@/subauthd.db
7
8         # An optional path to a key for signing temporary tokens.
9         # If it is defined, temporary tokens survive daemon restart. Otherwise,
10         # the daemon creates a new key on every startup.
11         TempKeyFile     @INSTALL_STATE_DIR@/subauthd-temp-key
12
13         # Maximum number of simultaneous client connections
14         MaxConnections  1000
15
16 #ifndef CONFIG_LOCAL
17         # Log to a given stream (configured below)
18         LogStream       syslog
19 #endif
20
21         # Authentication zones: each zone contains accounts for local users
22         # (at most one per user), zones are completely independent.
23         Zone {
24                 # Name of the zone
25                 Name            mail
26
27                 # One-line description
28                 Description     E-mail
29
30                 # Allow automatic creation of accounts: when a user tries to create
31                 # a password/token in a zone where he has no account, the account is
32                 # created. If turned off, all accounts must be created explicitly
33                 # by the super-user.
34                 AutoCreateAcct  1
35
36                 # Allow users to set a password
37                 AllowPasswd     1
38
39                 # Allow users to create a token, set maximum number of tokens per user
40                 AllowTokens     16
41
42                 # Allow users to create a temporary token, set maximum lifetime of such token
43                 MaxTempValidity 3600
44         }
45 }
46 #ifndef CONFIG_LOCAL
47
48 # Logging rules (see LibUCW documentation for full explanation)
49
50 Logging {
51         Stream {
52                 Name            syslog
53                 SyslogFacility  auth
54                 SyslogPID       0
55                 Levels:remove   debug
56         }
57 }
58 #endif