How can I get minimum password age of user in active directory using asp.net?
Using directory services or AspNetActiveDirectoryMembershipProvider
<><>For Example>
from below line, I can get lastname of user.
string lastName = objDirectoryEntry.Properties["sn"].Value;
Below is the list of user attributes.I could not find in my required attribute minimum password age
http://www.kouti.com/tables/userattributes.htm
Note:I am taking about using Asp.net
Edit Summary-----------------------
I get following error when I try to change user password using directory service or
AspNetActiveDirectoryMembershipProvider
(it is default membership provider)
The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements
User created and updated successfully(update field like firstname,lastname etc).I am using both directory services and AspNetActiveDirectoryMembershipProvider to create and update
user,But problem is with when I try to change password
For example:
I created user with password anc1236! that created successfully
and now update password to xyyz4562@ and got error
below is the code that I am using to change password
objMembershipUser.ChangePassword(oldPassword, newPassword)
I also try with using directory services directly and get same error