| 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 |
<!-- The cardPathPrefix is used to manufacture a path to a card for |
|---|
| 51 |
the principal. If it is set we take the path |
|---|
| 52 |
|
|---|
| 53 |
<principal-root>/<account> |
|---|
| 54 |
|
|---|
| 55 |
and transform it to |
|---|
| 56 |
|
|---|
| 57 |
<cardPathPrefix>/<account>.vcf |
|---|
| 58 |
|
|---|
| 59 |
If it is not set we try the cardPathPrefixes supplied globally. |
|---|
| 60 |
If they are not supplied we don't give any path. The client will |
|---|
| 61 |
have to fall back to a query. |
|---|
| 62 |
--> |
|---|
| 63 |
<cardPathPrefix>/public/people</cardPathPrefix> |
|---|
| 64 |
|
|---|
| 65 |
<cardPathPrefixes>/public/people,loc_:/public/locations</cardPathPrefixes> |
|---|
| 66 |
|
|---|
| 67 |
<className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> |
|---|
| 68 |
|
|---|
| 69 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 70 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 71 |
<baseDn>ou=accounts,dc=bedework,dc=org</baseDn> |
|---|
| 72 |
|
|---|
| 73 |
<queryLimit>1000</queryLimit> |
|---|
| 74 |
|
|---|
| 75 |
<attrIds></attrIds> |
|---|
| 76 |
|
|---|
| 77 |
<cardKind>individual</cardKind> |
|---|
| 78 |
|
|---|
| 79 |
<addressbookObjectClass>organizationalUnit</addressbookObjectClass> |
|---|
| 80 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 81 |
|
|---|
| 82 |
<addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass> |
|---|
| 83 |
<addressbookEntryIdAttr>uid</addressbookEntryIdAttr> |
|---|
| 84 |
|
|---|
| 85 |
<principalIdAttr>uid</principalIdAttr> |
|---|
| 86 |
|
|---|
| 87 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 88 |
<authPw>secret</authPw> |
|---|
| 89 |
|
|---|
| 90 |
<debug>true</debug> |
|---|
| 91 |
</user-principal-dirHandler> |
|---|
| 92 |
|
|---|
| 93 |
<group-principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 94 |
<pathPrefix>/principals/groups</pathPrefix> |
|---|
| 95 |
<addressBook>true</addressBook> |
|---|
| 96 |
|
|---|
| 97 |
<className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> |
|---|
| 98 |
|
|---|
| 99 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 100 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 101 |
|
|---|
| 102 |
<baseDn>ou=groups,dc=bedework,dc=org</baseDn> |
|---|
| 103 |
|
|---|
| 104 |
<queryLimit>1000</queryLimit> |
|---|
| 105 |
|
|---|
| 106 |
<attrIds></attrIds> |
|---|
| 107 |
|
|---|
| 108 |
<cardKind>group</cardKind> |
|---|
| 109 |
|
|---|
| 110 |
<addressbookObjectClass>organizationalUnit</addressbookObjectClass> |
|---|
| 111 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 112 |
|
|---|
| 113 |
<addressbookEntryObjectClass>groupOfUniqueNames</addressbookEntryObjectClass> |
|---|
| 114 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 115 |
|
|---|
| 116 |
<principalIdAttr>cn</principalIdAttr> |
|---|
| 117 |
|
|---|
| 118 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 119 |
<authPw>secret</authPw> |
|---|
| 120 |
|
|---|
| 121 |
<debug>true</debug> |
|---|
| 122 |
</group-principal-dirHandler> |
|---|
| 123 |
|
|---|
| 124 |
<location-principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 125 |
<pathPrefix>/principals/locations</pathPrefix> |
|---|
| 126 |
<addressBook>true</addressBook> |
|---|
| 127 |
<cardPathPrefix>/public/locations</cardPathPrefix> |
|---|
| 128 |
|
|---|
| 129 |
<className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> |
|---|
| 130 |
|
|---|
| 131 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 132 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 133 |
|
|---|
| 134 |
<baseDn>ou=locations,dc=bedework,dc=org</baseDn> |
|---|
| 135 |
|
|---|
| 136 |
<queryLimit>1000</queryLimit> |
|---|
| 137 |
|
|---|
| 138 |
<attrIds></attrIds> |
|---|
| 139 |
|
|---|
| 140 |
<cardKind>location</cardKind> |
|---|
| 141 |
|
|---|
| 142 |
<addressbookObjectClass>organizationalUnit</addressbookObjectClass> |
|---|
| 143 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 144 |
|
|---|
| 145 |
<addressbookEntryObjectClass>groupOfUniqueNames</addressbookEntryObjectClass> |
|---|
| 146 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 147 |
|
|---|
| 148 |
<principalIdAttr>cn</principalIdAttr> |
|---|
| 149 |
|
|---|
| 150 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 151 |
<authPw>secret</authPw> |
|---|
| 152 |
|
|---|
| 153 |
<debug>true</debug> |
|---|
| 154 |
</location-principal-dirHandler> |
|---|
| 155 |
|
|---|
| 156 |
<!-- handle the public (enterprise) people address book hierarchy --> |
|---|
| 157 |
<public-people-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 158 |
<pathPrefix>/public/people</pathPrefix> |
|---|
| 159 |
|
|---|
| 160 |
<className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className> |
|---|
| 161 |
|
|---|
| 162 |
<!-- manufacture an owner for public entities --> |
|---|
| 163 |
<ownerHref>/principals/users/admin</ownerHref> |
|---|
| 164 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 165 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 166 |
<baseDn>ou=people,ou=public,dc=bedework,dc=org</baseDn> |
|---|
| 167 |
<queryLimit>1000</queryLimit> |
|---|
| 168 |
|
|---|
| 169 |
<attrIds></attrIds> |
|---|
| 170 |
|
|---|
| 171 |
<folderObjectClass>organizationalUnit</folderObjectClass> |
|---|
| 172 |
<addressbookObjectClass>organizationalUnit</addressbookObjectClass> |
|---|
| 173 |
<addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass> |
|---|
| 174 |
<folderIdAttr>ou</folderIdAttr> |
|---|
| 175 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 176 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 177 |
|
|---|
| 178 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 179 |
<authPw>secret</authPw> |
|---|
| 180 |
<debug>true</debug> |
|---|
| 181 |
</public-people-dirHandler> |
|---|
| 182 |
|
|---|
| 183 |
|
|---|
| 184 |
<!-- handle the user address book hierarchy --> |
|---|
| 185 |
|
|---|
| 186 |
<user-dirHandler classname="org.bedework.carddav.util.DbDirHandlerConfig" > |
|---|
| 187 |
<pathPrefix>/user</pathPrefix> |
|---|
| 188 |
|
|---|
| 189 |
<className>org.bedework.carddav.server.dirHandlers.db.DbAddrBookDirHandler</className> |
|---|
| 190 |
|
|---|
| 191 |
<queryLimit>1000</queryLimit> <!-- unimplemented --> |
|---|
| 192 |
|
|---|
| 193 |
<!-- This is the access set at the root. I'll do this as XML soon --> |
|---|
| 194 |
<rootAccess>WONyA WANyFyS </rootAccess> |
|---|
| 195 |
|
|---|
| 196 |
<!-- This is the owner of the user root and user home --> |
|---|
| 197 |
<rootOwner>/principals/users/root</rootOwner> |
|---|
| 198 |
|
|---|
| 199 |
<debug>true</debug> |
|---|
| 200 |
</user-dirHandler> |
|---|
| 201 |
|
|---|
| 202 |
<!-- handle the user address book hierarchy |
|---|
| 203 |
How it might be done with ldap |
|---|
| 204 |
<user-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 205 |
<pathPrefix>/user</pathPrefix> |
|---|
| 206 |
<className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className> |
|---|
| 207 |
|
|---|
| 208 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 209 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 210 |
|
|---|
| 211 |
<baseDn>ou=users,ou=addrbooks,dc=bedework,dc=org</baseDn> |
|---|
| 212 |
|
|---|
| 213 |
<queryLimit>1000</queryLimit> |
|---|
| 214 |
|
|---|
| 215 |
<attrIds></attrIds> |
|---|
| 216 |
|
|---|
| 217 |
<folderObjectClass>organizationalUnit</folderObjectClass> |
|---|
| 218 |
<folderIdAttr>ou</folderIdAttr> |
|---|
| 219 |
|
|---|
| 220 |
<addressbookObjectClass>addressBook</addressbookObjectClass> |
|---|
| 221 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 222 |
|
|---|
| 223 |
<addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass> |
|---|
| 224 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 225 |
|
|---|
| 226 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 227 |
<authPw>secret</authPw> |
|---|
| 228 |
<debug>true</debug> |
|---|
| 229 |
</user-dirHandler> |
|---|
| 230 |
--> |
|---|
| 231 |
|
|---|
| 232 |
<public-locations-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 233 |
<pathPrefix>/public/locations</pathPrefix> |
|---|
| 234 |
|
|---|
| 235 |
<className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className> |
|---|
| 236 |
|
|---|
| 237 |
<!-- manufacture an owner for public entities --> |
|---|
| 238 |
<ownerHref>/principals/users/admin</ownerHref> |
|---|
| 239 |
|
|---|
| 240 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 241 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 242 |
<baseDn>ou=locations,ou=public,dc=bedework,dc=org</baseDn> |
|---|
| 243 |
|
|---|
| 244 |
<queryLimit>1000</queryLimit> |
|---|
| 245 |
|
|---|
| 246 |
<attrIds></attrIds> |
|---|
| 247 |
|
|---|
| 248 |
<cardKind>location</cardKind> |
|---|
| 249 |
|
|---|
| 250 |
<addressbookObjectClass>organizationalUnit</addressbookObjectClass> |
|---|
| 251 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 252 |
|
|---|
| 253 |
<addressbookEntryObjectClass>CalendarResource</addressbookEntryObjectClass> |
|---|
| 254 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 255 |
|
|---|
| 256 |
<principalIdAttr>calcaladruri</principalIdAttr> |
|---|
| 257 |
|
|---|
| 258 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 259 |
<authPw>secret</authPw> |
|---|
| 260 |
|
|---|
| 261 |
<debug>true</debug> |
|---|
| 262 |
</public-locations-dirHandler> |
|---|
| 263 |
|
|---|
| 264 |
<!-- handle the public (enterprise) address book hierarchy --> |
|---|
| 265 |
<public-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 266 |
<pathPrefix>/public</pathPrefix> |
|---|
| 267 |
<className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className> |
|---|
| 268 |
|
|---|
| 269 |
<!-- manufacture an owner for public entities --> |
|---|
| 270 |
<ownerHref>/principals/users/admin</ownerHref> |
|---|
| 271 |
|
|---|
| 272 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 273 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 274 |
|
|---|
| 275 |
<baseDn>ou=public,dc=bedework,dc=org</baseDn> |
|---|
| 276 |
|
|---|
| 277 |
<queryLimit>1000</queryLimit> |
|---|
| 278 |
|
|---|
| 279 |
<attrIds></attrIds> |
|---|
| 280 |
|
|---|
| 281 |
<folderObjectClass>organizationalUnit</folderObjectClass> |
|---|
| 282 |
<addressbookObjectClass>addressBook</addressbookObjectClass> |
|---|
| 283 |
<addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass> |
|---|
| 284 |
|
|---|
| 285 |
<folderIdAttr>ou</folderIdAttr> |
|---|
| 286 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 287 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 288 |
|
|---|
| 289 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 290 |
<authPw>secret</authPw> |
|---|
| 291 |
<debug>true</debug> |
|---|
| 292 |
</public-dirHandler> |
|---|
| 293 |
</dirhandlers> |
|---|
| 294 |
</global> |
|---|
| 295 |
|
|---|
| 296 |
<app> |
|---|
| 297 |
<usercarddav classname="org.bedework.carddav.util.CardDAVConfig" > |
|---|
| 298 |
<sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> |
|---|
| 299 |
|
|---|
| 300 |
<webaddrServiceURI>/find</webaddrServiceURI> |
|---|
| 301 |
<webaddrServicePropertiesList>fn,email,note,org</webaddrServicePropertiesList> |
|---|
| 302 |
<webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> |
|---|
| 303 |
|
|---|
| 304 |
<directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> |
|---|
| 305 |
|
|---|
| 306 |
<defaultAddressbook>addressbook</defaultAddressbook> |
|---|
| 307 |
|
|---|
| 308 |
<!-- This will act as the root for the file system --> |
|---|
| 309 |
<addressBookHandlerPrefix>/user</addressBookHandlerPrefix> |
|---|
| 310 |
|
|---|
| 311 |
<!-- Needed for access calculations --> |
|---|
| 312 |
<userHomeRoot>/user</userHomeRoot> |
|---|
| 313 |
|
|---|
| 314 |
<principalRoot>/principals</principalRoot> |
|---|
| 315 |
<userPrincipalRoot>/principals/users</userPrincipalRoot> |
|---|
| 316 |
<groupPrincipalRoot>/principals/groups</groupPrincipalRoot> |
|---|
| 317 |
<resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot> |
|---|
| 318 |
<venuePrincipalRoot>/principals/locations</venuePrincipalRoot> |
|---|
| 319 |
<ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot> |
|---|
| 320 |
<hostPrincipalRoot>/principals/hosts</hostPrincipalRoot> |
|---|
| 321 |
</usercarddav> |
|---|
| 322 |
|
|---|
| 323 |
<pubcarddav classname="org.bedework.carddav.util.CardDAVConfig" > |
|---|
| 324 |
<sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> |
|---|
| 325 |
|
|---|
| 326 |
<webaddrServiceURI>/find</webaddrServiceURI> |
|---|
| 327 |
<webaddrServicePropertiesList>fn,note,org</webaddrServicePropertiesList> |
|---|
| 328 |
<webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> |
|---|
| 329 |
|
|---|
| 330 |
<directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> |
|---|
| 331 |
|
|---|
| 332 |
<defaultAddressbook>addressbook</defaultAddressbook> |
|---|
| 333 |
|
|---|
| 334 |
<addressBookHandlerPrefix>/public</addressBookHandlerPrefix> |
|---|
| 335 |
|
|---|
| 336 |
<!-- Needed for access calculations --> |
|---|
| 337 |
<userHomeRoot>/user</userHomeRoot> |
|---|
| 338 |
|
|---|
| 339 |
<principalRoot>/principals</principalRoot> |
|---|
| 340 |
<userPrincipalRoot>/principals/users</userPrincipalRoot> |
|---|
| 341 |
<groupPrincipalRoot>/principals/groups</groupPrincipalRoot> |
|---|
| 342 |
<resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot> |
|---|
| 343 |
<venuePrincipalRoot>/principals/locations</venuePrincipalRoot> |
|---|
| 344 |
<ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot> |
|---|
| 345 |
<hostPrincipalRoot>/principals/hosts</hostPrincipalRoot> |
|---|
| 346 |
</pubcarddav> |
|---|
| 347 |
</app> |
|---|
| 348 |
</bedework> |
|---|
| 349 |
</org> |
|---|
| 350 |
</bedework-options> |
|---|