root/trunk/config/bwbuild/default/cal.options.xml

Revision 2023 (checked in by douglm, 4 years ago)

Many changes to get public client working again.

As many entities are now owned by the calendar suite owner we require that we masquerade as that user - authenticated.

Added code to use the maxprivs filter to ensure that user only has read access.

Also tidied up the userauth stuff and removed a load of unused code.

  • Property svn:eol-style set to LF
Line 
1 <!-- This provides run time options for each of the configured applications.
2   -->
3 <bedework-options>
4   <org>
5     <bedework>
6       <global>
7         <version>3.5</version>
8
9         <!-- This property is how the running system finds the system settings.
10              In theory we could have multiple settings with different names
11          -->
12         <systemName>bedework</systemName>
13
14         <!-- This is used to prefix administrative group names to distinguish
15              them from user group names. -->
16         <adminGroupsIdPrefix>agrp_</adminGroupsIdPrefix>
17
18         <!-- Uncomment this and set the value to one of the supported portals
19              Values that will result in something happening are
20              liferay5
21              liferay4
22              uportal2
23         <portalPlatform>your-portal</portalPlatform>
24          -->
25
26         <!-- uris to cross link apps - of dubious usefulness -->
27         <publicAdminUri>/caladmin</publicAdminUri>
28         <publicCalendarUri>/cal</publicCalendarUri>
29         <personalCalendarUri>/ucal</personalCalendarUri>
30
31         <!-- CardDAV server locations -->
32         <publicCardDAVUri>http://localhost:8080/carddav</publicCardDAVUri>
33         <personalCardDAVUri>http://localhost:8080/ucarddav</personalCardDAVUri>
34
35         <!-- Timezone server locations -->
36         <timezonesUri>http://localhost:8080/tzsvr</timezonesUri>
37
38         <module>
39           <!-- A dummy module with no directory. -->
40           <dir-config classname="org.bedework.calfacade.configs.DirConfigProperties">
41             <principalRoot>/principals</principalRoot>
42             <userPrincipalRoot>/principals/users</userPrincipalRoot>
43             <groupPrincipalRoot>/principals/groups</groupPrincipalRoot>
44             <resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot>
45             <venuePrincipalRoot>/principals/locations</venuePrincipalRoot>
46             <ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot>
47             <hostPrincipalRoot>/principals/hosts</hostPrincipalRoot>
48
49             <!-- List domains at your site separated by commas.
50                     A single leading wildcard "*" is allowed.
51                     If there is a single domain with no wildcard it wil be stripped from
52                     user accounts as they are entered and added as they are turned
53                     back into CUAs.
54                     Wildcarded or multiple domains will cause retention of the domain
55                     (partially untested feature) -->
56             <domains>mysite.edu</domains>
57
58             <!-- defaultDomain can be left unspecified for no default or a single
59                    exactly specified domain  -->
60             <defaultDomain>mysite.edu</defaultDomain>
61
62             <debug>true</debug>
63           </dir-config>
64
65           <!-- An example of how we might configure an ldap directory module. -->
66           <user-ldap-group classname="org.bedework.calfacade.configs.LdapConfigProperties">
67             <principalRoot>/principals</principalRoot>
68             <userPrincipalRoot>/principals/users</userPrincipalRoot>
69             <groupPrincipalRoot>/principals/groups</groupPrincipalRoot>
70             <resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot>
71             <venuePrincipalRoot>/principals/locations</venuePrincipalRoot>
72             <ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot>
73             <hostPrincipalRoot>/principals/hosts</hostPrincipalRoot>
74
75             <domains>mysite.edu</domains>
76             <defaultDomain>mysite.edu</defaultDomain>
77
78             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory>
79             <providerUrl>ldap://localhost/</providerUrl>
80             <groupContextDn>ou=groups, dc=bedework, dc=org</groupContextDn>
81             <groupMemberAttr>uniqueMember</groupMemberAttr>
82             <userDnPrefix>uid=</userDnPrefix>
83             <userDnSuffix>,ou=accounts, dc=bedework, dc=org</userDnSuffix>
84             <groupDnPrefix>cn=</groupDnPrefix>
85             <groupDnSuffix>,ou=groups, dc=bedework, dc=org</groupDnSuffix>
86             <debug>true</debug>
87           </user-ldap-group>
88
89           <testmail classname="org.bedework.mail.MailConfigProperties">
90             <protocol>smtp</protocol>
91             <protocolClass>com.sun.mail.smtp.SMTPTransport</protocolClass>
92             <serverIp>localhost</serverIp>
93             <from>calendar.myplace.edu</from>
94             <subject>Message from demo calendar server</subject>
95             <disabled>false</disabled>
96           </testmail>
97
98           <dummymail classname="org.bedework.mail.MailConfigProperties">
99             <disabled>false</disabled>
100           </dummymail>
101
102           <default-pwencrypt classname="org.bedework.calfacade.security.DefaultPwEncryptionConfig">
103             <privKeys>@QUICKSTART_DIR@/data/bedework/privkeys</privKeys>
104             <pubKeys>@QUICKSTART_DIR@/data/bedework/pubkeys</pubKeys>
105
106             <debug>true</debug>
107             <verbose>true</verbose>
108           </default-pwencrypt>
109         </module>
110       </global>
111
112       <syspars classname="org.bedework.calfacade.BwSystem">
113         <!-- name must match the global system name -->
114         <name>bedework</name>
115         <tzid>America/New_York</tzid>
116         <systemid>demobedework@mysite.edu</systemid>
117
118         <publicCalendarRoot>public</publicCalendarRoot>
119         <userCalendarRoot>user</userCalendarRoot>
120         <userDefaultCalendar>calendar</userDefaultCalendar>
121         <defaultTrashCalendar>Trash</defaultTrashCalendar>
122         <userInbox>Inbox</userInbox>
123         <userOutbox>Outbox</userOutbox>
124         <deletedCalendar>Deleted</deletedCalendar>
125         <busyCalendar>Busy</busyCalendar>
126
127         <defaultUserViewName>All</defaultUserViewName>
128         <defaultUserHour24>true</defaultUserHour24>
129
130         <publicUser>public-user</publicUser>
131
132         <httpConnectionsPerUser>10</httpConnectionsPerUser>
133         <httpConnectionsPerHost>50</httpConnectionsPerHost>
134         <httpConnections>200</httpConnections>
135
136         <!-- size limits -->
137         <maxPublicDescriptionLength>500</maxPublicDescriptionLength>
138         <maxUserDescriptionLength>5000</maxUserDescriptionLength>
139         <maxUserEntitySize>100000</maxUserEntitySize>
140         <defaultUserQuota>10000000</defaultUserQuota> <!-- 10 Meg OK? -->
141
142         <!-- Max number of instances per recurring event -->
143         <maxInstances>1000</maxInstances>
144
145         <!-- Max number of years per recurring event -->
146         <maxYears>50</maxYears>
147
148         <userauthClass>org.bedework.calsvc.directory.UserAuthUWDbImpl</userauthClass>
149         <mailerClass>org.bedework.mail.DummyMailer</mailerClass>
150         <admingroupsClass>org.bedework.calsvc.directory.AdminGroupsDbImpl</admingroupsClass>
151         <!--
152         <usergroupsClass>org.bedework.calsvc.directory.UserGroupsLdapImpl</usergroupsClass>
153         -->
154         <usergroupsClass>org.bedework.calsvc.directory.GroupsDbImpl</usergroupsClass>
155
156         <directoryBrowsingDisallowed>true</directoryBrowsingDisallowed>
157
158         <indexRoot>lucene/indexroot</indexRoot>
159
160         <rootUsers>caladmin</rootUsers>
161       </syspars>
162
163       <app>
164         <!-- ==================================================================
165                           Timezones server
166              ================================================================== -->
167         <tzsvr classname="org.bedework.calfacade.configs.ConfigCommon">
168           <appType>tzsvr</appType>
169           <publicAdmin>false</publicAdmin>
170           <guestMode>true</guestMode>
171         </tzsvr>
172
173         <!-- ==================================================================
174                           Config web client
175              ================================================================== -->
176         <bwconfig classname="org.bedework.calfacade.configs.ConfigCommon">
177           <appType>webconfig</appType>
178           <publicAdmin>false</publicAdmin>
179           <guestMode>false</guestMode>
180         </bwconfig>
181
182         <!-- ==================================================================
183                           Admin web client CalAdmin
184              ================================================================== -->
185         <CalAdmin classname="org.bedework.calfacade.configs.AdminConfig">
186           <autoCreateContacts>false</autoCreateContacts>
187           <autoDeleteContacts>false</autoDeleteContacts>
188           <autoCreateLocations>false</autoCreateLocations>
189           <autoDeleteLocations>false</autoDeleteLocations>
190           <allowEditAllCategories>false</allowEditAllCategories>
191           <allowEditAllLocations>false</allowEditAllLocations>
192           <allowEditAllContacts>false</allowEditAllContacts>
193           <categoryOptional>true</categoryOptional>
194
195           <noGroupAllowed>false</noGroupAllowed>
196
197           <appType>webadmin</appType>
198           <publicAdmin>true</publicAdmin>
199           <guestMode>false</guestMode>
200
201           <!-- This will become a system configuration in time -->
202           <submissionRoot>/public/unbrowsable/submissions</submissionRoot>
203
204           <!-- Default value for 24 hour mode -->
205           <hour24>true</hour24>
206
207           <!-- Default value for minute increments -->
208           <minIncrement>5</minIncrement>
209
210           <logPrefix>PubEventsAdmin</logPrefix>
211
212           <appRoot>http://localhost:8080/caladminrsrc</appRoot>
213         </CalAdmin>
214
215         <!-- ==================================================================
216                           Public event submission web client EventSubmit
217              ================================================================== -->
218         <EventSubmit classname="org.bedework.calfacade.configs.ClientConfig">
219           <autoCreateContacts>false</autoCreateContacts>
220           <autoDeleteContacts>false</autoDeleteContacts>
221           <autoCreateLocations>false</autoCreateLocations>
222           <autoDeleteLocations>false</autoDeleteLocations>
223
224           <appType>websubmit</appType>
225           <publicAdmin>false</publicAdmin>
226           <guestMode>false</guestMode>
227
228           <!-- This will become a system configuration in time -->
229           <submissionRoot>/public/unbrowsable/submissions</submissionRoot>
230
231           <!-- Default value for 24 hour mode -->
232           <hour24>true</hour24>
233
234           <!-- Default value for minute increments -->
235           <minIncrement>5</minIncrement>
236
237           <showYearData>false</showYearData>
238
239           <logPrefix>EventSubmit</logPrefix>
240
241           <appRoot>http://localhost:8080/eventsubmitrsrc</appRoot>
242
243           <refreshAction>setup.do</refreshAction>
244           <refreshInterval>900</refreshInterval>
245         </EventSubmit>
246
247         <!-- ==================================================================
248                           Public web client Events
249              ================================================================== -->
250         <Events classname="org.bedework.calfacade.configs.ClientConfig">
251           <cachingOn>true</cachingOn>
252           <cachePrefix>bwpubevents</cachePrefix>
253
254           <autoCreateContacts>false</autoCreateContacts>
255           <autoDeleteContacts>false</autoDeleteContacts>
256           <autoCreateLocations>false</autoCreateLocations>
257           <autoDeleteLocations>false</autoDeleteLocations>
258
259           <appType>webpublic</appType>
260           <publicAdmin>false</publicAdmin>
261           <guestMode>true</guestMode>
262
263           <!-- Default value for 24 hour mode -->
264           <hour24>true</hour24>
265
266           <!-- Default value for minute increments -->
267           <minIncrement>5</minIncrement>
268
269           <showYearData>false</showYearData>
270
271           <logPrefix>PubEvents</logPrefix>
272
273           <appRoot>http://localhost:8080/calrsrc</appRoot>
274
275           <refreshAction>setup.do</refreshAction>
276           <refreshInterval>300</refreshInterval>
277
278           <calSuite>MainCampus</calSuite>
279         </Events>
280
281         <!-- ==================================================================
282                           Demo departmental Public web client SoEDept
283              ================================================================== -->
284         <SoEDept classname="org.bedework.calfacade.configs.ClientConfig">
285           <cachingOn>true</cachingOn>
286           <cachePrefix>bwpubevents</cachePrefix>
287
288           <autoCreateContacts>false</autoCreateContacts>
289           <autoDeleteContacts>false</autoDeleteContacts>
290           <autoCreateLocations>false</autoCreateLocations>
291           <autoDeleteLocations>false</autoDeleteLocations>
292
293           <appType>webpublic</appType>
294           <publicAdmin>false</publicAdmin>
295           <guestMode>true</guestMode>
296
297           <!-- Default value for 24 hour mode -->
298           <hour24>true</hour24>
299
300           <!-- Default value for minute increments -->
301           <minIncrement>5</minIncrement>
302
303           <showYearData>false</showYearData>
304
305           <logPrefix>SoEDept</logPrefix>
306
307           <appRoot>http://localhost:8080/calrsrc</appRoot>
308
309           <refreshAction>setup.do</refreshAction>
310           <refreshInterval>300</refreshInterval>
311
312           <calSuite>SoEDepartmental</calSuite>
313         </SoEDept>
314
315         <!-- ==================================================================
316                           User web client UserCal
317              ================================================================== -->
318         <UserCal classname="org.bedework.calfacade.configs.ClientConfig">
319           <autoCreateContacts>false</autoCreateContacts>
320           <autoDeleteContacts>false</autoDeleteContacts>
321           <autoCreateLocations>false</autoCreateLocations>
322           <autoDeleteLocations>false</autoDeleteLocations>
323
324           <appType>webuser</appType>
325           <publicAdmin>false</publicAdmin>
326           <guestMode>false</guestMode>
327
328           <!-- Default value for 24 hour mode -->
329           <hour24>true</hour24>
330
331           <!-- Default value for minute increments -->
332           <minIncrement>5</minIncrement>
333
334           <showYearData>false</showYearData>
335
336           <logPrefix>PersonalCalendar</logPrefix>
337
338           <appRoot>http://localhost:8080/ucalrsrc</appRoot>
339
340           <refreshAction>setup.do</refreshAction>
341           <refreshInterval>300</refreshInterval>
342         </UserCal>
343
344         <!-- ==================================================================
345                           User CalDAV server UserCalDAV
346              ================================================================== -->
347         <Usercaldav classname="org.bedework.calfacade.configs.CalDAVConfig">
348           <appType>usercaldav</appType>
349           <publicAdmin>false</publicAdmin>
350           <guestMode>false</guestMode>
351
352           <sysintfImpl>org.bedework.caldav.bwserver.BwSysIntfImpl</sysintfImpl>
353
354           <!-- Comment out or delete for no real time server to server service
355                Currently under development and may present a security risk in
356                production systems -->
357           <realTimeServiceURI>/rtsvc</realTimeServiceURI>
358
359           <!-- Comment out or delete for no freebusy url service -->
360           <fburlServiceURI>/fbsvc</fburlServiceURI>
361
362           <!-- Comment out or delete for no web calendar service -->
363           <webcalServiceURI>/webcal</webcalServiceURI>
364         </Usercaldav>
365
366         <!-- ==================================================================
367                           Public (unauthenticated) CalDAV server PublicCalDAV
368              ================================================================== -->
369         <Pubcaldav classname="org.bedework.calfacade.configs.CalDAVConfig">
370           <appType>publiccaldav</appType>
371           <publicAdmin>false</publicAdmin>
372           <guestMode>true</guestMode>
373
374           <sysintfImpl>org.bedework.caldav.bwserver.BwSysIntfImpl</sysintfImpl>
375
376           <!-- Comment out or delete for no real time server to server service
377                Currently under development and may present a security risk in
378                production systems -->
379           <realTimeServiceURI>/rtsvc</realTimeServiceURI>
380
381           <!-- Comment out or delete for no freebusy url service -->
382           <fburlServiceURI>/fbsvc</fburlServiceURI>
383
384           <!-- Comment out or delete for no web calendar service -->
385           <webcalServiceURI>/webcal</webcalServiceURI>
386         </Pubcaldav>
387
388         <!-- ==================================================================
389                           CalDAV test suite
390              ================================================================== -->
391         <caldavTest classname="org.bedework.calfacade.configs.ConfigCommon">
392           <appType>caldavTest</appType>
393           <publicAdmin>false</publicAdmin>
394           <guestMode>false</guestMode>
395         </caldavTest>
396
397         <!-- ==================================================================
398                           bedework test suite
399              ================================================================== -->
400         <test classname="org.bedework.calfacade.configs.ConfigCommon">
401           <appType>testsuite</appType>
402           <publicAdmin>false</publicAdmin>
403           <guestMode>false</guestMode>
404         </test>
405
406         <!-- ==================================================================
407                           Dump restore program dumpres
408              ================================================================== -->
409         <dumpres classname="org.bedework.calfacade.configs.DumpRestoreConfig">
410           <debug>true</debug>
411           <appType>dumprestore</appType>
412           <guestMode>true</guestMode>
413           <debugEntity>false</debugEntity>
414           <superGroupName>campusAdminGroups</superGroupName>
415           <defaultPublicCalPath>/public/Other Events/Other</defaultPublicCalPath>
416         </dumpres>
417       </app>
418     </bedework>
419   </org>
420 </bedework-options>
421
Note: See TracBrowser for help on using the browser.