none
OWA logon custom code

    Question

  • Hello,,

    Is there a way to write some custom code to run before launch the OWA application?

    For example, the user type http://server/owa/user_name@domain in the browser. Before OWA itself takes control of the session, Exchange  launches some custom code to make some tests, and after that this code launches OWA.

    It is possible?

    Thanks,

    Gazzoni


    Monday, August 15, 2011 6:55 PM

Answers

All replies

  • You could redirect the owa page to another page where the custom code executes and then if successful provide owa logon page.

    So, users access owa page and users will see briefly the owa logon page and it can be redirected to your custom code web page or site, execute the custom code and depending upon the logic diaply owa logon page or something else.

     

    Monday, August 15, 2011 7:36 PM
  • Hi,

    In fact what I want is to 'block' the owa in some conditions/for some computers/users. But the users already knows the owa url.This custom code would execute some tests and reject certains connections.

    And thanks for your answer.

    João Paulo.

    Monday, August 15, 2011 8:05 PM
  • Another option:

    If this external owa access then, Publish OWA via areverse proxy and apply the logic of bloacking computers\users at reverse proxy. Internal access then disable owa for those users.

    Monday, August 15, 2011 8:10 PM
  • Hum,

    It is a great idea (to use a proxy). But infortunately, this will be used internally, in a dicrect connetion to a CAS server...

    Monday, August 15, 2011 8:14 PM
  • Hello,,

    Is there a way to write some custom code to run before launch the OWA application?

    For example, the user type http://server/owa/user_name@domain in the browser. Before OWA itself takes control of the session, Exchange  launches some custom code to make some tests, and after that this code launches OWA.

    It is possible?

    Thanks,

    Gazzoni



    Hi Gazzoni,

     

    What edition of Exchange is there?

     

    To block some users from Exchange OWA 2007 or higher, use the cmdlets below:

     

     

    Set-CASMailbox –id <userID> -OWAenabled $false

     

    Alternatively, you may try to customize the OWA logon page according the steps indicated here:

     

    Customizing the Outlook Web Access Logon Page

    http://technet.microsoft.com/en-us/library/aa996007(EXCHG.65).aspx

    How to Change the Outlook Web Access Logon Page

    http://support.microsoft.com/kb/321832  

     


    Fiona


    Wednesday, August 17, 2011 6:54 AM
  • Hi Fiona,

    Exchange here is still version 2007 SP3.

    In fact, I would like to block some computers, not users. And customize the logon page does not resolve, because those guys already knows the direct url to access OWA (http://server/owa/username).

    Gazzoni

    Wednesday, August 17, 2011 11:42 AM
  • Hi Fiona,

    Exchange here is still version 2007 SP3.

    In fact, I would like to block some computers, not users. And customize the logon page does not resolve, because those guys already knows the direct url to access OWA (http://server/owa/username).

    Gazzoni


    Hi Gazzoni,

    thanks  for your update. I am afraid that Exchange OWA has not this function that can block access from some computers. I'd suggest you try the methods below:

    1. Add proxy, or a local hosts record for those computer via Group Policy to block OWA url;
    2. Add a rule on your router to block OWA access from those computer IP address;
    3. Add a filter or firewall infront of OWA server to block access from those computer.

    Hope it is helpful.


    Fiona
    Thursday, August 18, 2011 6:07 AM
  • In addition to what Fiona_Lao suggested, you can do do IP address restriction on the owa virtual directory in IIS. Features View, double-click IPv4 Address and Domain Restrictions.

    http://technet.microsoft.com/en-us/library/cc731598(WS.10).aspx

    Thursday, August 18, 2011 4:58 PM