PrincipalContext pc = new PrincipalContext(ContextType.Domain, "a001svdc02.uk.ad.mm.com");
userIsValid = pc.ValidateCredentials(txtUsername.Text, txtPassword.Text);
This works fine (note that it worked fine without specifying the server too) on my development machine.
However when this code goes up to the server one user gets returned as invalid even though they can log on to windows fine and can log on to the app when it is running on my development machine.
Does anyone have a clue as to what might cause this issue?
could you give more details about this PrincipalContext issue?
Regards
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
419 Points
498 Posts
PrincipalContext issue
Oct 15, 2012 07:00 AM|coolblue|LINK
I have the following code:
PrincipalContext pc = new PrincipalContext(ContextType.Domain, "a001svdc02.uk.ad.mm.com");
userIsValid = pc.ValidateCredentials(txtUsername.Text, txtPassword.Text);
This works fine (note that it worked fine without specifying the server too) on my development machine.
However when this code goes up to the server one user gets returned as invalid even though they can log on to windows fine and can log on to the app when it is running on my development machine.
Does anyone have a clue as to what might cause this issue?
All-Star
32797 Points
3815 Posts
Microsoft
Re: PrincipalContext issue
Oct 17, 2012 02:40 AM|Angie xu - MSFT|LINK
Hi
could you give more details about this PrincipalContext issue?
Regards
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.