Pages

Tuesday, October 10, 2017

OWA/ECP login loop on Exchange 2010/13/16

OWA/ECP login loop on Exchange 2010/13/16
On Exchange server, configuring virtual directory might be pain sometime. A simple misconfiguration of Virtual directory might be the worst nightmare and create login loop, because I had this few days back. While configuring additional CAS server  after few changes done on the Virtual directory, my OWA/ECP page start to go on loop whenever I tried to get login. I was on dark what mistake I had made. So, I tried to list down what might the issue that is causing on looping of my OWA/ECP page. While listing down, I have found two things.
  1. SSL Certificate.
  2. Issue with configuration of Virtual Directory.
SSL Certificate can also be the reason behind this kind of issue. So, you need to make sure you do have correct SSL assigned with IMAP, POP, IIS and SMTP. Also 2nd thing is that SSL certificate is across all of your Exchange server. If the issue is with SSL Certificate, you are lucky and can be resolve easily. But with virtual directory it is not so.
On my Earlier Blog, you can find how to configure Virtual Directory. But as going on, I came for the conclusion with that might not be enough if OWA/ECP login loop issue arises. Hence, here I have made an Table with the specific configuration required while configuring the OWA/ECP Virtual Directory.
On the IIS Manager expand to the default web site and check if the configuration you have made are as of the below Table are not.
Table: Chart of Virtual Directory configuration.
Virtual directory
Default IIS Authentication methods
SSL settings
Default authentication methods
Exchange Admin Center (EAC)
HTTP Redirect
Authentication Methods
Exchange Management
Shell (EMS)
Sites \ Default Web Site
• Anonymous authentication
• Not Required
 Available through EAC
YES
 Internal
 External
aspnet_client• Anonymous authentication• SSL required
NO


Autodiscover• Anonymous authentication
• Basic authentication
• Windows authentication
 • SSL required• Integrated Windows authentication
• Basic authentication
No
Basic, Ntlm, WindowsIntegrated, WSSecurity, OAuthBasic, Ntlm, WindowsIntegrated, WSSecurity, OAuth
ECP
(Exchange Control
Panel)
• Anonymous authentication
• Basic authentication
 • SSL required• Use-forms-based authentication
No
 Basic, Fba Fba
EWS
(Exchange
Web Services)
• Anonymous authentication
• Basic authentication
 • SSL required• Integrated Windows authentication
No
Ntlm, WindowsIntegrated, WSSecurity, OAuthNtlm, WindowsIntegrated, WSSecurity, OAuth
Mapi • Windows authentication • SSL required Not available in EAC
No
Ntlm, OAuth, NegotiateNot configured
Microsoft-Server-Active-Sync• Basic authentication • SSL required• Basic authentication
• Ignore client certificate
No
Not set *
All methods can be used.
Not set *
All methods can be used.
OAB
(Offline
Address Book)
• Windows authentication
None available
No
WindowsIntegrated, OAuthWindowsIntegrated, OAuth
OWA (Outlook Web App)• Basic authentication• SSL required • Use-forms-based authentication
• Domain\user name
No
 Basic, Fba Basic, Fba
OWA\Calendar• Anonymous authentication• Ignore client certificatesNone available
No


OWA\Integrated• Windows authentication• SSL required
• Ignore client certificates
None available
No


OWA\oma (Outlook
Mobile
Access)
• Basic authentication• Ignore client certificatesNone available
No


PowerShell• Windows authentication• Not Required None set
No
 {} {}
Rpc• Basic authentication
• Windows authentication
• SSL required
No


Similarly, only configuration of Default website is not going to solve this issue. Hence you need more Knowledge on configuration of Exchange Back End site too, else you will keep on going loop. Below is the detail configuration you can have on Exchange Back End.
Table: Exchange Back End Virtual Directory Configuration.
Virtual directoryIIS Default Authentication methodsIIS SSL settingsHTTP Redirect
Exchange Back End
• Not RequiredYes
Autodiscover• Anonymous authentication
• Windows authentication
• SSL required
• Ignore client certificates
No
 ecp• Anonymous authentication
• Windows authentication
• SSL required
• Ignore client certificates
No
 EWS• Anonymous authentication
• Windows authentication
• SSL required
• Ignore client certificates
No
 Exchange*
• SSL required
• Ignore client certificates
No
 Exchweb*
• SSL required
• Ignore client certificates
No
 mapi*• Anonymous authentication• SSL required
• Ignore client certificates
No
 Microsoft-Server-ActiveSync• Basic authentication• SSL required
• Ignore client certificates
No
 OAB• Windows authentication• SSL required
• Ignore client certificates
No
owa• Anonymous authentication
• Windows authentication
• SSL required
• Ignore client certificates
No
owa\Calender• Anonymous authentication• Ignore client certificatesNo
 PowerShell• Windows authentication • SSL required
• Accept client certificates
No
Public*
• SSL required
• Ignore client certificates
No
 PushNotifications• Anonymous authentication
• Windows authentication
• SSL required
• Ignore client certificates
No
 Rpc• Windows authentication• Ignore client certificatesNo
 RpcWithCert• Windows authentication• Ignore client certificatesNo
I hope this will help you solving the Exchange OWA/ECP login loop issue. 🙂

Sunday, October 8, 2017

An old password still works after you change it in Outlook on the Web

https://support.microsoft.com/en-us/help/267568/an-old-password-still-works-after-you-change-it-in-outlook-on-the-web

Friday, October 6, 2017

Exchange 2013 EAC / ECP Blank Screen

Exchange 2013 EAC / ECP Blank Screen

When trying to log in into the new Exchange 2013 EAC / ECP you encounter a plain blank screen and get no options at all. The URLs you may see this error on are below.You must attach to these addresses on the CAS server so you need the CAS role installed.
https://ServerName/ecp
https://ServerName/owa
Ive seen this with two seperate issues, one is SSL cert related and one is corruption. If it is SSL related you will see this error in event viewer.

Wednesday, October 4, 2017

A fatal alert was generated and sent to the remote endpoint. This may result in termination of the connection. The TLS protocol defined fatal error code is 51. The Windows SChannel error state is 900.

In Group Policy Editor (run: gpedit.msc),  went to Computer Configuration > Administrative Templates > System > Distributed COM > Application Compatibility and enabled "allow local activation security check exemptions"

Monday, October 2, 2017

https://www.vcloudnine.de/microsoft-exchange-2013-shows-blank-ecp-owa-after-changes-to-ssl-certificates/

EDIT
This issue is described in KB2971270 and is fixed in CU6.
I ran a couple of times in this error. After applying changes to SSL certificates (add, replace or delete a SSL certificate) and rebooting the server, the event log is flooded with events from source “HttpEvent” and event id 15021. The message says:
If you try to access the Exchange Control Panel (ECP) or Outlook Web Access (OWA), you will get a blank website. To solve this issue, open up an elevated command prompt on your Exchange 2013 server.
Check the certificate hash and appliaction ID for 0.0.0.0:443, 0.0.0.0:444 and 127.0.0.1:443. You will notice, that the application ID for this three entries is the same, but the certificate hash for 0.0.0.0:444 differs from the other two entries. And that’s the point. Remove the certificate for 0.0.0.0:444.
Now add it again with the correct certificate hash and application ID.
1
2
3
C:\windows\system32>netsh http add sslcert ipport=0.0.0.0:444 certhash=1ec7413b4fb1782b4b40868d967161d29154fd7f appid="{4dc3e181-e14b-4a21-b022-59fc669b0914}"
 
SSL Certificate successfully added

Monday, September 4, 2017

How to list all DND-enable extensions

List DND-enabled extensions

If the DND is set using the DND feature of the IP-Phone then there is no way you can list them. Otherwise, if it is set using FreePBX feature code (*78) then here is the way to do it:


in linux prompt run:
# asterisk -rx “database show DND” or
#asterisk -rx “database show” | grep “/DND/”
# asterisk -rx "database show DND"
/DND/1002                                         : YES
/DND/1004                                         : YES
/DND/1006                                         : YES
/DND/1007                                         : YES

To remove DND from an extension run:

# asterisk -rx “database del DND ext.”

Monday, July 24, 2017

Export AD Users to CSV using Powershell Script

Export AD Users to CSV using Powershell Script

Description:

We can easily export Active Directory users to CSV file using Powershell cmdlets Get-ADUser and Export-CSV. In this article, I am going to write Powershell script samples to Export AD Users to CSV file and Export AD Users from Specific OU to CSV file using Powershell Script.

Summary:

Export AD Users to CSV using Powershell

The following command export the selected properties of all Active Directory users to CSV file. You can add more attributes as per your wish, refer this article:Get-ADUser Default and Extended Properties to know more supported AD attributes.
1
2
3
4
Import-Module ActiveDirectory
Get-ADUser -Filter * -Properties * |
 Select -Property Name,Mail,Department |
 Export-CSV "C:\\AllADUsers.csv" -NoTypeInformation -Encoding UTF8
Export AD Users to CSV using Powershell Script

Export AD Users to CSV with Filter using Powershell

This command export the selected properties to CSV file of AD users whose City contains the text 'Austin'.
Note: Refer this article:Get-ADUser Default and Extended Properties to know more supported AD attributes.
1
2
3
4
Import-Module ActiveDirectory
Get-ADUser -Filter 'City -like "*Austin*"' -Properties * |
  Select -Property Name,City,Mail,Department,DistinguishedName |
  Export-CSV "C:\\ADUsers.csv" -NoTypeInformation -Encoding UTF8

Export AD Users by LDAP Filter:

Instead of SQL Like Filter, you can also use LDAP Filter to select only required users. Refer this article (AD LDAP Filter Examples) to get more LDAP filter examples. The below command exports all the users who are belongs to Admin department.
1
2
3
4
Import-Module ActiveDirectory
Get-ADUser -LDAPFilter '(Department=*Admin*)' -Properties * |
  Select -Property Name,City,Mail,Department,DistinguishedName |
  Export-CSV "C:\\AdminUsers.csv" -NoTypeInformation -Encoding UTF8

Export ADUsers CSV output:

Get-ADUser - Export Selected properties to CSV file

Export AD Users from specific OU to CSV using Powershell

We can set target OU scope by using the parameter SearchBase. This following command select all the AD users from the Organization Unit 'Austin' and export it to CSV file.
1
2
3
4
Import-Module ActiveDirectory
Get-ADUser -Filter * -SearchBase "OU=Austin,DC=TestDomain,DC=Local" -Properties * |
 Select -Property Name,Mail,Department |
 Export-CSV "C:\\AustinUsers.csv" -NoTypeInformation -Encoding UTF8
Export AD Users from specific OU to CSV using Powershell Script

Wednesday, June 28, 2017

Tách Họ, Tên, Chữ lót trong Excel


Tách Họ, Tên, Chữ lót trong Excel

HỌ: =LEFT(B2,FIND(" ",B2,1)-1)
Đệm: =TRIM(REPLACE(LEFT(B2,FIND("*",SUBSTITUTE(B2," ","*",LEN(B2)-LEN(SUBSTITUTE(B2," ",""))))-1),1,FIND(" ",B2,1)-1,""))
Tên: =RIGHT(B2,LEN(B2)-FIND("*",SUBSTITUTE(B2," ","*",LEN(B2)-LEN(SUBSTITUTE(B2," ","")))))