james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Merve Temizer <mervet2...@gmail.com>
Subject Multiple Users Repository
Date Wed, 01 Aug 2012 10:23:51 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message