Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4608
  • Last Modified:

Changing Autodiscover HTTP redirect URL

When i originaly installed CAS 2010 in my exchange 2003 organization i used hostname"cas.domain.com/.." for external URLs.  We then decided to change hostname to mail.domain.com.  So i set the external url on all virtual directories including the 'autodiscover' to the new hostname using EMS.  When i run remote connectiveity analyzer, i see that in the step where it tests the HTTP redirect it still goes to the old url.  I checked all virtual directories,  i used -Getxxx : fl *  to view each directory and all of them showed the new external url "mail.domain.com".  I also check them in IIS.  They are all using the new host name.  Also, users (still on exchange 2003) get the the popup to allow redirect to to 'cas.domain.com/..." which is the old host name.   I have the redirect url set to use the new name.  The SAN certificate has the new name.  AD objects attributes show the new name.  But something is still referening the old the name.  Here is the error in ExRCA.
---------------------------------------------------------------------------------
ExRCA is checking the host autodiscover.domain.com for an HTTP redirect to the Autodiscover service.
  The redirect (HTTP 301/302) response was received successfully.
   Additional Details
  Redirect URL: https://cas.domain.com/Autodiscover/Autodiscover.xml 
 
 Attempting to test potential Autodiscover URL https://cas.domain.com/Autodiscover/Autodiscover.xml 
  Testing of this potential Autodiscover URL failed.
-----------------------------------------------------------------------

What is it that i'm missing here?  Why is it still redirecting to the old URL?  I also have to mention that i actualy removed and recreated all virtual directories (OWA, EWA,..) and it sitll tries to redirect to old url.   Any help on this will be greatly appreciated.
0
Zeetan
Asked:
Zeetan
1 Solution
 
praveenkumare_spCommented:
does the exchange 2010 users work fine ?

exchange 2003 does not have autodiscover to work

what is the primary smtp address of the users in exchange 2003 ?

what email address they used to create the outlook account ?


answering these questions will help not only me even u to understand where the issue is
0
 
ZeetanAuthor Commented:
There are no exchange 2010 users.  Everyone is still on 2003.   The issue is that the old external url (cas.domain.com) is still being used.   I know that because i see it in ExRCA results and more importantly when the users get the popup to allow redirect to the old url.   I need to know where could that URL be refereced?   given the the fact that i have viewed alll setting as explained in my previous port and they all showed the new URL.
0
 
AkhaterCommented:
Get-clientaccessserver | fl name,*uri*

It shld return CAS.domain.com in your case,

Change it by running set-clientaccessserver
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
ZeetanAuthor Commented:
Hi Akhater,   when i run "Get-clientaccessserver | fl name,*uri* it only shows the locat internal hostname of the server which is (servername).    I think the main issue for me is that the autodiscover service redirect URL when it tries to use HTTP is referecing the old external URL (cas.domain.com). See below..

---------------------------------------------------------------------------------
ExRCA is checking the host autodiscover.domain.com for an HTTP redirect to the Autodiscover service.
  The redirect (HTTP 301/302) response was received successfully.
   Additional Details
  Redirect URL: https://cas.domain.com/Autodiscover/Autodiscover.xml
 
 Attempting to test potential Autodiscover URL https://cas.domain.com/Autodiscover/Autodiscover.xml 
  Testing of this potential Autodiscover URL failed.
-----------------------------------------------------------------------

How do i change the redirect to use the new URL  mail.domain.com?




 

0
 
AkhaterCommented:
ok let me ask you another question, do you have an srv records in your EXTERNAL dns zone _autodiscover pointing to cas.domain.com ?

if you don't know drop me your domain i will do the test for you (way to contact me in my profile)
0
 
ZeetanAuthor Commented:
No i don't have any srv records in my external zone pointing to cas.domain.com.  Both autodiscover.domain.com and mail.domain.com point to the public ip of the cas server.  
0
 
AkhaterCommented:
It cant be exrca works like that

A. Check for domain.com/autodiscover it it fails
B. Check for autodiscover.domain.com if it fails
C. Chech for srv records

So,if you have an autodiscover A record it will use it!

Create for me a test user/ pass so i can help out
0
 
ZeetanAuthor Commented:
Thanks Akhater...I'd love to give you test user to help me resolve this but it may get me in trouble:)..im sure you understand.   Ok so below is a paste of the ExRCA test details for the part that is failing.  Thisi is the test where it attempts to contact the autodiscover service using the HTTP redirect method.  The problem is that the Redirect URL it uses is the old external name (cas.domain.com).  It will then of course tries to resolve the old name and checks for srv record but it can't find it because it no longer exists.  All other test are succesful and show the new external name which is (mail.domain.com).   Below is the failing test and  I have bolded the part in question.    

-----------------------------------------------------------------------------------------------------------------
Attempting to contact the Autodiscover service using the HTTP redirect method.
  The attempt to contact Autodiscover using the HTTP Redirect method failed.
   Test Steps
   Attempting to resolve the host name autodiscover.domain.com in DNS.
  The host name resolved successfully.
 
 
 Testing TCP port 80 on host autodiscover.domain.com to ensure it's listening and open.
  The port was opened successfully.
ExRCA is checking the host autodiscover.domain.com for an HTTP redirect to the Autodiscover service.
  The redirect (HTTP 301/302) response was received successfully.
   Additional Details
  Redirect URL:https://cas.domain.com/Autodiscover/Autodiscover.xml
Attempting to test potential Autodiscover URL https://cas.domain.com/Autodiscover/Autodiscover.xml 
  Testing of this potential Autodiscover URL failed.
------------------------------------------------------------------------------------------------------------------
0
 
AkhaterCommented:
OH well that's it then :)

open your IIS find your autodiscover virutal direcotry you have a redirection option on your right hand side check it ;)
0
 
ZeetanAuthor Commented:
This was the first thing i checked when i first had this issue.  The redirection on the autodiscover virutal directory show the correct address: mail.domain.com.  Strange!! I know.   Where else could that setting be stored?
0
 
AkhaterCommented:
any ISA/TMG servers ?
0
 
ZeetanAuthor Commented:
Nope, no ISA.  The CAS is behind a load balancer which configured to send requests to "mail.domain.com" and "autodiscover.domain.com (443, 80, etc..) to the CAS server.  I checked with the network folks previously and they said that they don't have anything configured for cas.domain.com
0
 
AkhaterCommented:
there is one last thing that it could be

open iis go to your autodiscover virtual directory and click Explore

any file there like default.html .asp something ?

can u share a screenshot of this directory
0
 
ZeetanAuthor Commented:
I explored the autodiscover virtual directory and didn't see anything.  I even opend each files and searched for the old name and didn't get any resutls.   Here is a screenshot
autodiscover.bmp
0
 
mbrooks27Commented:
http://support.microsoft.com/kb/940726 should help and resolve the issue.
0
 
ZeetanAuthor Commented:
Only reinstalling the CAS got rid of the old name.  
0
 
ZeetanAuthor Commented:
Only reinstalling the CAS got rid of the old name but im sure there is a better way to do it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now