Hi there,

this was a bug. I just committed a fix. See also :
https://issues.apache.org/jira/browse/JAMES-1204

You should be able to build james from source your grab a fresh snapshot in
a few hours:

https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-container-spring/3.0-M3-SNAPSHOT/

Thanks for reporting,
Norman

2011/3/16 Lanfeust troy <[email protected]>

> Hi,
> sure i can send log
>
> With this configration:
>
> in spring-beans.xml:
> <bean id="usersstore" class="org.apache.james.user.lib.JamesUsersStore" >
>         <property name="defaultRepository" value="LocalUsers"/>
> </bean>
>
>  <bean id="localusersrepository"
> class="org.apache.james.user.lib.LocalUsersRepository" />
>
>
> in usersrepository.xml:
> <usersrepository>
>     <!-- Read-Only LDAP based UsersRepository -->
>     <repository name="LocalUsers"
> class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository"
> ldapHost="ldap://obm3.kvm.rla:389";
>         principal="" credentials="" userBase="dc=local"
> userIdAttribute="mailBox"/>;
> </usersrepository>
>
> stacktrace in file join
>
>
>
> 2011/3/15 Eric Charles <[email protected]>
>
>> Hi,
>> The way users / user repository is handled changed recently and was not
>> tested with the LDAP repo.
>> Can you send the full stacktrace (if any) from log ?
>> Tks
>> - Eric
>>
>>
>> On 15/03/2011 16:48, Lanfeust troy wrote:
>>
>>> Hi all
>>>
>>> I'm trying Apache James Server and I don't understand how can i use
>>> ReadOnlyUsersLDAPRepository.
>>>
>>> I have the following in usersrepository.xml
>>>
>>> <usersrepository>
>>>     <!-- Read-Only LDAP based UsersRepository -->
>>>     <repository name="LocalUsers"
>>> class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository"
>>> ldapHost="ldap://obm3.kvm.rla:389";
>>>         principal="" credentials="" userBase="dc=local"
>>> userIdAttribute="mailBox"/>;
>>> <!--
>>>   <repository name="LocalUsers"
>>> class="org.apache.james.user.jpa.JPAUsersRepository">
>>>       <algorithm>MD5</algorithm>
>>>   </repository>
>>> -->
>>> </usersrepository>
>>>
>>> but the server don't want to start with this error:
>>>
>>> Error creating bean with name 'usersstore'
>>> Error creating bean with name 'localusersrepository':
>>>
>>>
>>> in spring-beans.xml
>>>
>>> <bean id="usersstore" class="org.apache.james.user.lib.JamesUsersStore">
>>>    <property name="defaultRepository" value="LocalUsers"/>
>>> </bean>
>>>
>>> <bean id="localusersrepository"
>>> class="org.apache.james.user.lib.LocalUsersRepository"
>>>
>>> thanks for help
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to