On Fri, Aug 28, 2009 at 10:58:56AM -0400, Michel Bulgado wrote:

> On Fri, 2009-08-28 at 10:48 -0400, Michel Bulgado wrote:
> > Hello 
> > 
> > Using postfix-2.3.3-2.1 + with virtual accounts active directory to make
> > the search for my users. 
> > 
> > I wonder if it is possible to declare more than one ldap server in
> > postfix, for if it fails then postfix ldap1 continue doing searches on
> > LDAP2. 
> > 
> > 
> > failover?
> > Redundancy?
> > 
> > Thanks
> > 
> > Michel
> > 
> > 
> 
> Sorry , this is my config
> 
> accounts_server_host = ldap://server1.home.com:389,
> ldap://server2.home.com:389
> accounts_search_base = ou=home,dc=com
> accounts_query_filter =
> (&(objectClass=user)(!(objectClass=computer))(mail=%s))
> accounts_result_filter = %d/%u/
> accounts_result_attribute = mail
> accounts_bind = yes
> accounts_bind_dn = cn=conector,cn=Users,dc=home,dc=com
> accounts_bind_pw = ***********
> 
> 
> I test but don't work
             ^^^^^^^^^^
You could elaborate on this description of the problem. The level of
detail could be greater.

Multiple servers in a single LDAP table are not a mechanism to extend
searches over multiple LDAP databases when records are not found in the
first database. Rather the second server is only used when connections
to the first server cannot be established.

If you want to stack LDAP databases, use multiple LDAP tables in

        alias_maps
        virtual_alias_maps
        generic_maps
        ...

With multiple tables, each table is consulted in turn until one matches.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to