Moves Spring Security / Jackrabbit synchronization in JcrSecurityModel
[lgpl/argeo-commons.git] / security / modules / org.argeo.security.dao.ldap / META-INF / spring / security-ldap-jcr.xml
index 3235e66f4c445c9c726aa9dd80fbaf9983fce1fe..b7b3bf3ee55ace2de2970e0631e68f63613a76be 100644 (file)
                <property name="repository" ref="nodeRepository" />
                <property name="bundleContext" ref="bundleContext" />
        </bean>
+       <bean class="org.argeo.jackrabbit.JackrabbitAuthorizations"
+               init-method="run">
+               <property name="principalPrivileges">
+                       <map>
+                               <entry key="jcr:all" value="ROLE_ADMIN" />
+                       </map>
+               </property>
+               <property name="repository" ref="argeoDataModel" />
+       </bean>
 
        <bean id="jcrLdapSynchronizer" class="org.argeo.security.ldap.jcr.JcrLdapSynchronizer"
                init-method="init" destroy-method="destroy" depends-on="argeoDataModel">