hi there,

we've tried out to configure J-2 (M3) working with LDAP.
We had to make some changes because the default configuration described
within the docs does not work.
the ldap.properties will not be loaded before loading the LDAP beans from
srping.
so we added the props to the jetspeed.properties.

within the security-spi-ldap-atn.xml also are some mistakes (wrong package
statements, maybe wrong class
defintion) see att to find out what we've changed.

after starting J-2 everything works fine until trying out to login with e.g.
manager and so on.
nothing happens. only an error message with "invalid user..." occures.

may be some of the developers or somebody else who tried it out can tell us
what is wrong ?

thx

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd";>
<!--
Copyright 2004 The Apache Software Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans>

  <!-- ************** Security SPI Handlers ************** -->
  <!-- Security SPI: LdapUserCredentialDao -->
  <bean id="org.apache.jetspeed.security.spi.impl.ldap.LdapUserCredentialDao" 
       class="org.apache.jetspeed.security.spi.impl.ldap.LdapUserCredentialDaoImpl"
  >       
       <constructor-arg index="0"><value>${org.apache.jetspeed.ldap.ldapServerName}</value></constructor-arg>       
       <constructor-arg index="1"><value>${org.apache.jetspeed.ldap.rootDn}</value></constructor-arg>       
       <constructor-arg index="2"><value>${org.apache.jetspeed.ldap.rootPassword}</value></constructor-arg>
       <constructor-arg index="3"><value>${org.apache.jetspeed.ldap.rootContext}</value></constructor-arg>  
       <constructor-arg index="4"><value>${org.apache.jetspeed.ldap.defaultDnSuffix}</value></constructor-arg>        
  </bean>

  <bean id="LdapUserPrincipalDao" class="org.apache.jetspeed.security.spi.impl.ldap.LdapUserPrincipalDaoImpl">       
	
       <constructor-arg index="0"><value>${org.apache.jetspeed.ldap.ldapServerName}</value></constructor-arg>       
       <constructor-arg index="1"><value>${org.apache.jetspeed.ldap.rootDn}</value></constructor-arg>       
       <constructor-arg index="2"><value>${org.apache.jetspeed.ldap.rootPassword}</value></constructor-arg>
       <constructor-arg index="3"><value>${org.apache.jetspeed.ldap.rootContext}</value></constructor-arg>  
       <constructor-arg index="4"><value>${org.apache.jetspeed.ldap.defaultDnSuffix}</value></constructor-arg>        
	   
  </bean>
  
  <!-- Security SPI: CredentialHandler -->
  <bean id="org.apache.jetspeed.security.spi.CredentialHandler" 
       class="org.apache.jetspeed.security.spi.impl.LdapCredentialHandler"
  >       
       <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.impl.ldap.LdapUserCredentialDao"/></constructor-arg>    
  </bean>
  
  <!-- Security SPI: UserSecurityHandler -->
  <bean id="org.apache.jetspeed.security.spi.UserSecurityHandler" 
  	   class="org.apache.jetspeed.security.spi.impl.LdapUserSecurityHandler"
  >  	   
  	   <constructor-arg ><ref bean="LdapUserPrincipalDao"/></constructor-arg>
  </bean>

</beans>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to