... | ... |
@@ -23,6 +23,10 @@ |
23 | 23 |
* You should have received a copy of the GNU General Public License |
24 | 24 |
* along with this program; if not, write to the Free Software |
25 | 25 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
26 |
+ * |
|
27 |
+ * History: |
|
28 |
+ * -------- |
|
29 |
+ * 2003-04-05 DEFAULT_*_URL introduced (jiri) |
|
26 | 30 |
*/ |
27 | 31 |
|
28 | 32 |
|
... | ... |
@@ -166,5 +170,8 @@ |
166 | 170 |
/* maximum path length */ |
167 | 171 |
#define PATH_MAX_GUESS 1024 |
168 | 172 |
|
173 |
+#define DEFAULT_DB_URL "sql://ser:heslo@localhost/ser" |
|
174 |
+#define DEFAULT_RODB_URL "sql://serro:47serro11@localhost/ser" |
|
175 |
+ |
|
169 | 176 |
|
170 | 177 |
#endif |
171 | 178 |
deleted file mode 100644 |
... | ... |
@@ -1,83 +0,0 @@ |
1 |
-# General settings |
|
2 |
- |
|
3 |
-# specify which authentication comes first respectively which |
|
4 |
-# authentication is used. possible values are: "radius" and "local". |
|
5 |
-# if you specify "radius,local" then the RADIUS server is asked |
|
6 |
-# first then the local one. if only one keyword is specified only |
|
7 |
-# this server is asked. |
|
8 |
-auth_order radius,local |
|
9 |
- |
|
10 |
-# maximum login tries a user has |
|
11 |
-login_tries 4 |
|
12 |
- |
|
13 |
-# timeout for all login tries |
|
14 |
-# if this time is exceeded the user is kicked out |
|
15 |
-login_timeout 60 |
|
16 |
- |
|
17 |
-# name of the nologin file which when it exists disables logins. |
|
18 |
-# it may be extended by the ttyname which will result in |
|
19 |
-# a terminal specific lock (e.g. /etc/nologin.ttyS2 will disable |
|
20 |
-# logins on /dev/ttyS2) |
|
21 |
-nologin /etc/nologin |
|
22 |
- |
|
23 |
-# name of the issue file. it's only display when no username is passed |
|
24 |
-# on the radlogin command line |
|
25 |
-issue /usr/local/etc/radiusclient/issue |
|
26 |
- |
|
27 |
-# RADIUS settings |
|
28 |
- |
|
29 |
-# RADIUS server to use for authentication requests. this config |
|
30 |
-# item can appear more then one time. if multiple servers are |
|
31 |
-# defined they are tried in a round robin fashion if one |
|
32 |
-# server is not answering. |
|
33 |
-# optionally you can specify a the port number on which is remote |
|
34 |
-# RADIUS listens separated by a colon from the hostname. if |
|
35 |
-# no port is specified /etc/services is consulted of the radius |
|
36 |
-# service. if this fails also a compiled in default is used. |
|
37 |
-#authserver localhost |
|
38 |
-#stelios- I tried localhost and it didn't work |
|
39 |
-authserver nenobec.fokus.gmd.de |
|
40 |
-#authserver 192.168.99.100 |
|
41 |
- |
|
42 |
-# RADIUS server to use for accounting requests. All that I |
|
43 |
-# said for authserver applies, too. |
|
44 |
-# |
|
45 |
-#acctserver localhost |
|
46 |
-acctserver nenobec.fokus.gmd.de |
|
47 |
-#acctserver 192.168.99.100 |
|
48 |
- |
|
49 |
-# file holding shared secrets used for the communication |
|
50 |
-# between the RADIUS client and server |
|
51 |
-servers etc/servers |
|
52 |
- |
|
53 |
-# dictionary of allowed attributes and values |
|
54 |
-# just like in the normal RADIUS distributions |
|
55 |
-dictionary etc/sip_dictionary |
|
56 |
- |
|
57 |
-# program to call for a RADIUS authenticated login |
|
58 |
-login_radius /usr/local/sbin/login.radius |
|
59 |
- |
|
60 |
-# file which holds sequence number for communication with the |
|
61 |
-# RADIUS server |
|
62 |
-seqfile /var/run/radius.seq |
|
63 |
- |
|
64 |
-# file which specifies mapping between ttyname and NAS-Port attribute |
|
65 |
-mapfile /usr/local/etc/radiusclient/port-id-map |
|
66 |
- |
|
67 |
-# default authentication realm to append to all usernames if no |
|
68 |
-# realm was explicitly specified by the user |
|
69 |
-# the radiusd directly form Livingston doesnt use any realms, so leave |
|
70 |
-# it blank then |
|
71 |
-default_realm |
|
72 |
- |
|
73 |
-# time to wait for a reply from the RADIUS server |
|
74 |
-radius_timeout 10 |
|
75 |
- |
|
76 |
-# resend request this many times before trying the next server |
|
77 |
-radius_retries 3 |
|
78 |
- |
|
79 |
-# LOCAL settings |
|
80 |
- |
|
81 |
-# program to execute for local login |
|
82 |
-# it must support the -f flag for preauthenticated login |
|
83 |
-login_local /bin/login |
7 | 0 |
deleted file mode 100644 |
... | ... |
@@ -1,271 +0,0 @@ |
1 |
-# |
|
2 |
-# Updated 97/06/13 to livingston-radius-2.01 miquels@cistron.nl |
|
3 |
-# |
|
4 |
-# This file contains dictionary translations for parsing |
|
5 |
-# requests and generating responses. All transactions are |
|
6 |
-# composed of Attribute/Value Pairs. The value of each attribute |
|
7 |
-# is specified as one of 4 data types. Valid data types are: |
|
8 |
-# |
|
9 |
-# string - 0-253 octets |
|
10 |
-# ipaddr - 4 octets in network byte order |
|
11 |
-# integer - 32 bit value in big endian order (high byte first) |
|
12 |
-# date - 32 bit value in big endian order - seconds since |
|
13 |
-# 00:00:00 GMT, Jan. 1, 1970 |
|
14 |
-# |
|
15 |
-# Enumerated values are stored in the user file with dictionary |
|
16 |
-# VALUE translations for easy administration. |
|
17 |
-# |
|
18 |
-# Example: |
|
19 |
-# |
|
20 |
-# ATTRIBUTE VALUE |
|
21 |
-# --------------- ----- |
|
22 |
-# Framed-Protocol = PPP |
|
23 |
-# 7 = 1 (integer encoding) |
|
24 |
-# |
|
25 |
- |
|
26 |
-# |
|
27 |
-# Following are the proper new names. Use these. |
|
28 |
-# |
|
29 |
-ATTRIBUTE User-Name 1 string |
|
30 |
-ATTRIBUTE Password 2 string |
|
31 |
-ATTRIBUTE CHAP-Password 3 string |
|
32 |
-ATTRIBUTE NAS-IP-Address 4 ipaddr |
|
33 |
-ATTRIBUTE NAS-Port-Id 5 integer |
|
34 |
-ATTRIBUTE Service-Type 6 integer |
|
35 |
-ATTRIBUTE Framed-Protocol 7 integer |
|
36 |
-ATTRIBUTE Framed-IP-Address 8 ipaddr |
|
37 |
-ATTRIBUTE Framed-IP-Netmask 9 ipaddr |
|
38 |
-ATTRIBUTE Framed-Routing 10 integer |
|
39 |
-ATTRIBUTE Filter-Id 11 string |
|
40 |
-ATTRIBUTE Framed-MTU 12 integer |
|
41 |
-ATTRIBUTE Framed-Compression 13 integer |
|
42 |
-ATTRIBUTE Login-IP-Host 14 ipaddr |
|
43 |
-ATTRIBUTE Login-Service 15 integer |
|
44 |
-ATTRIBUTE Login-TCP-Port 16 integer |
|
45 |
-ATTRIBUTE Reply-Message 18 string |
|
46 |
-ATTRIBUTE Callback-Number 19 string |
|
47 |
-ATTRIBUTE Callback-Id 20 string |
|
48 |
-ATTRIBUTE Framed-Route 22 string |
|
49 |
-ATTRIBUTE Framed-IPX-Network 23 ipaddr |
|
50 |
-ATTRIBUTE State 24 string |
|
51 |
-ATTRIBUTE Vendor-Specific 26 string |
|
52 |
-ATTRIBUTE Session-Timeout 27 integer |
|
53 |
-ATTRIBUTE Idle-Timeout 28 integer |
|
54 |
-ATTRIBUTE Termination-Action 29 integer |
|
55 |
-ATTRIBUTE Called-Station-Id 30 string |
|
56 |
-ATTRIBUTE Calling-Station-Id 31 string |
|
57 |
-ATTRIBUTE Acct-Status-Type 40 integer |
|
58 |
-ATTRIBUTE Acct-Delay-Time 41 integer |
|
59 |
-ATTRIBUTE Acct-Input-Octets 42 integer |
|
60 |
-ATTRIBUTE Acct-Output-Octets 43 integer |
|
61 |
-ATTRIBUTE Acct-Session-Id 44 string |
|
62 |
-ATTRIBUTE Acct-Authentic 45 integer |
|
63 |
-ATTRIBUTE Acct-Session-Time 46 integer |
|
64 |
-ATTRIBUTE Acct-Terminate-Cause 49 integer |
|
65 |
-ATTRIBUTE NAS-Port-Type 61 integer |
|
66 |
-ATTRIBUTE Port-Limit 62 integer |
|
67 |
-ATTRIBUTE Connect-Info 77 string |
|
68 |
- |
|
69 |
-# |
|
70 |
-# Experimental Non Protocol Attributes used by Cistron-Radiusd |
|
71 |
-# |
|
72 |
-ATTRIBUTE Huntgroup-Name 221 string |
|
73 |
-ATTRIBUTE User-Category 1029 string |
|
74 |
-ATTRIBUTE Group-Name 1030 string |
|
75 |
-ATTRIBUTE Simultaneous-Use 1034 integer |
|
76 |
-ATTRIBUTE Strip-User-Name 1035 integer |
|
77 |
-ATTRIBUTE Fall-Through 1036 integer |
|
78 |
-ATTRIBUTE Add-Port-To-IP-Address 1037 integer |
|
79 |
-ATTRIBUTE Exec-Program 1038 string |
|
80 |
-ATTRIBUTE Exec-Program-Wait 1039 string |
|
81 |
-ATTRIBUTE Hint 1040 string |
|
82 |
- |
|
83 |
-# |
|
84 |
-# Non-Protocol Attributes |
|
85 |
-# These attributes are used internally by the server |
|
86 |
-# |
|
87 |
-ATTRIBUTE Expiration 21 date |
|
88 |
-ATTRIBUTE Auth-Type 1000 integer |
|
89 |
-ATTRIBUTE Menu 1001 string |
|
90 |
-ATTRIBUTE Termination-Menu 1002 string |
|
91 |
-ATTRIBUTE Prefix 1003 string |
|
92 |
-ATTRIBUTE Suffix 1004 string |
|
93 |
-ATTRIBUTE Group 1005 string |
|
94 |
-ATTRIBUTE Crypt-Password 1006 string |
|
95 |
-ATTRIBUTE Connect-Rate 1007 integer |
|
96 |
- |
|
97 |
- |
|
98 |
-# |
|
99 |
-# Experiment SIP-specific attributes: |
|
100 |
-# These attributes are tied between client & server |
|
101 |
-# |
|
102 |
-ATTRIBUTE Sip-Method 101 integer |
|
103 |
-ATTRIBUTE Sip-Response-Code 102 integer |
|
104 |
-ATTRIBUTE Sip-CSeq 103 string |
|
105 |
-ATTRIBUTE Sip-To-Tag 104 string |
|
106 |
-ATTRIBUTE Sip-From-Tag 105 string |
|
107 |
-ATTRIBUTE Sip-Branch-ID 106 string |
|
108 |
-ATTRIBUTE Sip-Translated-Request-URI 107 string |
|
109 |
-ATTRIBUTE Sip-Source-IP-Address 108 ipaddr |
|
110 |
-ATTRIBUTE Sip-Source-Port 109 integer |
|
111 |
-ATTRIBUTE Sip-User-ID 110 string |
|
112 |
-ATTRIBUTE Sip-User-realm 111 string |
|
113 |
-ATTRIBUTE Sip-User-nonce 112 string |
|
114 |
-ATTRIBUTE Sip-User-method 113 string |
|
115 |
-ATTRIBUTE Sip-User-digest-uri 114 string |
|
116 |
-ATTRIBUTE Sip-User-nonce_count 115 string |
|
117 |
-ATTRIBUTE Sip-User-qop 116 string |
|
118 |
-ATTRIBUTE Sip-User-opaque 117 string |
|
119 |
-ATTRIBUTE Sip-User-response 118 string |
|
120 |
-ATTRIBUTE Sip_User-cnonce 119 string |
|
121 |
- |
|
122 |
- |
|
123 |
-ATTRIBUTE Digest-Response 206 string |
|
124 |
-ATTRIBUTE Digest-Attributes 207 string |
|
125 |
-ATTRIBUTE Digest-Realm 1063 string |
|
126 |
-ATTRIBUTE Digest-Nonce 1064 string |
|
127 |
-ATTRIBUTE Digest-Method 1065 string |
|
128 |
-ATTRIBUTE Digest-URI 1066 string |
|
129 |
-ATTRIBUTE Digest-QOP 1067 string |
|
130 |
-ATTRIBUTE Digest-Algorithm 1068 string |
|
131 |
-ATTRIBUTE Digest-Body-Digest 1069 string |
|
132 |
-ATTRIBUTE Digest-CNonce 1070 string |
|
133 |
-ATTRIBUTE Digest-Nonce-Count 1071 string |
|
134 |
-ATTRIBUTE Digest-User-Name 1072 string |
|
135 |
- |
|
136 |
- |
|
137 |
- |
|
138 |
-# |
|
139 |
-# Integer Translations |
|
140 |
-# |
|
141 |
- |
|
142 |
-# SIP types |
|
143 |
-VALUE Sip-Method Other 0 |
|
144 |
-VALUE Sip-Method Invite 1 |
|
145 |
-VALUE Sip-Method Cancel 2 |
|
146 |
-VALUE Sip-Method Ack 3 |
|
147 |
-VALUE Sip-Method Bye 4 |
|
148 |
- |
|
149 |
-VALUE Sip-Response-Code Other 0 |
|
150 |
-VALUE Sip-Response-Code Invite 1 |
|
151 |
-VALUE Sip-Response-Code Cancel 2 |
|
152 |
-VALUE Sip-Response-Code Ack 3 |
|
153 |
-VALUE Sip-Response-Code Bye 4 |
|
154 |
- |
|
155 |
- |
|
156 |
- |
|
157 |
- |
|
158 |
- |
|
159 |
-# User Types |
|
160 |
- |
|
161 |
-VALUE Service-Type Login-User 1 |
|
162 |
-VALUE Service-Type Framed-User 2 |
|
163 |
-VALUE Service-Type Callback-Login-User 3 |
|
164 |
-VALUE Service-Type Callback-Framed-User 4 |
|
165 |
-VALUE Service-Type Outbound-User 5 |
|
166 |
-VALUE Service-Type Administrative-User 6 |
|
167 |
-VALUE Service-Type NAS-Prompt-User 7 |
|
168 |
- |
|
169 |
-# Framed Protocols |
|
170 |
- |
|
171 |
-VALUE Framed-Protocol PPP 1 |
|
172 |
-VALUE Framed-Protocol SLIP 2 |
|
173 |
- |
|
174 |
-# Framed Routing Values |
|
175 |
- |
|
176 |
-VALUE Framed-Routing None 0 |
|
177 |
-VALUE Framed-Routing Broadcast 1 |
|
178 |
-VALUE Framed-Routing Listen 2 |
|
179 |
-VALUE Framed-Routing Broadcast-Listen 3 |
|
180 |
- |
|
181 |
-# Framed Compression Types |
|
182 |
- |
|
183 |
-VALUE Framed-Compression None 0 |
|
184 |
-VALUE Framed-Compression Van-Jacobson-TCP-IP 1 |
|
185 |
- |
|
186 |
-# Login Services |
|
187 |
- |
|
188 |
-VALUE Login-Service Telnet 0 |
|
189 |
-VALUE Login-Service Rlogin 1 |
|
190 |
-VALUE Login-Service TCP-Clear 2 |
|
191 |
-VALUE Login-Service PortMaster 3 |
|
192 |
- |
|
193 |
-# Status Types |
|
194 |
- |
|
195 |
-VALUE Acct-Status-Type Start 1 |
|
196 |
-VALUE Acct-Status-Type Stop 2 |
|
197 |
-VALUE Acct-Status-Type Accounting-On 7 |
|
198 |
-VALUE Acct-Status-Type Accounting-Off 8 |
|
199 |
- |
|
200 |
-# Authentication Types |
|
201 |
- |
|
202 |
-VALUE Acct-Authentic RADIUS 1 |
|
203 |
-VALUE Acct-Authentic Local 2 |
|
204 |
-VALUE Acct-Authentic PowerLink128 100 |
|
205 |
- |
|
206 |
-# Termination Options |
|
207 |
- |
|
208 |
-VALUE Termination-Action Default 0 |
|
209 |
-VALUE Termination-Action RADIUS-Request 1 |
|
210 |
- |
|
211 |
-# NAS Port Types, available in 3.3.1 and later |
|
212 |
- |
|
213 |
-VALUE NAS-Port-Type Async 0 |
|
214 |
-VALUE NAS-Port-Type Sync 1 |
|
215 |
-VALUE NAS-Port-Type ISDN 2 |
|
216 |
-VALUE NAS-Port-Type ISDN-V120 3 |
|
217 |
-VALUE NAS-Port-Type ISDN-V110 4 |
|
218 |
- |
|
219 |
-# Acct Terminate Causes, available in 3.3.2 and later |
|
220 |
- |
|
221 |
-VALUE Acct-Terminate-Cause User-Request 1 |
|
222 |
-VALUE Acct-Terminate-Cause Lost-Carrier 2 |
|
223 |
-VALUE Acct-Terminate-Cause Lost-Service 3 |
|
224 |
-VALUE Acct-Terminate-Cause Idle-Timeout 4 |
|
225 |
-VALUE Acct-Terminate-Cause Session-Timeout 5 |
|
226 |
-VALUE Acct-Terminate-Cause Admin-Reset 6 |
|
227 |
-VALUE Acct-Terminate-Cause Admin-Reboot 7 |
|
228 |
-VALUE Acct-Terminate-Cause Port-Error 8 |
|
229 |
-VALUE Acct-Terminate-Cause NAS-Error 9 |
|
230 |
-VALUE Acct-Terminate-Cause NAS-Request 10 |
|
231 |
-VALUE Acct-Terminate-Cause NAS-Reboot 11 |
|
232 |
-VALUE Acct-Terminate-Cause Port-Unneeded 12 |
|
233 |
-VALUE Acct-Terminate-Cause Port-Preempted 13 |
|
234 |
-VALUE Acct-Terminate-Cause Port-Suspended 14 |
|
235 |
-VALUE Acct-Terminate-Cause Service-Unavailable 15 |
|
236 |
-VALUE Acct-Terminate-Cause Callback 16 |
|
237 |
-VALUE Acct-Terminate-Cause User-Error 17 |
|
238 |
-VALUE Acct-Terminate-Cause Host-Request 18 |
|
239 |
- |
|
240 |
-# |
|
241 |
-# Non-Protocol Integer Translations |
|
242 |
-# |
|
243 |
- |
|
244 |
-VALUE Auth-Type Local 0 |
|
245 |
-VALUE Auth-Type System 1 |
|
246 |
-VALUE Auth-Type SecurID 2 |
|
247 |
-VALUE Auth-Type Crypt-Local 3 |
|
248 |
-VALUE Auth-Type Reject 4 |
|
249 |
- |
|
250 |
-# |
|
251 |
-# Cistron extensions |
|
252 |
-# |
|
253 |
-VALUE Auth-Type Pam 253 |
|
254 |
-VALUE Auth-Type None 254 |
|
255 |
- |
|
256 |
-# |
|
257 |
-# Experimental Non-Protocol Integer Translations for Cistron-Radiusd |
|
258 |
-# |
|
259 |
-VALUE Fall-Through No 0 |
|
260 |
-VALUE Fall-Through Yes 1 |
|
261 |
-VALUE Add-Port-To-IP-Address No 0 |
|
262 |
-VALUE Add-Port-To-IP-Address Yes 1 |
|
263 |
- |
|
264 |
-# |
|
265 |
-# Configuration Values |
|
266 |
-# uncomment these two lines to turn account expiration on |
|
267 |
-# |
|
268 |
- |
|
269 |
-#VALUE Server-Config Password-Expiration 30 |
|
270 |
-#VALUE Server-Config Password-Warning 5 |
|
271 |
- |