Validate Active Directory password when saving settings

Ticket: #5284