qsquare ha scritto:
Hi,
After looking through the UsersLDAPRepository source codes, here's my
attempt at trying to use ApacheDS as the LDAP Server for JAMES User
Repository:
<!-- LDAP user repositories -->
<repository name="LocalUsers"
class="org.apache.james.userrepository.UsersLDAPRepository">
<LDAPServer>ldap://localhost:10389/</LDAPServer>
<LDAPRoot>dc=example,dc=com</LDAPRoot>
<ThisServerRDN>cn=mailserver.apache.org</ThisServerRDN>
<MailAddressAttribute>mail</MailAddressAttribute>
<IdentityAttribute>uid</IdentityAttribute>
<AuthenticationType>simple</AuthenticationType>
<Principal>uid=admin,ou=system</Principal>
<Password>secret</Password>
<MembersAttribute>cn</MembersAttribute>
<ManagePasswordAttribute>TRUE</ManagePasswordAttribute>
<PasswordAttribute>userPassword</PasswordAttribute>
</repository>
However, the following error "There was an error running phase "startup" for
Block named "users-store". " The full log file is uploaded for anyone out
there who can help me.
http://www.nabble.com/file/p18458790/phoenix.log phoenix.log
I'm not sure I remember correctly but I think UsersLDAPRepository never
worked in 2.3.x.
I found https://issues.apache.org/jira/browse/JAMES-654 and
http://markmail.org/message/4jx7hds4tqhvy7bf (where I put a patch to
that file in trunk) and http://markmail.org/message/gvv76pygq5vxw6fc
(where I suggest an user to try trunk)
So your options are:
1) try to use a nightly build of the dev version
2) Fix UsersLDAPRepository (or try to use the one we have in trunk:
http://svn.apache.org/repos/asf/james/server/trunk/basic-user-function/src/main/java/org/apache/james/userrepository/UsersLDAPRepository.java
) and compile it yourself. (I think you can even compile it with another
name and put it in the
jamesfolder/apps/james/SAR-INF/classes/your/package/classname.class.
The class from trunk need a further parameter "domain" (or it fallback
to "localhost")
Let us know,
Stefano
Thank you.
Regards,
qsquare
Stefano Bagnara-2 wrote:
qsquare ha scritto:
Hi,
Is there Active Directory in JAMES like the Microsoft Active Directory,
so
that I can write a simple JAVA application to extract specific
information
from the Active Directory users?
Thanks in advance!
No.
We have an UsersLDAPRepository letting you get users from a directory
(but I never used it).
There is an outdated doc about LDAP usage here:
http://james.apache.org/server/archive/usingLDAP_v1_2.html
And here you can see the sources for the UsersLDAPRepository:
http://james.apache.org/server/2.3.1/xref/org/apache/james/userrepository/UsersLDAPRepository.html
If you make any attempt to use this stuff please update us with your
progresses so that we can update the documentation/code with your
suggestions.
Stefano
---------------------------------------------------------------------
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]