Changeset 2961

Show
Ignore:
Timestamp:
07/30/10 15:49:05
Author:
douglm
Message:

Updated carddav options

Files:

Legend:

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

    r2948 r2961  
    4747            <pathPrefix>/principals/users</pathPrefix> 
    4848            <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> 
    4966 
    5067            <className>org.bedework.carddav.server.dirHandlers.ldap.LdapPrincipalDirHandler</className> 
     
    104121            <debug>true</debug> 
    105122          </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> 
    106155           
    107156          <!-- handle the user address book hierarchy --> 
     
    163212            <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory> 
    164213            <providerUrl>ldap://localhost:10389/</providerUrl> 
    165             <baseDn>ou=locations,dc=bedework,dc=org</baseDn> 
     214            <baseDn>ou=locations,ou=public,dc=bedework,dc=org</baseDn> 
    166215 
    167216            <queryLimit>1000</queryLimit>