Difference between revisions of "Ajcody-External-Authentication"

(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|  width="100%" border="0"
{{BC|Zeta Alliance}}                        <!-- Note, this will also add [[Category: Zeta Alliance]] to bottom of wiki page. -->
| bgcolor="orange" | [[Image:Attention.png]] - This article is NOT official Zimbra documentation. It is a user contribution and may include unsupported customizations, references, suggestions, or information.
__FORCETOC__                              <!-- Will force a TOC regards of size of article. __NOTOC__ if no TOC is wanted. -->
<div class="col-md-12 ibox-content">
==External Authentication==            <!-- Normally will reflect page title. Is listed at very top of page. -->
{{KB|{{ZETA}}|{{ZCS 8.5}}|{{ZCS 8.0}}|{{ZCS 7.0}}|}}            <!-- Can only handle 3 ZCS versions. -->
{{WIP}}                                               <!-- For pages that are "work in progress". -->
==External Authentication==
===Actual External Authentication Homepage===
===Actual External Authentication Homepage===
Line 133: Line 135:
====Support for SSO SPNEGO - ZWC, ZCO Outlook, And AD====
====Support for SSO SPNEGO - ZWC, ZCO Outlook, And AD====
=====Commonly Asked Questions That Need Answers=====
* Q. If a user is logged onto a domain computer, is there a way of configuring Connector for Outlook to use pass through authentication rather than storing the password or prompting for a password?
** A. Yes.
*** To modify existing ZCO install, ensure that the Store Password HKEY is diabled
**** HKEY_LOCAL_MACHINE\SOFTWARE\Zimbra\StorePassword = 0
*** The ZCS server must also be setup for this, see the documentation below.
*** I've also made an RFE to include more crossed references in our documentation about SSO and ZCO in the admin guide.
**** RFE "Include ZCO references or setup steps in Admin guide for SPNEGO / SSO"
***** http://bugzilla.zimbra.com/show_bug.cgi?id=72541
* Q. If a user is logged into a domained computer and starts Outlook for the first time, can Connector for Outlook pull the email address for this user from Active Directory rather than prompting for it?
** A. I've filed this RFE
*** RFE "ZCO msi to allow auto-population of email field during setup for user"
**** http://bugzilla.zimbra.com/show_bug.cgi?id=72539
* Q. How to configure location of ZDB file to be in the roaming profile?
** A. Please see the following references for ZDB files and options.
*** http://www.zimbra.com/docs/ne/latest/zcs_connector_for_outlook_guide/wwhelp/wwhimpl/js/html/wwhelp.htm#href=ZCO_Admin_Guide_7_0.ZDB_Configuration_Options.html
*** http://www.zimbra.com/docs/ne/latest/zcs_connector_for_user_guide/wwhelp/wwhimpl/js/html/wwhelp.htm#href=ZCO_User_Instructions_7_0.Configuring_Advanced_ZCO_Settings.html
** A. I've also made the following RFE
*** RFE "ZCO msi customization to include ZDB location path"
**** http://bugzilla.zimbra.com/show_bug.cgi?id=72549
* Q. When a user first starts Outlook, is there a way of telling Outlook to use Connector for Outlook as the default?
** A. Possible answer, depending on the exact nature of the question.
*** RFE/BUG "When setting up a new profile, can we enable the "prompt for profile""
**** http://bugzilla.zimbra.com/show_bug.cgi?id=9608
**** After creating the zimbra profile, the behaviour is:
***** 1. if this new zimbra profile is the only profile make it the default.
***** 2. if this new profile is not the only profile, make it the default and enable the prompt.
*** RFE "First Run of Outlook for user to launch ZCO install & setup"
**** http://bugzilla.zimbra.com/show_bug.cgi?id=72540
=====Existing References And Documentation=====
See the following [As of Apr 3, 2012]
See the following [As of Apr 3, 2012]
Line 150: Line 185:
**** cscript ZmCustomizeMsi.js ZimbraOlkConnector.msi -sn server.example.com -pw 0
**** cscript ZmCustomizeMsi.js ZimbraOlkConnector.msi -sn server.example.com -pw 0
**** For more information, see Appendix B, Configuring SPNEGO Single Sign-On for ZCS in the VMware Zimbra Collaboration Server Administrator’s Guide."
**** For more information, see Appendix B, Configuring SPNEGO Single Sign-On for ZCS in the VMware Zimbra Collaboration Server Administrator’s Guide."
* To modify existing ZCO install
* To modify existing ZCO install, ensure that the Store Password HKEY is diabled
** For ZCO, ensure that the Store Password HKEY is diabled
** HKEY_LOCAL_MACHINE\SOFTWARE\Zimbra\StorePassword = 0
*** HKEY_LOCAL_MACHINE\SOFTWARE\Zimbra\StorePassword = 0
* And on a ZCS server you'll find the following reference:
* And on a ZCS server you'll find the following reference:
** /opt/zcs/docs/spnego.txt  
** /opt/zcs/docs/spnego.txt
===== Relevant Bugs/ RFE's =====
===== Relevant Background Bugs/ RFE's =====
*"Outlook Connector Single Sign On"
*"Outlook Connector Single Sign On"
Line 225: Line 259:
** http://bugzilla.zimbra.com/show_bug.cgi?id=64214
** http://bugzilla.zimbra.com/show_bug.cgi?id=64214
*** "works" -  QA comment wasn't specific against what version of zcs though.
*** "works" -  QA comment wasn't specific against what version of zcs though.
[[Category: Community Sandbox]]
[[Category: Community Sandbox]]
[[Category: Author:Ajcody]]
[[Category: Zeta Alliance]]

Latest revision as of 16:35, 20 June 2016

External Authentication

   KB 2703        Last updated on 2016-06-20  

(0 votes)
24px ‎  - This is Zeta Alliance Certified Documentation. The content has been tested by the Community.

Actual External Authentication Homepage

Please see Ajcody-External-Authentication

General Topics

Zimbra supports the ability to use an external authentication source, but we don't support the external authentication servers setup and configuration.

Please see the following for more details:

You can also use the forums to see if others have worked out some good instructions when working with your particular external authentication server.


Another possibility is the use of Preauth, see:

SSO with Sun IAM - Identity And Access Manager

There is no Access Manager Policy Agent for Jetty Application Server [Oct 21, 2008]. We suggest the following.

  1. Build a webpage that is protected by Sun Java Access Manager. Presumably this would be an apache tomcat served page so that SJAM would be able to manage it with its existing policy agent for apache tomcat. This page would interact with SJAM to get access checks and then use the standard Zimbra pre-auth mechanism to pre-auth the user and bounce them into the zimbra app.
  2. In Zimbra, you would configure (on the domain) zimbraWebClientLoginURL (and zimbraWebClientLogoutURL), to the address of that apache tomcat served webpage from step 1 above. If someone attempts to login to zimbra directly, they would be redirected to the page which is controlled by SJAM. And when logging out, they would be again redirected to the webpage that is controlled by SJAM. There would be no way to log into or out of Zimbra without the approval and control of SJAM.

For details on the preauth mechanism, see:

JA-SIG Central Authentication Service Or CAS

CAS is an authentication system originally created by Yale University to provide a trusted way for an application to authenticate a user. CAS became a JA-SIG project in December 2004.


CAS and Public Share Issues

Adding the following as reported by a customer, with their permission.

When a Zimbra calendar has a Public share added, the url is something like 
"https://my.server.edu/home/user@domain.edu/Calendar.html".  Once the Zimbra 
app determines that this calendar has a Public share, it gets the calendar 
data through the /home directory path, but it requests the images and css data 
from the /zimbra/img and /zimbra/css directories.  We previously did not let 
unauthenticated users access /zimbra/img or /zimbra/css.  We added a modification 
to our casclient.jar code to allow requests from non-authenticated users to 
return data from these two directories, since these two directories do not 
contain any user or private system data.

And a more detailed explanation:

In the CASifying Zimbra setup, this is the default filter mapping they have you 
set up in the /opt/zimbra/jetty/etc/zimbra.web.xml.in file:

   <filter-name>CAS Filter</filter-name>

This default url pattern will trigger Zimbra to run any request made to 
"https://my.server.edu/zimbra/..." through the casclient.jar filter.

Note, one thought my co-worker and I had was to modify this section of the 
zimbra.web.xml.in file to exclude /img and /css, which should accomplish the 
same thing we did by modifying the casclient.jar file.  Unfortunately, in our 
web-searching for Jetty Servlet 2.4 information about what you can do with the 
url-pattern, it did not appear that you could exclude or negate any url-patterns.  
If you or some other individual had any desire, you might have more luck in 
finding a way to accomplish this.  We thought it was better to modify the 
casclient.jar file anyway, as that carries over through upgrades, but changes to 
the zimbra.web.xml.in file have to be reapplied after every upgrade. **

Any custom filtering you wish to do for your location would be made in the 
casclient.jar archive.  After unjarring casclient.jar, the file you will modify is:  


Certain requests could be filtered out before being sent on to the CAS server 
to reduce traffic and cpu usage.  Some examples would be requests for the login 
or logout pages, as the user is on their way to authenticate or de-authenticate, 
so checking these requests would usually be unnecessary.  This is also the place 
where we added code that excluded the /zimbra/img and /zimbra/css directories.  
Your code would look something like:

String uri = ((HttpServletRequest)request).getRequestURI();

if(uri.startsWith("/zimbra/img") || uri.startsWith("/zimbra/css"))
      fc.doFilter(request, response);

Support for SAML Shibboleth

Please see the following RFE:


Support for SSO SPNEGO - ZWC, ZCO Outlook, And AD

Commonly Asked Questions That Need Answers
Existing References And Documentation

See the following [As of Apr 3, 2012]

Relevant Background Bugs/ RFE's
Comment #25 From David Pitt 2011-05-18 01:54:01
Approach adopted in current solution:

If you're signed onto a domain with a Windows username that matches the Zimbra
name used in the Outlook profile, then ZCO will attempt to use SSO, falling
back to a conventional signon if SSO fails.

This holds both for existing ZCO profiles and for new ones (so there's
currently no concept of a SSO-specific profile). In this respect ZCO largely
mirrors the SSO behaviour of the web client, always trying to use SSO first if
it's available. One key difference from the web client is that a ZCO user can
create a non-SSO profile for a different email account on the same server
(whereas if you point the web client at an SSO-configured server then you are
not given the opportunity to specify a username).

If the target server hasn't been set up with a SPNEGO redirect then SSO will
quickly fail (before any attempt to authenticate against the server) & fall
back to a normal signon. (So the impact on servers which aren't set up for SSO
is minimal.)

There's no new UI content at this stage for SSO. When creating a new profile
for an SSO target account the password can simply be left empty.

For correct operation ZCO must be configured with StorePassword=0 in the Zimbra
registry settings. (This can be set within the MSI using ZmCustomizeMsi.js
prior to installation.)

------- Comment #31 From David Pitt 2011-05-20 01:51:39

One extra bit of clarification on Comment #25:-  as with the web client, the
server name specified in the profile must match that used in the SPNEGO SPN (in
the Windows domain controller setup) for SSO to be used.
(See ZimbraServer/docs/spnego.txt for notes on configuring SPNEGO.)

So if, for example, the URL to be used with the web client in order to use SSO
then the ZCO profile will only use SSO if the server name is set to

------- Comment #32 From Nidhi Vyas 2011-05-20 02:23:05

Verified on ZimbraConnectorOLK_7.1.1.6321_x86/

Signed onto a domain with a Windows username that matches the Zimbra
name used in the Outlook profile then no need to specify the password while
creating profile.
Store password was set to 0.

Tried for both exsiting and new profile.
The target server had SPNEGO redirect enabled.

Marking this as verified.

Jump to: navigation, search