-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthserv.conf
More file actions
273 lines (245 loc) · 9.31 KB
/
authserv.conf
File metadata and controls
273 lines (245 loc) · 9.31 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
###### authserv.conf -- NoCatAuth Authentication Service Configuration.
#
# Format of this file is: <Directive> <Value>, one per
# line. Trailing and leading whitespace is ignored. Any
# line beginning with a punctuation character is assumed to
# be a comment.
###### General settings.
#
# Log verbosity -- 0 is (almost) no logging. 10 is log
# everything. 5 is probably a safe middle road.
#
Verbosity 10
##
# PGPKeyPath -- The directory in which PGP keys are stored.
# NoCat tries to find this in the pgp/ directory above
# the bin/ parent directory. Set this only if you put it
# somewhere that NoCat doesn't expect.
#
# PGPKeyPath /usr/local/nocat/pgp
###### Authservice-specific settings.
#
# HomePage -- The authservice's notion of a default
# redirect.
#
HomePage http://nocat.net/
# DocumentRoot -- Where all of the application templates (including
# SplashPage) are hiding. Can be different from Apache's DocumentRoot.
#
DocumentRoot /usr/local/nocat/htdocs
##### Authservice authentication source.
#
# DataSource -- specifies what to authenticate against.
# Possible values are DBI, Passwd, LDAP, RADIUS, PAM, Samba, IMAP, NIS.
#
DataSource DBI
##
# Auth service database settings.
#
# If you select DataSource DBI, then Database, DB_User, and DB_Password
# are required.
#
# Database is a DBI-style data source specification.
#
# For postgres support:
# Database dbi:Pg:dbname=nocat
#
# For mysql support:
Database dbi:mysql:database=nocat
DB_User nocat
DB_Passwd whodatatmydo?!
## LDAP support. Requires Net::LDAP & IO::Socket::SSL to be installed from the CPAN.
#
# If you select DataSource LDAP, all of the following settings are required:
#
# LDAP_Host - DNS name or IP Address of LDAP directory
# LDAP_Base - the LDAP container for searching and creating users
# LDAP_Admin_User - the fully distinguished name of the administrative user
# NOTE: this user must be able to create users in the container specified above
# LDAP_Admin_PW - the admin users password
# LDAP_Hash_Passwords - Yes or No
# - if passwords are to be MD5 hashed before being set in the directory
# LDAP_Search_as_Admin - Yes or No
# - "Yes" if all operations are to be done as the admin user, "No" if
# everything but creation should be done as anonymous
# LDAP_Filter - Attribute name containing user's ID, email address
# or username.
#
# This version of LDAP.pm has been updated and tested against a Novell eDirectory
# LDAP server. The login "unique ID" - the e-mail address - is stored as an
# attribute of the user, and the "name" provided by the user is used as the
# directory object name.
#
# Please send bug reports and patches.
#
# Still with this release, the admin tools don't fully work with LDAP support at
# the moment.
#
# LDAP_Host ldap.mydomain.com
# LDAP_Base ou=myContainer,o=universe
# LDAP_Admin_User cn=LDAPAdmin,o=universe
# LDAP_Admin_PW ldapAdminSecret
# LDAP_Hash_Passwords Yes
# LDAP_Search_as_Admin Yes
# LDAP_Filter mail
## RADIUS support. Requires Authen::Radius to be installed from the CPAN.
#
# Right now, this support is totally experimental. Please send bug reports
# and patches. The admin tools don't fully work with RADIUS support at the moment.
#
# The RADIUS_Host may by in a number of different formats and is required:
#
# RADIUS_Host radius.nocat.net
# RADIUS_Host radius1.nocat.net,radius2.nocat.net,radius3.nocat.net
# RADIUS_Host radius1.nocat.net:1645,radius2.nocat.net:1812,radius3.nocat.net
#
# The previous three examples are 1 host and multiple hosts (can be any number of
# hosts separated by a comma) and finally with ports provided after a colon. (If
# no port number is supplied, it uses the Authen::Radius default of the radius
# service in /etc/services or 1645. Mixing entries with and without ports is
# fine.) These examples require a RADIUS_Secret in the format:
#
# RADIUS_Secret sHHHH
#
# The other format is to use the RADIUS_Host with a secret after
# the hostname seperated by a * such as the examples below. This
# allows for different secrets on different hosts.
#
# RADIUS_Host radius1.nocat.net*secret1,radius2.nocat.net*secret2,radius3.nocat.net*secret3
#
# Alternatively, ports can also be used on any number of entries.
# If the secret is not present, it uses the RADIUS_Secret.
#
# RADIUS_Host radius1.nocat.net:1645*secret1,radius2.nocat.net:1812,radius3.nocat.net*secret3
#
# RADIUS_TimeOut is optional and defaults to the Authen::Radius
# default timeout.
#
# RADIUS_TimeOut 5
#
# Finally, RADIUS_Order controls the order in which RADIUS
# servers are used. The acceptable values are "Ordered"
# (the default) and Random (which will share the load
# among the servers.
#
# RADIUS_Order Random
# **** End RADIUS Configuration ****
## PAM support. Requires Authen::PAM to be installed from the CPAN.
#
# Make sure you have an /etc/pam.d/nocat or nocat line(s) in your /etc/pam.conf.
# See etc/pam.conf from this distribution for an example. The PAM_Service
# directive controls which PAM service NoCat attempts to authenticate against,
# but we don't recommend changing it unless you really know what you're doing
# with PAM. It defaults to "nocat". The admin tools don't work with PAM support
# at the moment.
#
# PAM_Service nocat
## Samba support. Requires Authen::Smb to be installed from the CPAN.
#
# Samba_PDC and Samba_Domain are required. Samba_BDC is optional.
#
# Samba_Domain MyWorkgroup
# Samba_PDC MyPrimaryDomainController
# Samba_BDC MyBackupDomainController
## IMAP support. Requires Net::IMAP::Simple to be installed from the CPAN.
#
# IMAP_Server is required. The admin tools don't work with this auth method.
#
# IMAP_Server imap.yourdomain.net
# (or more likely:)
# IMAP_Server localhost
## NIS support. Requires Net::NIS to be installed from the CPAN.
#
# The admin tools don't work with this auth source, surprise.
#
# DataSource NIS
## Alternately, you can use the Passwd data source.
#
# UserFile /usr/local/nocat/etc/passwd
# GroupUserFile /usr/local/nocat/etc/group
# GroupAdminFile /usr/local/nocat/etc/groupadm
#
# The format of these files is as follows:
#
# In UserFile, each line is of the form <username>:<password>, where the
# password is an MD5 digest of the user's actual password.
#
# In GroupUserFile and GroupAuthFile, each line is of the form
# <group>:<user1>,<user2>,<user3>,...
#
# The UserFile may be updated with the bin/admintool script included in this
# distribution.
###### Auth service user table settings.
#
# UserTable names the table containing the user ID data.
#
# UserIDField names the column containing the ID that the
# client uses to uniquely identifying themselves, i.e. their
# e-mail address or username.
#
# UserPasswdField stores the user's MD5-hashed password.
#
# UserAuthField is deprecated and will go away.
#
UserTable member
UserIDField login
UserPasswdField pass
UserAuthField status
UserStampField created
GroupTable network
GroupIDField network
GroupAdminField admin
####### Auth service web application settings.
#
# MinPasswdLength -- Enforced minimum user password length.
# Not much other checking is done on the user's p/w.
#
MinPasswdLength 6
# MessageSign -- shell command to sign an auth notification
# with. The message to be signed is written to the
# command's standard in, and the signed message is read
# from standard out.
#
# GpgPath /usr/bin/gpg
#
# MessageSign $GpgPath --clearsign --homedir=$PGPKeyPath -o-
# LocalGateway -- If you run auth service on the same subnet
# (or host) as the gateway you need to specify the hostname
# of the gateway. Otherwise omit it. (Requires Net::Netmask)
#
# LocalGateway 192.168.1.7
# Auth service template names. See the individual templates
# for details on what each one does.
#
LoginForm login.html
LoginOKForm login_ok.html
FatalForm fatal.html
ExpiredForm expired.html
RenewForm renew.html
PassiveRenewForm renew_pasv.html
RegisterForm register.html
RegisterOKForm register_ok.html
RegisterFields name url description
UpdateForm update.html
UpdateFields url description
###### Auth service user messages. Should be self-explanatory.
#
LoginGreeting Greetings! Welcome to the NoCat Network.
LoginMissing Please fill in all fields!
LoginBadUser That e-mail address is unknown. Please try again.
LoginBadPass That e-mail and password do not match. Please try again.
LoginBadStatus Sorry, you are not a registered co-op member.
RegisterGreeting Welcome! Please enter the following information to register.
RegisterMissing Name, E-mail, and password fields must be filled in.
RegisterUserExists Sorry, that e-mail address is already taken. Are you already registered?
RegisterBadUser The e-mail address provided appears to be invalid. Did you spell it correctly?
RegisterInvalidPass All passwords must be at least six characters long.
RegisterPassNoMatch The passwords you provided do not match. Please try again.
RegisterSuccess Congratulations, you have successfully registered.
UpdateGreeting Enter your E-mail and password to update your info.
UpdateBadUser That e-mail address is unknown. Please try again.
UpdateBadPass That e-mail and password do not match. Please try again.
UpdateInvalidPass New passwords must be at least six characters long.
UpdatePassNoMatch The new passwords you provided do not match. Please try again.
UpdateSuccess Congratulations, you have successfully updated your account.
###### Fin.