Click here to Skip to main content
Sign Up to vote bad
good
Hi.
 
I am developing a library for active directory operations like authentication, create user, delete user, enable/disable user and change password.
 
My library works fair except a few bugs.
 
Issue #1. When I call...
UserPrincipal.SetPassword(somePassword);
...the password is simply set even if I try with the previous password when the Enfore Password History policy is set with a value 9 passwords remembered. When this policy is active, my password change code is expected to fail because it is a recently used one. But my code simply sets the new password. Any idea about how to fix this?
 
Issue #2. When I set a password, the password is rejected if the complexity requirement is not met. Is there any idea to retrieve the active password policy settings so that I can display a friendly message to the end user?
Posted 23 Feb '13 - 20:07


1 solution

  Permalink  
Comments
ananthanunni - 24 Feb '13 - 2:45
Thanks for your time. But this is not exactly what I want. I am not doing anything about asp.net validation controls. I am trying to work with Active Directory and get policy from there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 445
1 OriginalGriff 295
2 Arun Vasu 253
3 Zoltán Zörgő 194
4 CPallini 173
0 Sergey Alexandrovich Kryukov 10,129
1 OriginalGriff 7,749
2 CPallini 4,181
3 Rohan Leuva 3,482
4 Maciej Los 2,999


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid