I am implementing Active directory login for my Web Application. We have 2 offices and both office share same Domain but sexond office is connected in network through VPN so users of that office are not able to login using active directory credential. 1st
office users can loggeg in in same site. please review my code and tell me what is missing or wrong :
string User = txtUser.Text;
string Pass = txtPass.Text;
PrincipalContext pc = new PrincipalContext(ContextType.Domain, "MyDomain");
bool b = pc.ValidateCredentials(User, Pass);
you can use unique Password,and you may need to select the 'Authentication required to search LDAP. Please change your admin username to a DN & try. Using UPN format is not supported for the admin credentials.
Member
342 Points
122 Posts
Active directory login failed for VPN users
Aug 13, 2014 01:15 AM|ajay.kalol|LINK
Hello guys,
I am implementing Active directory login for my Web Application. We have 2 offices and both office share same Domain but sexond office is connected in network through VPN so users of that office are not able to login using active directory credential. 1st office users can loggeg in in same site. please review my code and tell me what is missing or wrong :
ActivedirectoryLogin
http://ajaypatelfromsanthal.blogspot.in
Member
342 Points
122 Posts
Re: Active directory login failed for VPN users
Aug 13, 2014 09:04 AM|ajay.kalol|LINK
it is solved. Don't know how but I had reset all password of users and it works
ActivedirectoryLogin
http://ajaypatelfromsanthal.blogspot.in
None
0 Points
3 Posts
Re: Active directory login failed for VPN users
Sep 04, 2014 02:47 AM|KimberlyDeborah|LINK
you can use unique Password,and you may need to select the 'Authentication required to search LDAP. Please change your admin username to a DN & try. Using UPN format is not supported for the admin credentials.
ActivedirectoryLogin