Hello,

I have configured a jetspeed 2.2.1 with LDAp with help of this thread:
http://www.mailinglistarchive.com/jetspeed-user@portals.apache.org/msg06502.html

1/  Changing the override.properties file.
#-------------------------------------------------------------------------
# LDAP
#-------------------------------------------------------------------------
ldap.url=ldap://localhost:10389
ldap.base=o=lbs
ldap.userDn=uid=admin,ou=system
ldap.password=secret
ldap.context.factory=com.sun.jndi.ldap.LdapCtxFactory
ldap.user.filter=(objectclass=person)
ldap.search.scope=2
ldap.user.searchBase=
ldap.user.entryPrefix=cn
ldap.role.searchBase=ou=Roles
ldap.group.searchBase=ou=Groups

#Turn on LDAP Security
spring.filter.key = portal.ldap

2/ Changing the security-spi.xml file
  <bean
class="org.springframework.beans.factory.config.BeanReferenceFactoryBean">
    <meta key="j2:cat" value="dbSecurity or ldapSecurity" />
    <meta key="j2:alias"
value="org.apache.jetspeed.security.spi.SecurityDomainStorageManager" />
    <property name="targetBeanName"
value="org.apache.jetspeed.security.spi.JetspeedSecurityPersistenceManager" />
  </bean>

  <bean
class="org.springframework.beans.factory.config.BeanReferenceFactoryBean">
    <meta key="j2:cat" value="dbSecurity or ldapSecurity" />
    <meta key="j2:alias"
value="org.apache.jetspeed.security.spi.SecurityDomainAccessManager" />
    <property name="targetBeanName"
value="org.apache.jetspeed.security.spi.JetspeedSecurityPersistenceManager" />
  </bean>

I've started my jetspeed (demo version 2.2.1) and my LDAP (Apache DS 1.5.7)
However, when I add a new user with an administrative portlet  it doesn't
change in ldap (so it's libely added on db, I suppose).

If I set values in xml to only ldapSecurity, jetspeed doesn't start (spring
initialization error)

Does I need to make some initialization on my ldap (create partitions,
adding schema)?


Cordialement,
-----------------------------------------------
Jérôme Dupont
Bibliothèque Nationale de France
Département des Systèmes d'Information
Tour T3 - Quai François Mauriac
75706 Paris Cedex 13
téléphone: 33 (0)1 53 79 45 40
e-mail: jerome.dup...@bnf.fr
-----------------------------------------------



Exposition  Richard Prince. American Prayer  - du 29 mars 2011 au 26 juin 2011 
- BnF - François-Mitterrand / Grande Galerie  
Avant d'imprimer, pensez à l'environnement. 
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org

Reply via email to