OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: particular configuration with LDAP

From: Giovanni Mancuso (suuupermessinalug.org)
Date: Sun Feb 03 2008 - 14:40:16 CST


In the previous email the scheme is not very clear.
In this link is very well:
http://rafb.net/p/Ls4YFo60.html

Giovanni Mancuso ha scritto:
> Hi to all,
> Should I do a particular configuration with postfix and i need help.
> I have a ldap server configured like this:
>
>
> root Suffix
> dc=example,dc=com
> |
> | -----> Company1
> dc=company1,dc=example,dc=com
> | | -----> domain1.1
> o=domain1.1,dc=company1,dc=example,dc=com
> | | -----> domain1.2
> o=domain1.2,dc=company1,dc=example,dc=com
> | | -----> domain1.3
> o=domain1.3,dc=company1,dc=example,dc=com
> | | -----> domain1.4
> o=domain1.4,dc=company1,dc=example,dc=com
> | | -----> Company2
> dc=company2,dc=example,dc=com
> | | -----> domain2.1
> o=domain2.1,dc=company2,dc=example,dc=com
> | | -----> domain2.2
> o=domain2.2,dc=company2,dc=example,dc=com
> | | -----> domain2.3
> o=domain2.3,dc=company2,dc=example,dc=com
> | | -----> domain2.4
> o=domain2.4,dc=company2,dc=example,dc=com
> | | -----> Company3
> dc=company3,dc=example,dc=com
> | | -----> domain3.1
> o=domain3.1,dc=company3,dc=example,dc=com
> | | -----> domain3.2
> o=domain3.2,dc=company3,dc=example,dc=com
> | | -----> domain3.3
> o=domain3.3,dc=company3,dc=example,dc=com
> | | -----> domain3.4
> o=domain3.4,dc=company3,dc=example,dc=com
> | ..................
>
> For each company there can be N domain. And i have N company.
> In my particular configuration i can that the domains that are in
> Company1 can send email only to the domain that are in Company1. The
> domains that are in company2 can send emails only the domains that are
> in company2, and the domains that are in company3 can send emails
> only the domains that are in company3.
> The problem is that i don't know the company of the domain, but i can
> know it only with a search ldap.
> In this case i should make two search ldap.
> First to get a base DN of the company. and second (binding on comany
> DN) to get the domains of the company. Is correct??
> I know that postfix is not able to make it. Is correct?
> How can I fix? Any ideas?
>
> Thanks