james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Charles <e...@apache.org>
Subject Re: Multiple Users Repository
Date Thu, 02 Aug 2012 08:37:47 GMT
Hi Merve,
You can't have multiple repositories in userrepository.conf.

LDAP only manages the users. You still have to have a separate 
persistence (non LDAP) for the domains
http://james.apache.org/server/3/config-domainlist.html

Thx, Eric

On 08/01/2012 12:23 PM, Merve Temizer wrote:
> Hello,
>
> I can do authentication with LDAP.
>
> Two configurations below run excellent when they are on their own.
>
> But i want both at the same time
>
> i tried below lines in usersrepository.conf
>
> <repository name="LocalUsers"
> class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository"
> ldapHost="ldap://localhost:10389" principal="uid=admin,ou=system"
> credentials="secret" userObjectClass="inetOrgPerson"
> userBase="ou=users,ou=system" userIdAttribute="uid"><UsersDomain>example.com
> </UsersDomain><LDAPRoot>dc=example,dc=com</LDAPRoot><MailAddressAttribute>mail</MailAddressAttribute><IdentityAttribute>uid</IdentityAttribute><AuthenticationType>simple</AuthenticationType><ManagePasswordAttribute>TRUE</ManagePasswordAttribute><PasswordAttribute>userPassword</PasswordAttribute></repository>
>
> <repository name="LocalUsers"
> class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository"
> ldapHost="ldap://localhost:10389" principal="uid=admin,dc=merve,dc=com"
> credentials="secret" userObjectClass="inetOrgPerson"
> userBase="ou=users,dc=merve,dc=com" userIdAttribute="uid"><UsersDomain>
> merve.com
> </UsersDomain><LDAPRoot>dc=merve,dc=com</LDAPRoot><MailAddressAttribute>mail</MailAddressAttribute><IdentityAttribute>uid</IdentityAttribute><AuthenticationType>simple</AuthenticationType><ManagePasswordAttribute>TRUE</ManagePasswordAttribute><PasswordAttribute>userPassword</PasswordAttribute></repository>
>
>   but it failed.
>
> Can you suggest something, is it possible to have mıltiple domains?
>
> Thanks.
>


-- 
eric | http://about.echarles.net | @echarles


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message