Last post Nov 02, 2020 01:00 AM by teenajohn1989
Nov 02, 2020 01:00 AM|teenajohn1989|LINK
After exploring in internet , LDAP can be integrated in ASP.NET Core razor pages using
I followed the method they are using in this post.
When i execute the code,its entering into the highlighted code,but not redirecting to home page.
// set up domain context
using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "par"))
// validate the user's credentials
if (ctx.ValidateCredentials(userName, password)
// credentials are OK --> allow user in
// credentials aren't OK --> send back error message
When i debugged the code,its showing ValidateCredentials
doesnot exist in the current context.
Could some one please help me to figure out the issue.