root/trunk/config/bwbuild/jboss-postgresql/carddav.options.xml

Revision 2938 (checked in by douglm, 3 years ago)

Skip a couple of jars in jbossService.xml

Add a carddav datasource definition to configurations and update properties appropriately

Fix up prefixing in caldav test so that it can be used to test carddav. Add some carddav tests

Comment out the javadocs group definitions for calendarapi - it was breaking.

Line 
1 <!-- This provides run time options for the CardDAV server.
2   -->
3 <bedework-options>
4   <org>
5     <bedework>
6       <global>
7         <version>3.6</version>
8
9         <dirhandlers>
10           <!-- handle the principal hierarchy.
11                This could be a read-only interface if we don't intend to allow
12                modification of the enterprise directory.
13
14                However, we may need to merge in subsidiary information to handle
15                principal properties. That may mean maintaining a shadow
16                principal hierarchy in the local server.
17                
18                Each element name below must be unique.
19             -->
20           <principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" >
21             <pathPrefix>/principals</pathPrefix>
22             <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className>
23
24             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory>
25             <providerUrl>ldap://localhost:10389/</providerUrl>
26             <baseDn>dc=bedework, dc=org</baseDn>
27
28             <queryLimit>1000</queryLimit>
29
30             <!-- We need to get operational attributes from the directory.
31                This requires us to explicitly name all attributes on fetch.
32                This element allows us to name EXTRA attributes from the default
33                list provided by the implementation.
34               -->
35             <attrIds></attrIds>
36
37             <addressbookObjectClass>organizationalUnit</addressbookObjectClass>
38             <addressbookIdAttr>ou</addressbookIdAttr>
39
40             <authDn>uid=admin,ou=system</authDn>
41             <authPw>secret</authPw>
42
43             <debug>true</debug>
44           </principal-dirHandler>
45
46           <user-principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" >
47             <pathPrefix>/principals/users</pathPrefix>
48             <addressBook>true</addressBook>
49
50             <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className>
51
52             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory>
53             <providerUrl>ldap://localhost:10389/</providerUrl>
54             <baseDn>ou=accounts,dc=bedework,dc=org</baseDn>
55
56             <queryLimit>1000</queryLimit>
57
58             <attrIds></attrIds>
59
60             <cardKind>individual</cardKind>
61
62             <addressbookObjectClass>organizationalUnit</addressbookObjectClass>
63             <addressbookIdAttr>ou</addressbookIdAttr>
64
65             <addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass>
66             <addressbookEntryIdAttr>uid</addressbookEntryIdAttr>
67
68             <principalIdAttr>uid</principalIdAttr>
69
70             <authDn>uid=admin,ou=system</authDn>
71             <authPw>secret</authPw>
72
73             <debug>true</debug>
74           </user-principal-dirHandler>
75
76           <group-principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" >
77             <pathPrefix>/principals/groups</pathPrefix>
78             <addressBook>true</addressBook>
79
80             <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className>
81
82             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory>
83             <providerUrl>ldap://localhost:10389/</providerUrl>
84
85             <baseDn>ou=groups,dc=bedework,dc=org</baseDn>
86
87             <queryLimit>1000</queryLimit>
88
89             <attrIds></attrIds>
90
91             <cardKind>group</cardKind>
92
93             <addressbookObjectClass>organizationalUnit</addressbookObjectClass>
94             <addressbookIdAttr>ou</addressbookIdAttr>
95
96             <addressbookEntryObjectClass>groupOfUniqueNames</addressbookEntryObjectClass>
97             <addressbookEntryIdAttr>cn</addressbookEntryIdAttr>
98
99             <principalIdAttr>cn</principalIdAttr>
100
101             <authDn>uid=admin,ou=system</authDn>
102             <authPw>secret</authPw>
103
104             <debug>true</debug>
105           </group-principal-dirHandler>
106          
107           <!-- handle the user address book hierarchy -->
108          
109           <user-dirHandler classname="org.bedework.carddav.util.DbDirHandlerConfig" >
110             <pathPrefix>/user</pathPrefix>
111            
112             <className>org.bedework.carddav.server.dirHandlers.db.DbAddrBookDirHandler</className>
113
114             <queryLimit>1000</queryLimit> <!-- unimplemented -->
115          
116             <!-- This is the access set at the root. I'll do this as XML soon -->
117             <rootAccess>WONyA WANyFyS </rootAccess>
118          
119             <!-- This is the owner of the user root and user home -->
120             <rootOwner>/principals/users/root</rootOwner>
121            
122             <debug>true</debug>
123           </user-dirHandler>
124
125           <!-- handle the user address book hierarchy
126                How it might be done with ldap
127           <user-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" >
128             <pathPrefix>/user</pathPrefix>
129             <className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className>
130
131             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory>
132             <providerUrl>ldap://localhost:10389/</providerUrl>
133
134             <baseDn>ou=users,ou=addrbooks,dc=bedework,dc=org</baseDn>
135
136             <queryLimit>1000</queryLimit>
137
138             <attrIds></attrIds>
139
140             <folderObjectClass>organizationalUnit</folderObjectClass>
141             <folderIdAttr>ou</folderIdAttr>
142
143             <addressbookObjectClass>addressBook</addressbookObjectClass>
144             <addressbookIdAttr>ou</addressbookIdAttr>
145
146             <addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass>
147             <addressbookEntryIdAttr>cn</addressbookEntryIdAttr>
148
149             <authDn>uid=admin,ou=system</authDn>
150             <authPw>secret</authPw>
151             <debug>true</debug>
152           </user-dirHandler>
153           -->
154  
155           <public-locations-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" >
156             <pathPrefix>/public/locations</pathPrefix>
157
158             <className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className>
159
160             <!-- manufacture an owner for public entities -->
161             <ownerHref>/principals/users/admin</ownerHref>
162
163             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory>
164             <providerUrl>ldap://localhost:10389/</providerUrl>
165             <baseDn>ou=locations,dc=bedework,dc=org</baseDn>
166
167             <queryLimit>1000</queryLimit>
168
169             <attrIds></attrIds>
170
171             <cardKind>location</cardKind>
172
173             <addressbookObjectClass>organizationalUnit</addressbookObjectClass>
174             <addressbookIdAttr>ou</addressbookIdAttr>
175
176             <addressbookEntryObjectClass>CalendarResource</addressbookEntryObjectClass>
177             <addressbookEntryIdAttr>cn</addressbookEntryIdAttr>
178
179             <principalIdAttr>calcaladruri</principalIdAttr>
180
181             <authDn>uid=admin,ou=system</authDn>
182             <authPw>secret</authPw>
183
184             <debug>true</debug>
185           </public-locations-dirHandler>
186
187           <!-- handle the public (enterprise) address book hierarchy -->
188           <public-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" >
189             <pathPrefix>/public</pathPrefix>
190             <className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className>
191
192             <!-- manufacture an owner for public entities -->
193             <ownerHref>/principals/users/admin</ownerHref>
194
195             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory>
196             <providerUrl>ldap://localhost:10389/</providerUrl>
197
198             <baseDn>ou=public,dc=bedework,dc=org</baseDn>
199
200             <queryLimit>1000</queryLimit>
201
202             <attrIds></attrIds>
203
204             <folderObjectClass>organizationalUnit</folderObjectClass>
205             <addressbookObjectClass>addressBook</addressbookObjectClass>
206             <addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass>
207
208             <folderIdAttr>ou</folderIdAttr>
209             <addressbookIdAttr>ou</addressbookIdAttr>
210             <addressbookEntryIdAttr>cn</addressbookEntryIdAttr>
211
212             <authDn>uid=admin,ou=system</authDn>
213             <authPw>secret</authPw>
214             <debug>true</debug>
215           </public-dirHandler>
216         </dirhandlers>
217       </global>
218
219       <app>
220         <usercarddav classname="org.bedework.carddav.util.CardDAVConfig" >
221           <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl>
222          
223           <webaddrServiceURI>/find</webaddrServiceURI>
224           <webaddrServicePropertiesList>fn,email,note,org</webaddrServicePropertiesList>
225           <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook>
226
227           <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed>
228
229           <defaultAddressbook>addressbook</defaultAddressbook>
230
231           <!-- This will act as the root for the file system -->
232           <addressBookHandlerPrefix>/user</addressBookHandlerPrefix>
233          
234           <!-- Needed for access calculations -->
235           <userHomeRoot>/user</userHomeRoot>
236
237           <principalRoot>/principals</principalRoot>
238           <userPrincipalRoot>/principals/users</userPrincipalRoot>
239           <groupPrincipalRoot>/principals/groups</groupPrincipalRoot>
240           <resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot>
241           <venuePrincipalRoot>/principals/locations</venuePrincipalRoot>
242           <ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot>
243           <hostPrincipalRoot>/principals/hosts</hostPrincipalRoot>
244         </usercarddav>
245
246         <pubcarddav classname="org.bedework.carddav.util.CardDAVConfig" >
247           <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl>
248          
249           <webaddrServiceURI>/find</webaddrServiceURI>
250           <webaddrServicePropertiesList>fn,note,org</webaddrServicePropertiesList>
251           <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook>
252
253           <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed>
254
255           <defaultAddressbook>addressbook</defaultAddressbook>
256
257           <addressBookHandlerPrefix>/public</addressBookHandlerPrefix>
258          
259           <!-- Needed for access calculations -->
260           <userHomeRoot>/user</userHomeRoot>
261
262           <principalRoot>/principals</principalRoot>
263           <userPrincipalRoot>/principals/users</userPrincipalRoot>
264           <groupPrincipalRoot>/principals/groups</groupPrincipalRoot>
265           <resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot>
266           <venuePrincipalRoot>/principals/locations</venuePrincipalRoot>
267           <ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot>
268           <hostPrincipalRoot>/principals/hosts</hostPrincipalRoot>
269         </pubcarddav>
270       </app>
271     </bedework>
272   </org>
273 </bedework-options>
Note: See TracBrowser for help on using the browser.