Hi,
I can not understand.
I want to ask by another way.
In domainlist-template.conf
<domainlist class="org.apache.james.domainlist.xml.XMLDomainList">
<domainnames>
<domainname>localhost</domainname>
</domainnames>
<autodetect>true</autodetect>
<autodetectIP>true</autodetectIP>
<defaultDomain>localhost</defaultDomain>
</domainlist>
it allows to describe more than one domain as i understand.
Thus, this makes me think that i can add example.com(e.g. dc=example,dc=com
node), merve.com (e.g. dc=merve,dc=com node) etc.
And than tell James to use all of them.
As you know james-cli.sh allow me to "adddomains".
I can not understand why i can not bind all these domains to LDAP nodes.
If i cant why James allow me to have multiple domains?
2012/8/2 Eric Charles <[email protected]>
> 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<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<[email protected]>
> For additional commands, e-mail:
> [email protected].**org<[email protected]>
>
>