Catch active directory exception to show as a error to the user

Ticket:	#5866