Exchange 2003 ActiveSync w/ SSL and/or forms-based authentication.
by Travis on Mar.29, 2009, under Tech Stuff
Probably one of the most common complaints when someone is deploying Exchange and the organization has Windows Mobile Phones that they would like to sync up with the Exchange server is the puzzling “Why won’t this just work?” question that plagues system administrators. Usually this is following the flagging the option to use forms-based authentication. While the solution is out there, sometimes folks don’t know exactly why or where the problem is originating so they have a hard time finding it. Well, hopefully this little paragraph describing the problem will allow some search engine somewhere to allow someone, somewhere to locate this solution easier. That and it’s always good to just have this one handy in your local arsenal of tools that Myke and I are comprising. So. Adding to our list of ‘ oh yeah, that’s how I fixed that ‘ articles… here’s how to resolve why Microsoft ActiveSync will not work any Exchange installation where SSL and/or forms-based authentication has been enabled out of the box. Keep in mind these changes should be made to the server with the mailboxes on them, not a front-end server. Also something worth noting is that if you have an SBS2003 installation, these options should already be set. If they are not or you are having problems with ActiveSync, run through these instructions to check and ensure that they are all present. If they are, perhaps your problem isn’t in authentication or contacting the server, but something a little easier to address. 🙂
**This method will involve creating a new virtual directory from a copy of the original to handle related requests. If you are not comfortable with registry changes or IIS settings, you may not want to try this.
Disable forms-based authentication on the Exchange server you are about to modify.
- Open Exchange Manager.
- Expand Administrative Groups, expand the first administrative group, and then expand Servers.
- Expand the server container for the Exchange Server 2003 server that you will be configuring, expand Protocols, and then expand HTTP.
- Under the HTTP container, right-click the Exchange Virtual Server container, and then click Properties.
- Click the Settings tab, clear the Enable Forms Based Authentication check box, and then click OK.
- Close Exchange Manager.
- Click Start, click Run, type IISRESET/NOFORCE, and then press ENTER to restart Internet Information Services (IIS).
Create a secondary virtual directory and configure ActiveSync to communicate with it.
- Start Internet Information Services (IIS) Manager.
- Locate the Exchange virtual directory. The default location is as follows:
Web Sites\Default Web Site\Exchange
- Right-click the Exchange virtual directory, click All Tasks, and then click Save Configuration to a File.
- In the File name box, type a name. For example, type ExchangeVDir. Click OK.
- Right-click the root of this Web site. Typically, this is Default Web Site. Click New, and then click Virtual Directory (from file).
- In the Import Configuration dialog box, click Browse, locate the file that you created in step 4, click Open, and then click Read File.
- Under Select a configuration to import , click Exchange, and then click OK.A dialog box will appear that states that the “virtual directory already exists.”
- Select the Create a new virtual directory option. In the Alias box, type a name for the new virtual directory that you want Exchange ActiveSync and Outlook Mobile Access to use. For example, type exchange-oma. Click OK.
- Right-click the new virtual directory. In this example, click exchange-oma. Click Properties.
- Click the Directory Security tab.
- Under Authentication and access control, click Edit.
- Make sure that only the following authentication methods are enabled, and then click OK:
- Integrated Windows authentication
- Basic authentication
- On the Directory Security tab, under IP address and domain name restrictions, click Edit.
- Click the option for Denied access, click Add, click Single computer and type the IP address of the server that you are configuring, and then click OK twice.
- Under Secure communications, click Edit. Make sure that Require secure channel (SSL) is not enabled, and then click OK.
- Click OK, and then close the IIS Manager.
- Click Start, click Run, type regedit, and then click OK.
- Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MasSync\Parameters
- Right-click Parameters, click to New, and then click String Value.
- Type ExchangeVDir, and then press ENTER. Right-click ExchangeVDir, and then click Modify.NoteExchangeVDir is case-sensitive. If you do not type ExchangeVDir exactly as it appears in this article, ActiveSync does not find the key when it locates the exchange-oma folder.
- In the Value data box, type the name of the new virtual directory that you created in step 8. For example, type /exchange-oma. Click OK.
- Quit Registry Editor.
- Restart the IIS Admin service. To do this, follow these steps:
- Click Start, click Run, type services.msc, and then click OK.
- In the list of services, right-click IIS Admin service, and then click Restart.
To re-enable forms-based communcation, you may do the following:
- Open Exchange Manager.
- Expand Administrative Groups, expand the first administrative group, and then expand Servers.
- Expand the server container for the Exchange Server 2003 server that you will be configuring, expand Protocols, and then expand HTTP.
- Under the HTTP container, right-click the Exchange Virtual Server container, and then click Properties.
- Click the Settings tab, click to select the Enable Forms Based Authentication check box, and then click OK.
- Close Exchange Manager.
- Click Start, click Run, type IISRESET/NOFORCE, and then press ENTER to restart Internet Information Services (IIS).
Hopefully this will help you out. If not, send your error along to one of us and we’ll see if we have a solution. If we do, we’ll post it up. 🙂
Mirrored on: http://techtalk.ihatemykereinhold.com/2009/03/30/exchange-2003-activesync-w-ssl-andor-forms-based-authentication/

September 9th, 2009 on 1:02
Hi, I really hope you can help me!
I have recently taken up the management of our internal servers and we have recently purchased new mobiles which we are supposed to be connecting to our exchange server for mobile email access.
I have run through the above instructions and I have run through the steps in this post (http://blog.brightpointuk.co.uk/configuring-exchange-2003-activesync-using-self-signed-ssl-certificate) and still i can’t get the phones to connect to our exchange. They recognise the need to accept our certificate and do. But when you sync, no info comes through.
The only difference i can see from the above instructions is that we don’t have a “default web site” listed, only our Outlook web access site (which has the exchange virtual server listed). Also when you go into exchange system manager there is an “Exchange Virtual Server” listed but it won’t start because the other listing uses the same ports etc. The other listing being “OWA”.
Our outlook web access site is still working fine.
I tried to install this app to help with the active sync server setup “http://www.microsoft.com/downloads/details.aspx?familyid=e6851d23-d145-4dbf-a2cc-e0b4c6301453&displaylang=en” but it fails with the error message saying that there was no default web site found.
I’d really appreciate any help.
Thanks
September 12th, 2009 on 10:01
You have mail!