IADsDomain Property Methods

The methods of the IADsDomain interface read and write the properties described in this topic. For more information see Interface Property Methods.

Properties in Vtable Order

Property Access Method Prototype
AutoUnlockInterval R/W HRESULT get_AutoUnlockInterval
([out] LONG *plAutoUnlockInterval);

HRESULT put_AutoUnlockInterval
([in] LONG lAutoUnlockInterval);

IsWorkgroup R/O HRESULT get_IsWorkgroup ([out] VARIANT_BOOL *retval);
LockoutObservationInterval R/W HRESULT get_
LockoutObservationInterval

([out] LONG *plLockoutObservationInterval);

HRESULT put_
LockoutObservationInterval

([in] LONG lLockoutObservationInterval);

MinPasswordAge R/W HRESULT get_MinPasswordAge ([out] LONG *plMinPasswordAge);

HRESULT put_MinPasswordAge
([in] LONG lMinPasswordAge);

MinPasswordLength R/W HRESULT get_MinPasswordLength
([out] LONG *plMinPasswordLength);

HRESULT put_MinPasswordLength
([in] LONG lMinPasswordLength);

MaxBadPasswordsAllowed R/W HRESULT get_
MaxBadPasswordsAllowed
([out] LONG *plMaxBadPasswordsAllowed);

HRESULT put_
MaxBadPasswordsAllowed

([in] LONG lMaxBadPasswordsAllowed);

MaxPasswordAge R/W HRESULT get_MaxPasswordAge ([out] LONG *plMaxPasswordAge);

HRESULT put_MaxPasswordAge
([in] LONG lMaxPasswordAge);

PasswordAttributes R/W HRESULT get_PasswordAttributes
([out] LONG *plPasswordAttributes);

HRESULT put_PasswordAttributes
([in] LONG lPasswordAttributes);

PasswordHistoryLength R/W HRESULT get_PasswordHistoryLength ([out] LONG *plPasswordHistoryLength);

HRESULT put_PasswordHistoryLength
([in] LONG lPasswordHistoryLength);


Property Descriptions

AutoUnlockInterval
Gets and sets the minimum time elapsed before account is automatically re-enabled.
IsWorkGroup
Tests whether or not the domain is actually a workstation that is a member of a workgroup.
LockoutObservationInterval
Gets and sets the time window during which the bad password count is monitored and accumulated to decide if the account needs to be locked out. For example, if the number of bad password attempts on an account exceed the threshold (Maximum Bad Passwords Allowed) during the specified time period (Lockout Observation Interval) the account will be locked out by setting the appropriate property in the Login Parameter property set.
MinPasswordAge
Gets and sets the minimum password age before allowing the password to be changed.
MinPasswordLength
Gets and sets the minimum number of characters that must be typed in for a password.
MaxBadPasswordsAllowed
Gets and sets the maximum number of bad password logins until the account becomes locked out.
MaxPasswordAge
Gets and sets the age at which the password must be changed by the owner.
PasswordAttibutes
Gets and sets other restrictions on passwords. The following restrictions are currently defined:
Attribute Value
PASSWORD_ATTR_NONE 0x00000000
PASSWORD_ATTR_MIXED_CASE 0x00000001
PASSWORD_ATTR_COMPLEX 0x00000002

Note  For PASSWORD_ATTR_COMPLEX, the password must include at least one punctuation mark or non-printable character.

PasswordHistoryLength
The number of previous passwords saved in the history list. The user cannot reuse a password that is in the history list.

See Also

ADSI Domain Object