none
Outlook Autodiscover: LoginName is ignored. RRS feed

  • Question

  • Point of Departure

    We are currently deploying a Microsoft Exchange 2010 service. Our e-mail clients include not only Outlook but also Thunderbird, Apple Mail, KMail, various other desktop clients, and mobile devices.

    We would like to make use of the Outlook Autodiscover feature in order to make client setup easier. However, our usernames are different from the users' e-mail addresses.

    Our Approach

    Therefore we implemented a custom static Autodiscover service (POX) that closely follows the Autodiscover Reference (POX). The service is available at https://autodiscover.ourdomain/autodiscover/autodiscover.xml. It takes the clients' POST request, properly extracts the EMailAddress element, retrieves the usernames for the e-mail addresses and returns proper repsonses to the clients.

    The Problem

    We tested this in Outlook 2010, Apple Mail and on an iPhone. The communication between the client and the custom Autodiscover service works fine. Outlook's "Test Autodiscover" feature does not report any problems.

    All clients take the settings provided in the Autodiscover XML response. All settings, but the LoginName element. I.e., the server names, port settings, EWS endpoints, etc. are all correctly entered in the client's configuration, but the username is still the e-mail address and not the username provied in the LoginName element. – The clients simply seem to ignore the LoginName elment.

    A sample response looks as follows

    <?xml version="1.0" encoding="utf-8" ?>
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
            <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
                    <User>
                            <DisplayName>Givenname Surname</DisplayName>
                            <AutoDiscoverSMTPAddress>givenname.surname@ourdomain</AutoDiscoverSMTPAddress>
                    </User>
    
                    <Account>
                            <AccountType>email</AccountType>
                            <Action>settings</Action>
                            <Image>http://autodiscover.ourdomain/Our_Logo.jpg</Image>
                            <ServiceHome>http://www.ourdomain/</ServiceHome>
    
                            <Protocol>
                                    <Type>EXCH</Type>
                                    <Server>exchange.ourdomain</Server>
                                    <Port>443</Port>
                                    <SSL>On</SSL>
                                    <LoginName>username</LoginName>
                                    <ASUrl>https://exchange.ourdomain/EWS/Exchange.asmx</ASUrl>
                                    <EwsUrl>https://exchange.ourdomain/EWS/Exchange.asmx</EwsUrl>
                            </Protocol>
    
                            <Protocol>
                                    <Type>EXPR</Type>
                                    <Server>exchange.ourdomain</Server>
                                    <Port>443</Port>
                                    <SSL>On</SSL>
                                    <LoginName>username</LoginName>
                                    <ASUrl>https://exchange.ourdomain/EWS/Exchange.asmx</ASUrl>
                            </Protocol>
                    </Account>
            </Response>
    </Autodiscover>

    We've tried various other elements (including the DomainName), and we have even taken the response of the Exchange server's original Autodiscover service, used it as a basis for our Autodiscover service (without the LegacyDN), and inserted the LoginName, but even in this case, the LoginName element is ignored by clients.

    The Question

    What are we doing wrong? What can we do to make clients read the username from our custom Autodiscover service's response?

    Any help is appreciated! (We've spent already quite a few hours on that ... ;-)

    Thanks in advance,
    Josef.


    Wednesday, May 9, 2012 5:17 PM

All replies

  • Hi again,

    Does anyone have an idea why the LoginName element is ignored in our XML repsonse (see posting above)? Or can you provide an XML repsonse that contains the LoginName element and works in your environment (preferably Exchange 2010 with Outlook and probably Apple Mail as clients)?

    Thanks,
    Josef.

    Friday, May 18, 2012 3:44 PM