Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-2009, 09:52 AM
Member
 
Posts: 12
Default External LDAP authentication - failover

All,

I have 3 external LDAP servers for my domain, and I'd like Zimbra to be able to use all of them for authentication. Ideally, I'd like Zimbra to round-robin the queries between the 3 servers like the rest of my LDAP clients do, but I can live with "try the first, then fall back to the second, then the third" behavior. I have configured the Zimbra external authentication with my 3 servers, but when I put in an iptables rule to simulate a failure of my first LDAP server, authentication in Zimbra just times out waiting for the response from the first. Is there some directive I'm missing to get failover and/or round-robin working?

Thanks!

Josh
Reply With Quote
  #2 (permalink)  
Old 12-16-2009, 01:37 PM
Loyal Member
 
Posts: 83
Default

Hi,

Would you not be able to do this with DNS Round Robin....
But that would mean that the the client would have to try reconnect on failure, which I take it is not happening.

Cheers
Heinzg
__________________
Motions of a day at work -
Reply With Quote
  #3 (permalink)  
Old 12-16-2009, 01:40 PM
Member
 
Posts: 12
Default

Zimbra has the option to add additional external authentication URLs. Should I be using DNS round robin and entering my single round robin host? Or should I use the additional URLs?

The specific problem is that when my first configured LDAP server URL is not available, the client sees an authentication failure error (after what appears to be a timeout delay) when connecting either via the web interface or via IMAP.

Regards,

Josh
Reply With Quote
  #4 (permalink)  
Old 12-16-2009, 02:58 PM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Quote:
Originally Posted by JoshUCSC View Post
Zimbra has the option to add additional external authentication URLs. Should I be using DNS round robin and entering my single round robin host? Or should I use the additional URLs?

The specific problem is that when my first configured LDAP server URL is not available, the client sees an authentication failure error (after what appears to be a timeout delay) when connecting either via the web interface or via IMAP.

Regards,

Josh
DNS round-robin wouldn't really help as the record would get cached and you would have to take the failed host out of DNS, flush the cache, and re-query in order to get up and running again in a failure.

You may want to do something more like HAProxy on your LDAP hosts so it handles the load-balancing and fail-over for you. Then, Zimbra and other applications that use those LDAP servers only have to look to one hostname/IP.


It looks like there is some sort of LDAP auth failover built into Zimbra (Bug 21866 – Configurable LDAP connection timeout for GAL and Auth), but maybe there's a bug with the failover? Also, I'm not sure if Zimbra marks a host as 'dead' when it finally does time out and stops trying that host on subsequent requests or how that is handled.
__________________
What a n00b!
Reply With Quote
  #5 (permalink)  
Old 12-16-2009, 03:08 PM
Member
 
Posts: 12
Default

I just used iptables to simulate a failure of my primary LDAP server, and tried to log in to my zimbra server's web interface. I got this error message after about 60 seconds:

???remote.TIMEOUT???

It seems like I've got different behavior than the bug. :-(
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.