Instead of checking cn use SAMAccountName
Code:
search.Filter = "(cn=" + _filterAttribute + ")"
Code:
'Authenication is working! if (HttpContext.Current.User.Identity.IsAuthenticated) Dim _authenUser As String = HttpContext.Current.User.Identity.Name.ToString Dim _filterAttribute As String = Split(_authenUser, "\")(1)
Leave a comment: