Click here to Skip to main content
11,714,345 members (82,856 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Windows LDAP Server2008 , +
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:07pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
ananthanunni at 24-Feb-13 2:45am
   
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
0 Sergey Alexandrovich Kryukov 540
1 Maciej Los 259
2 Richard MacCutchan 230
3 OriginalGriff 140
4 F-ES Sitecore 140
0 Sergey Alexandrovich Kryukov 545
1 CHill60 375
2 Maciej Los 324
3 Richard MacCutchan 310
4 OriginalGriff 260


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100