root/trunk/config/bwbuild/liferay5/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.

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