Set Max Password Age

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to set the max password age of a domain using C# &
DirectoryServices?

Thanks.
 
Yes. The primary issue is that you need to create the appropriate
IADsLargeInteger object with the correct data in it to set the 8 byte
integer value.

http://msdn.microsoft.com/library/d...ds/large_integer_property_type.asp?frame=true

Are you sure this is worth coding? This value changes pretty infrequently
and it typically better done in other ways. I usually say the same thing
about extending the schema with LDAP calls instead of just using LDIF. It
is rarely worth coding.

Joe K.
 
Thanks.

As for why?...Don't ask, just consider it a weird customer requirement that
is inflexible.
 
Back
Top