| 1 |
<!-- This provides run time options for the CardDAV server. |
|---|
| 2 |
--> |
|---|
| 3 |
<bedework-options> |
|---|
| 4 |
<org> |
|---|
| 5 |
<bedework> |
|---|
| 6 |
<global> |
|---|
| 7 |
<version>3.5</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 |
<principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 19 |
<pathPrefix>/principals</pathPrefix> |
|---|
| 20 |
<className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> |
|---|
| 21 |
|
|---|
| 22 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 23 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 24 |
<baseDn>dc=bedework, dc=org</baseDn> |
|---|
| 25 |
|
|---|
| 26 |
<queryLimit>1000</queryLimit> |
|---|
| 27 |
|
|---|
| 28 |
<!-- We need to get operational attributes from the directory. |
|---|
| 29 |
This requires us to explicitly name all attributes on fetch. |
|---|
| 30 |
This element allows us to name EXTRA attributes from the default |
|---|
| 31 |
list provided by the impleemntation. |
|---|
| 32 |
--> |
|---|
| 33 |
<attrIds></attrIds> |
|---|
| 34 |
|
|---|
| 35 |
<addressbookObjectClass>organizationalUnit</addressbookObjectClass> |
|---|
| 36 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 37 |
|
|---|
| 38 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 39 |
<authPw>secret</authPw> |
|---|
| 40 |
|
|---|
| 41 |
<debug>true</debug> |
|---|
| 42 |
</principal-dirHandler> |
|---|
| 43 |
|
|---|
| 44 |
<user-principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 45 |
<pathPrefix>/principals/users</pathPrefix> |
|---|
| 46 |
<addressBook>true</addressBook> |
|---|
| 47 |
|
|---|
| 48 |
<className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> |
|---|
| 49 |
|
|---|
| 50 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 51 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 52 |
<baseDn>ou=accounts,dc=bedework,dc=org</baseDn> |
|---|
| 53 |
|
|---|
| 54 |
<queryLimit>1000</queryLimit> |
|---|
| 55 |
|
|---|
| 56 |
<attrIds></attrIds> |
|---|
| 57 |
|
|---|
| 58 |
<cardKind>individual</cardKind> |
|---|
| 59 |
|
|---|
| 60 |
<addressbookObjectClass>organizationalUnit</addressbookObjectClass> |
|---|
| 61 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 62 |
|
|---|
| 63 |
<addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass> |
|---|
| 64 |
<addressbookEntryIdAttr>uid</addressbookEntryIdAttr> |
|---|
| 65 |
|
|---|
| 66 |
<principalIdAttr>uid</principalIdAttr> |
|---|
| 67 |
|
|---|
| 68 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 69 |
<authPw>secret</authPw> |
|---|
| 70 |
|
|---|
| 71 |
<debug>true</debug> |
|---|
| 72 |
</user-principal-dirHandler> |
|---|
| 73 |
|
|---|
| 74 |
<group-principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 75 |
<pathPrefix>/principals/groups</pathPrefix> |
|---|
| 76 |
<addressBook>true</addressBook> |
|---|
| 77 |
|
|---|
| 78 |
<className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> |
|---|
| 79 |
|
|---|
| 80 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 81 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 82 |
|
|---|
| 83 |
<baseDn>ou=groups,dc=bedework,dc=org</baseDn> |
|---|
| 84 |
|
|---|
| 85 |
<queryLimit>1000</queryLimit> |
|---|
| 86 |
|
|---|
| 87 |
<attrIds></attrIds> |
|---|
| 88 |
|
|---|
| 89 |
<cardKind>group</cardKind> |
|---|
| 90 |
|
|---|
| 91 |
<addressbookObjectClass>organizationalUnit</addressbookObjectClass> |
|---|
| 92 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 93 |
|
|---|
| 94 |
<addressbookEntryObjectClass>groupOfUniqueNames</addressbookEntryObjectClass> |
|---|
| 95 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 96 |
|
|---|
| 97 |
<principalIdAttr>cn</principalIdAttr> |
|---|
| 98 |
|
|---|
| 99 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 100 |
<authPw>secret</authPw> |
|---|
| 101 |
|
|---|
| 102 |
<debug>true</debug> |
|---|
| 103 |
</group-principal-dirHandler> |
|---|
| 104 |
|
|---|
| 105 |
<!-- handle the user address book hierarchy --> |
|---|
| 106 |
<user-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 107 |
<pathPrefix>/user</pathPrefix> |
|---|
| 108 |
<className>org.bedework.carddav.server.dirHandlers.LdapAddrBookDirHandler</className> |
|---|
| 109 |
|
|---|
| 110 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 111 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 112 |
|
|---|
| 113 |
<baseDn>ou=users,ou=addrbooks,dc=bedework,dc=org</baseDn> |
|---|
| 114 |
|
|---|
| 115 |
<queryLimit>1000</queryLimit> |
|---|
| 116 |
|
|---|
| 117 |
<attrIds></attrIds> |
|---|
| 118 |
|
|---|
| 119 |
<folderObjectClass>organizationalUnit</folderObjectClass> |
|---|
| 120 |
<folderIdAttr>ou</folderIdAttr> |
|---|
| 121 |
|
|---|
| 122 |
<addressbookObjectClass>addressBook</addressbookObjectClass> |
|---|
| 123 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 124 |
|
|---|
| 125 |
<addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass> |
|---|
| 126 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 127 |
|
|---|
| 128 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 129 |
<authPw>secret</authPw> |
|---|
| 130 |
<debug>true</debug> |
|---|
| 131 |
</user-dirHandler> |
|---|
| 132 |
|
|---|
| 133 |
<!-- handle the public (enterprise) address book hierarchy --> |
|---|
| 134 |
<public-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > |
|---|
| 135 |
<pathPrefix>/public</pathPrefix> |
|---|
| 136 |
<className>org.bedework.carddav.server.dirHandlers.LdapAddrBookDirHandler</className> |
|---|
| 137 |
|
|---|
| 138 |
<initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> |
|---|
| 139 |
<providerUrl>ldap://localhost:10389/</providerUrl> |
|---|
| 140 |
|
|---|
| 141 |
<baseDn>ou=public,ou=addrbooks,dc=bedework,dc=org</baseDn> |
|---|
| 142 |
|
|---|
| 143 |
<queryLimit>1000</queryLimit> |
|---|
| 144 |
|
|---|
| 145 |
<attrIds></attrIds> |
|---|
| 146 |
|
|---|
| 147 |
<folderObjectClass>organizationalUnit</folderObjectClass> |
|---|
| 148 |
<addressbookObjectClass>addressBook</addressbookObjectClass> |
|---|
| 149 |
<addressbookEntryObjectClass>inetOrgPerson</addressbookEntryObjectClass> |
|---|
| 150 |
|
|---|
| 151 |
<folderIdAttr>ou</folderIdAttr> |
|---|
| 152 |
<addressbookIdAttr>ou</addressbookIdAttr> |
|---|
| 153 |
<addressbookEntryIdAttr>cn</addressbookEntryIdAttr> |
|---|
| 154 |
|
|---|
| 155 |
<authDn>uid=admin,ou=system</authDn> |
|---|
| 156 |
<authPw>secret</authPw> |
|---|
| 157 |
<debug>true</debug> |
|---|
| 158 |
</public-dirHandler> |
|---|
| 159 |
</dirhandlers> |
|---|
| 160 |
</global> |
|---|
| 161 |
|
|---|
| 162 |
<app> |
|---|
| 163 |
<usercarddav classname="org.bedework.carddav.util.CardDAVConfig" > |
|---|
| 164 |
<sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> |
|---|
| 165 |
<webaddrServiceURI>/find</webaddrServiceURI> |
|---|
| 166 |
<webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> |
|---|
| 167 |
|
|---|
| 168 |
<directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> |
|---|
| 169 |
|
|---|
| 170 |
<defaultAddressbook>address-book</defaultAddressbook> |
|---|
| 171 |
|
|---|
| 172 |
<addressBookHandlerPrefix>/user</addressBookHandlerPrefix> |
|---|
| 173 |
|
|---|
| 174 |
<principalRoot>/principals</principalRoot> |
|---|
| 175 |
<userPrincipalRoot>/principals/users</userPrincipalRoot> |
|---|
| 176 |
<groupPrincipalRoot>/principals/groups</groupPrincipalRoot> |
|---|
| 177 |
<resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot> |
|---|
| 178 |
<venuePrincipalRoot>/principals/locations</venuePrincipalRoot> |
|---|
| 179 |
<ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot> |
|---|
| 180 |
<hostPrincipalRoot>/principals/hosts</hostPrincipalRoot> |
|---|
| 181 |
</usercarddav> |
|---|
| 182 |
|
|---|
| 183 |
<pubcarddav classname="org.bedework.carddav.util.CardDAVConfig" > |
|---|
| 184 |
<sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> |
|---|
| 185 |
<webaddrServiceURI>/find</webaddrServiceURI> |
|---|
| 186 |
<webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> |
|---|
| 187 |
|
|---|
| 188 |
<directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> |
|---|
| 189 |
|
|---|
| 190 |
<defaultAddressbook>address-book</defaultAddressbook> |
|---|
| 191 |
|
|---|
| 192 |
<addressBookHandlerPrefix>/public</addressBookHandlerPrefix> |
|---|
| 193 |
|
|---|
| 194 |
<principalRoot>/principals</principalRoot> |
|---|
| 195 |
<userPrincipalRoot>/principals/users</userPrincipalRoot> |
|---|
| 196 |
<groupPrincipalRoot>/principals/groups</groupPrincipalRoot> |
|---|
| 197 |
<resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot> |
|---|
| 198 |
<venuePrincipalRoot>/principals/locations</venuePrincipalRoot> |
|---|
| 199 |
<ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot> |
|---|
| 200 |
<hostPrincipalRoot>/principals/hosts</hostPrincipalRoot> |
|---|
| 201 |
</pubcarddav> |
|---|
| 202 |
</app> |
|---|
| 203 |
</bedework> |
|---|
| 204 |
</org> |
|---|
| 205 |
</bedework-options> |
|---|