Changeset 3021

Show
Ignore:
Timestamp:
10/22/10 14:11:16
Author:
bleibson
Message:

Catch up the carddav options file in the other configuration directories.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config/bwbuild/geronimo/carddav.options.xml

    r2680 r3021  
    1515               principal properties. That may mean maintaining a shadow 
    1616               principal hierarchy in the local server. 
     17                
     18               Each element name below must be unique. 
    1719            --> 
    1820          <principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    1921            <pathPrefix>/principals</pathPrefix> 
    20             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     22            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    2123 
    2224            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    2931               This requires us to explicitly name all attributes on fetch. 
    3032               This element allows us to name EXTRA attributes from the default 
    31                list provided by the impleemntation. 
     33               list provided by the implementation. 
    3234              --> 
    3335            <attrIds></attrIds> 
     
    4547            <pathPrefix>/principals/users</pathPrefix> 
    4648            <addressBook>true</addressBook> 
    47  
    48             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     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> 
    4968 
    5069            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    7695            <addressBook>true</addressBook> 
    7796 
    78             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     97            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    7998 
    8099            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    102121            <debug>true</debug> 
    103122          </group-principal-dirHandler> 
    104  
     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           
    105184          <!-- 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  
    106204          <user-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    107205            <pathPrefix>/user</pathPrefix> 
    108             <className>org.bedework.carddav.server.dirHandlers.LdapAddrBookDirHandler</className> 
     206            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className> 
    109207 
    110208            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    130228            <debug>true</debug> 
    131229          </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> 
    132263 
    133264          <!-- handle the public (enterprise) address book hierarchy --> 
    134265          <public-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    135266            <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> 
     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> 
    142276 
    143277            <queryLimit>1000</queryLimit> 
     
    163297        <usercarddav classname="org.bedework.carddav.util.CardDAVConfig" > 
    164298          <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> 
     299           
    165300          <webaddrServiceURI>/find</webaddrServiceURI> 
     301          <webaddrServicePropertiesList>fn,email,note,org</webaddrServicePropertiesList> 
    166302          <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> 
    167303 
    168304          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    169305 
    170           <defaultAddressbook>address-book</defaultAddressbook> 
    171  
     306          <defaultAddressbook>addressbook</defaultAddressbook> 
     307 
     308          <!-- This will act as the root for the file system --> 
    172309          <addressBookHandlerPrefix>/user</addressBookHandlerPrefix> 
     310           
     311          <!-- Needed for access calculations --> 
     312          <userHomeRoot>/user</userHomeRoot> 
    173313 
    174314          <principalRoot>/principals</principalRoot> 
     
    183323        <pubcarddav classname="org.bedework.carddav.util.CardDAVConfig" > 
    184324          <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> 
     325           
    185326          <webaddrServiceURI>/find</webaddrServiceURI> 
     327          <webaddrServicePropertiesList>fn,note,org</webaddrServicePropertiesList> 
    186328          <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> 
    187329 
    188330          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    189331 
    190           <defaultAddressbook>address-book</defaultAddressbook> 
     332          <defaultAddressbook>addressbook</defaultAddressbook> 
    191333 
    192334          <addressBookHandlerPrefix>/public</addressBookHandlerPrefix> 
     335           
     336          <!-- Needed for access calculations --> 
     337          <userHomeRoot>/user</userHomeRoot> 
    193338 
    194339          <principalRoot>/principals</principalRoot> 
  • trunk/config/bwbuild/jboss-h2/carddav.options.xml

    r2877 r3021  
    1515               principal properties. That may mean maintaining a shadow 
    1616               principal hierarchy in the local server. 
     17                
     18               Each element name below must be unique. 
    1719            --> 
    1820          <principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    1921            <pathPrefix>/principals</pathPrefix> 
    20             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     22            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    2123 
    2224            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    2931               This requires us to explicitly name all attributes on fetch. 
    3032               This element allows us to name EXTRA attributes from the default 
    31                list provided by the impleemntation. 
     33               list provided by the implementation. 
    3234              --> 
    3335            <attrIds></attrIds> 
     
    4547            <pathPrefix>/principals/users</pathPrefix> 
    4648            <addressBook>true</addressBook> 
    47  
    48             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     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> 
    4968 
    5069            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    7695            <addressBook>true</addressBook> 
    7796 
    78             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     97            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    7998 
    8099            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    102121            <debug>true</debug> 
    103122          </group-principal-dirHandler> 
    104  
     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           
    105184          <!-- 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  
    106204          <user-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    107205            <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=addrbooks,ou=users,dc=bedework,dc=org</baseDn> 
     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> 
    114212 
    115213            <queryLimit>1000</queryLimit> 
     
    130228            <debug>true</debug> 
    131229          </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> 
    132263 
    133264          <!-- handle the public (enterprise) address book hierarchy --> 
    134265          <public-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    135266            <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=ou=addrbooks,public,dc=bedework,dc=org</baseDn> 
     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> 
    142276 
    143277            <queryLimit>1000</queryLimit> 
     
    163297        <usercarddav classname="org.bedework.carddav.util.CardDAVConfig" > 
    164298          <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> 
     299           
    165300          <webaddrServiceURI>/find</webaddrServiceURI> 
     301          <webaddrServicePropertiesList>fn,email,note,org</webaddrServicePropertiesList> 
    166302          <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> 
    167303 
    168304          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    169305 
    170           <defaultAddressbook>address-book</defaultAddressbook> 
    171  
     306          <defaultAddressbook>addressbook</defaultAddressbook> 
     307 
     308          <!-- This will act as the root for the file system --> 
    172309          <addressBookHandlerPrefix>/user</addressBookHandlerPrefix> 
     310           
     311          <!-- Needed for access calculations --> 
     312          <userHomeRoot>/user</userHomeRoot> 
    173313 
    174314          <principalRoot>/principals</principalRoot> 
     
    183323        <pubcarddav classname="org.bedework.carddav.util.CardDAVConfig" > 
    184324          <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> 
     325           
    185326          <webaddrServiceURI>/find</webaddrServiceURI> 
     327          <webaddrServicePropertiesList>fn,note,org</webaddrServicePropertiesList> 
    186328          <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> 
    187329 
    188330          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    189331 
    190           <defaultAddressbook>address-book</defaultAddressbook> 
     332          <defaultAddressbook>addressbook</defaultAddressbook> 
    191333 
    192334          <addressBookHandlerPrefix>/public</addressBookHandlerPrefix> 
     335           
     336          <!-- Needed for access calculations --> 
     337          <userHomeRoot>/user</userHomeRoot> 
    193338 
    194339          <principalRoot>/principals</principalRoot> 
  • trunk/config/bwbuild/jboss-mysql/carddav.options.xml

    r2927 r3021  
    2020          <principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    2121            <pathPrefix>/principals</pathPrefix> 
    22             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     22            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    2323 
    2424            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    4747            <pathPrefix>/principals/users</pathPrefix> 
    4848            <addressBook>true</addressBook> 
    49  
    50             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     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> 
    5168 
    5269            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    7895            <addressBook>true</addressBook> 
    7996 
    80             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     97            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    8198 
    8299            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    104121            <debug>true</debug> 
    105122          </group-principal-dirHandler> 
    106  
     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           
    107184          <!-- 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  
    108204          <user-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    109205            <pathPrefix>/user</pathPrefix> 
    110             <className>org.bedework.carddav.server.dirHandlers.LdapAddrBookDirHandler</className> 
     206            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className> 
    111207 
    112208            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    132228            <debug>true</debug> 
    133229          </user-dirHandler> 
    134  
     230          --> 
     231  
    135232          <public-locations-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    136233            <pathPrefix>/public/locations</pathPrefix> 
    137234 
    138             <className>org.bedework.carddav.server.dirHandlers.LdapAddrBookDirHandler</className> 
    139  
    140             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
    141             <providerUrl>ldap://localhost:10389/</providerUrl> 
    142             <baseDn>ou=locations,dc=bedework,dc=org</baseDn> 
     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> 
    143243 
    144244            <queryLimit>1000</queryLimit> 
     
    165265          <public-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    166266            <pathPrefix>/public</pathPrefix> 
    167             <className>org.bedework.carddav.server.dirHandlers.LdapAddrBookDirHandler</className> 
    168  
    169             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
    170             <providerUrl>ldap://localhost:10389/</providerUrl> 
    171  
    172             <baseDn>ou=public,ou=addrbooks,dc=bedework,dc=org</baseDn> 
     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> 
    173276 
    174277            <queryLimit>1000</queryLimit> 
     
    201304          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    202305 
    203           <defaultAddressbook>address-book</defaultAddressbook> 
    204  
     306          <defaultAddressbook>addressbook</defaultAddressbook> 
     307 
     308          <!-- This will act as the root for the file system --> 
    205309          <addressBookHandlerPrefix>/user</addressBookHandlerPrefix> 
     310           
     311          <!-- Needed for access calculations --> 
     312          <userHomeRoot>/user</userHomeRoot> 
    206313 
    207314          <principalRoot>/principals</principalRoot> 
     
    223330          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    224331 
    225           <defaultAddressbook>address-book</defaultAddressbook> 
     332          <defaultAddressbook>addressbook</defaultAddressbook> 
    226333 
    227334          <addressBookHandlerPrefix>/public</addressBookHandlerPrefix> 
     335           
     336          <!-- Needed for access calculations --> 
     337          <userHomeRoot>/user</userHomeRoot> 
    228338 
    229339          <principalRoot>/principals</principalRoot> 
  • trunk/config/bwbuild/jboss-postgresql/carddav.options.xml

    r2955 r3021  
    153153            <debug>true</debug> 
    154154          </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           
    155183           
    156184          <!-- handle the user address book hierarchy --> 
  • trunk/config/bwbuild/liferay5/carddav.options.xml

    r2439 r3021  
    1515               principal properties. That may mean maintaining a shadow 
    1616               principal hierarchy in the local server. 
     17                
     18               Each element name below must be unique. 
    1719            --> 
    1820          <principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    1921            <pathPrefix>/principals</pathPrefix> 
    20             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     22            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    2123 
    2224            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    2931               This requires us to explicitly name all attributes on fetch. 
    3032               This element allows us to name EXTRA attributes from the default 
    31                list provided by the impleemntation. 
     33               list provided by the implementation. 
    3234              --> 
    3335            <attrIds></attrIds> 
     
    4547            <pathPrefix>/principals/users</pathPrefix> 
    4648            <addressBook>true</addressBook> 
    47  
    48             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     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> 
    4968 
    5069            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    7695            <addressBook>true</addressBook> 
    7796 
    78             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     97            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    7998 
    8099            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    102121            <debug>true</debug> 
    103122          </group-principal-dirHandler> 
    104  
     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           
    105184          <!-- 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  
    106204          <user-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    107205            <pathPrefix>/user</pathPrefix> 
    108             <className>org.bedework.carddav.server.dirHandlers.LdapAddrBookDirHandler</className> 
     206            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className> 
    109207 
    110208            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    130228            <debug>true</debug> 
    131229          </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> 
    132263 
    133264          <!-- handle the public (enterprise) address book hierarchy --> 
    134265          <public-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    135266            <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> 
     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> 
    142276 
    143277            <queryLimit>1000</queryLimit> 
     
    163297        <usercarddav classname="org.bedework.carddav.util.CardDAVConfig" > 
    164298          <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> 
     299           
    165300          <webaddrServiceURI>/find</webaddrServiceURI> 
     301          <webaddrServicePropertiesList>fn,email,note,org</webaddrServicePropertiesList> 
    166302          <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> 
    167303 
    168304          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    169305 
    170           <defaultAddressbook>address-book</defaultAddressbook> 
    171  
     306          <defaultAddressbook>addressbook</defaultAddressbook> 
     307 
     308          <!-- This will act as the root for the file system --> 
    172309          <addressBookHandlerPrefix>/user</addressBookHandlerPrefix> 
     310           
     311          <!-- Needed for access calculations --> 
     312          <userHomeRoot>/user</userHomeRoot> 
    173313 
    174314          <principalRoot>/principals</principalRoot> 
     
    183323        <pubcarddav classname="org.bedework.carddav.util.CardDAVConfig" > 
    184324          <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> 
     325           
    185326          <webaddrServiceURI>/find</webaddrServiceURI> 
     327          <webaddrServicePropertiesList>fn,note,org</webaddrServicePropertiesList> 
    186328          <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> 
    187329 
    188330          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    189331 
    190           <defaultAddressbook>address-book</defaultAddressbook> 
     332          <defaultAddressbook>addressbook</defaultAddressbook> 
    191333 
    192334          <addressBookHandlerPrefix>/public</addressBookHandlerPrefix> 
     335           
     336          <!-- Needed for access calculations --> 
     337          <userHomeRoot>/user</userHomeRoot> 
    193338 
    194339          <principalRoot>/principals</principalRoot> 
  • trunk/config/bwbuild/oracle10g/carddav.options.xml

    r2439 r3021  
    1515               principal properties. That may mean maintaining a shadow 
    1616               principal hierarchy in the local server. 
     17                
     18               Each element name below must be unique. 
    1719            --> 
    1820          <principal-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    1921            <pathPrefix>/principals</pathPrefix> 
    20             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     22            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    2123 
    2224            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    2931               This requires us to explicitly name all attributes on fetch. 
    3032               This element allows us to name EXTRA attributes from the default 
    31                list provided by the impleemntation. 
     33               list provided by the implementation. 
    3234              --> 
    3335            <attrIds></attrIds> 
     
    4547            <pathPrefix>/principals/users</pathPrefix> 
    4648            <addressBook>true</addressBook> 
    47  
    48             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     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> 
    4968 
    5069            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    7695            <addressBook>true</addressBook> 
    7796 
    78             <className>org.bedework.carddav.server.dirHandlers.LdapPrincipalDirHandler</className> 
     97            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
    7998 
    8099            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    102121            <debug>true</debug> 
    103122          </group-principal-dirHandler> 
    104  
     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           
    105184          <!-- 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  
    106204          <user-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    107205            <pathPrefix>/user</pathPrefix> 
    108             <className>org.bedework.carddav.server.dirHandlers.LdapAddrBookDirHandler</className> 
     206            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapAddrBookDirHandler</className> 
    109207 
    110208            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
     
    130228            <debug>true</debug> 
    131229          </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> 
    132263 
    133264          <!-- handle the public (enterprise) address book hierarchy --> 
    134265          <public-dirHandler classname="org.bedework.carddav.util.LdapDirHandlerConfig" > 
    135266            <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> 
     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> 
    142276 
    143277            <queryLimit>1000</queryLimit> 
     
    163297        <usercarddav classname="org.bedework.carddav.util.CardDAVConfig" > 
    164298          <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> 
     299           
    165300          <webaddrServiceURI>/find</webaddrServiceURI> 
     301          <webaddrServicePropertiesList>fn,email,note,org</webaddrServicePropertiesList> 
    166302          <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> 
    167303 
    168304          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    169305 
    170           <defaultAddressbook>address-book</defaultAddressbook> 
    171  
     306          <defaultAddressbook>addressbook</defaultAddressbook> 
     307 
     308          <!-- This will act as the root for the file system --> 
    172309          <addressBookHandlerPrefix>/user</addressBookHandlerPrefix> 
     310           
     311          <!-- Needed for access calculations --> 
     312          <userHomeRoot>/user</userHomeRoot> 
    173313 
    174314          <principalRoot>/principals</principalRoot> 
     
    183323        <pubcarddav classname="org.bedework.carddav.util.CardDAVConfig" > 
    184324          <sysintfImpl>org.bedework.carddav.bwserver.BwSysIntfImpl</sysintfImpl> 
     325           
    185326          <webaddrServiceURI>/find</webaddrServiceURI> 
     327          <webaddrServicePropertiesList>fn,note,org</webaddrServicePropertiesList> 
    186328          <webaddrPublicAddrbook>/principals/users</webaddrPublicAddrbook> 
    187329 
    188330          <directoryBrowsingDisallowed>false</directoryBrowsingDisallowed> 
    189331 
    190           <defaultAddressbook>address-book</defaultAddressbook> 
     332          <defaultAddressbook>addressbook</defaultAddressbook> 
    191333 
    192334          <addressBookHandlerPrefix>/public</addressBookHandlerPrefix> 
     335           
     336          <!-- Needed for access calculations --> 
     337          <userHomeRoot>/user</userHomeRoot> 
    193338 
    194339          <principalRoot>/principals</principalRoot>