You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Merve Temizer <me...@gmail.com> on 2012/08/01 12:23:51 UTC
Multiple Users Repository
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.
Re: Multiple Users Repository
Posted by Eric Charles <er...@apache.org>.
Well, domains and users are separate stuff.
Once you have the domains, I understand you have to reuse/access them in
the user part managed by LDAP, but as I said before, I didn't try LDAP
at all.
Maybe if you publish a howto-singledomain-ldap someone could try it also
and further help with the multidomain part.
Thx, Eric
On 08/02/2012 10:51 AM, Merve Temizer wrote:
> 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 <er...@apache.org>
>
>> 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<se...@james.apache.org>
>> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>>
>>
>
--
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
Re: Multiple Users Repository
Posted by Merve Temizer <me...@gmail.com>.
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 <er...@apache.org>
> 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<se...@james.apache.org>
> For additional commands, e-mail: server-dev-help@james.apache.**org<se...@james.apache.org>
>
>
Re: Multiple Users Repository
Posted by Eric Charles <er...@apache.org>.
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