none
How to enable external url for EWS?

    Question

  • Hi.

    When I run: Get-webservicesVirtualDirectory it provides an internal url, but not the external url.It says nothing about the authentication type.

    Q: What is the command to check authentication type for the internal url here?

    Q: What is the authentication set to if I put an external url as follows?:

    Set-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" -externalurl https://mail.contoso.com/EWS/Exchange.asmx

    Friday, June 18, 2010 7:42 AM

Answers

  • If both Basic and Ntlm is configured as allowed authentication method, it will use the one that the client uses to connect to it with.. (if the client uses basic it will connect with basic, if the client use ntlm it will use ntlm and so on)

    The requierment is that at least one authentication is enabled on the webservervirtualdirectory.

    To see thats configured run the command:

    get-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" | fl *AuthenticationMetod*


    /jonas
    • Proposed as answer by Jonas Haggren Evolver Friday, June 18, 2010 9:35 AM
    • Marked as answer by mnmb Friday, June 18, 2010 10:19 AM
    Friday, June 18, 2010 9:35 AM

All replies

  • To check authentication types supported run this Powershell commando..

    get-WebServicesVirtualDirectory -identity CAS01\* | fl fl name,server,*Authentication*

    Friday, June 18, 2010 7:59 AM
  • This gives me:

    InternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated, WSSecurity}

    ExternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated, WSSecurity}

    But how can I find which one is used?

    Friday, June 18, 2010 8:18 AM
  • all of them are configured.

     


    Regards, Mahmoud Magdy Watch Arabic Level 300 Videos about Exchange 2010 here: http://vimeo.com/user3271816 Read pretty advanced Exchange stuff I and other MVPs post here: http://www.enowconsulting.com/ese/blog.asp Or follow my blog: http://busbar.blogspot.com or our corp blog: http://ingazat.wordpress.com and if you Liked my post please mark it as helpful and accept it as an asnwer
    Friday, June 18, 2010 8:21 AM
  • all of them are configured.

    But how can I find which one is used? I

    Friday, June 18, 2010 8:24 AM
  • all of them are configured.

    Can you prove it?


    Friday, June 18, 2010 8:34 AM
  • InternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated, WSSecurity}

    Here you can see what types of authentication you can choose between, but you do not see what is used - or is this completely wrong?

    Friday, June 18, 2010 8:37 AM
  • InternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated, WSSecurity}

    Example if you want to use basic: Set-WebServicesVirtualDirectory-identity "CAS01 \ EWS (Default Web Site)"-externalurl https: / / mail.contoso.com / EWS / Exchange.asmx-BasicAuthentication: $ True

     

    But I still have not received answers to my questions - something I would appreciate:)

    Q: What is the command to check authentication type for the internal url here?

    Q: What is the authentication set to if I put an external url as follows?:

    Set-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" -externalurl https://mail.contoso.com/EWS/Exchange.asmx

     

    Friday, June 18, 2010 8:49 AM
  • Q: What is the command to check authentication type for the internal url here?

    Answer: It is : get-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" | fl InternalAuthenticationMethod

    Q: What is the authentication set to if I put an external url as follows?:

    Set-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" -externalurl https://mail.contoso.com/EWS/Exchange.asm

    Answer: it is not set by this command, to set the authentication you use the command: Set-WebServicesVirtualDirectory -BasicAuthentication $true/$false -LiveIdSpNegoAuthentication $true/$false -WSSecurityAuthentication $true/$false -LiveIdBasicAuthentication $true/$false -BasicAuthentication $true/$false -DigestAuthentication $true/$false -WindowsAuthentication $true/$false


    Choose eather $true or $false in the above command..

    Friday, June 18, 2010 8:58 AM
  • Answer: It is : get-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" | fl InternalAuthenticationMethod

    yes, but you do not see what the url is set to (basic or ntml?). What is the command to see it?

     

    Q: What is the authentication set to if I put an external url as follows?:

    Set-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" -externalurl https://mail.contoso.com/EWS/Exchange.asm Answer: it is not set by this command, to set the authentication you use the command:

    But I can set an url like this: Set-WebServicesVirtualDirectory-identity "CAS01 \ EWS (Default Web Site)"-externalurl https: / / mail.contoso.com / EWS / Exchange

    Will there be no requirement for authentication for this url? (When you set the url without specifying authentication method)

    Friday, June 18, 2010 9:28 AM
  • If both Basic and Ntlm is configured as allowed authentication method, it will use the one that the client uses to connect to it with.. (if the client uses basic it will connect with basic, if the client use ntlm it will use ntlm and so on)

    The requierment is that at least one authentication is enabled on the webservervirtualdirectory.

    To see thats configured run the command:

    get-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" | fl *AuthenticationMetod*


    /jonas
    • Proposed as answer by Jonas Haggren Evolver Friday, June 18, 2010 9:35 AM
    • Marked as answer by mnmb Friday, June 18, 2010 10:19 AM
    Friday, June 18, 2010 9:35 AM
  • Thank you. This explains what I wanted to know.

    (We are using NTLM - then we do not need to type the password,  something you need with basic authentication)

    Friday, June 18, 2010 10:19 AM