Sample program of the AD authentication.