The IADsDomain interface is used to get and set the properties of a Domain object. The interface definition is as follows:
[ object, uuid(IID_IADsDomain), oleautomation, dual ]
interface IADsDomain: IADs
{
// Read-only porperties
[propget]
HRESULT IsWorkgroup( VARIANT_BOOL *retval)
// Read/write properties.
[propget]
HRESULT MinPasswordLength ([out, retval]long *plMinPasswordLength);
[propput]
HRESULT MinPasswordLength ([in]long lMinPasswordLength);
[propget]
HRESULT MinPasswordAge ([out, retval]long *plMinPasswordAge);
[propput]
HRESULT MinPasswordAge ([in]long lMinPasswordAge);
[propget]
HRESULT MaxPasswordAge ([out, retval]long *plMaxPasswordAge);
[propput]
HRESULT MaxPasswordAge ([in]long lMaxPasswordAge);
[propget]
HRESULT MaxBadPasswordsAllowed ([out, retval]long *plMaxBadPasswordsAllowed);
[propput]
HRESULT MaxBadPasswordsAllowed ([in]long lMaxBadPasswordsAllowed);
[propget]
HRESULT PasswordHistoryLength ([out, retval]long *plPasswordHistoryLength);
[propput]
HRESULT PasswordHistoryLength ([in]long lPasswordHistoryLength);
[propget]
HRESULT PasswordAttributes ([out, retval]long *plPasswordAttributes);
[propput]
HRESULT PasswordAttributes ([in]long lPasswordAttributes);
[propget]
HRESULT AutoUnlockInterval ([out, retval]long *plAutoUnlockInterval);
[propput]
HRESULT AutoUnlockInterval ([in]long lAutoUnlockInterval);
[propget]
HRESULT LockoutObservationInterval ([out, retval]long
*plLockoutObservationInterval);
[propput]
HRESULT LockoutObservationInterval ([in]long
lLockoutObservationInterval);
};
Property | Syntax | Description |
IsWorkgroup | Boolean | TRUE if the "domain" is actually a workstation that is a member of a workgroup |
MinPasswordLength | Integer | Gets and sets the minimum number of characters that must be typed in for a password. |
MinPasswordAge | Interval | Gets and sets the minimum password age before allowing the password to be changed . |
MaxPasswordAge | Interval | Gets and sets the age at which the password must be changed by the owner. |
MaxBadPasswordsAllowed | Integer | Gets and sets the maximum number of bad password logins until the account becomes locked out. |
PasswordHistoryLength | Integer | The number of previous passwords saved in the history list. The user cannot reuse a password that is in the history list. |
PasswordAttributes | Integer | Gets and sets other restrictions on passwords. The following restrictions are currently defined: #define PASSWORD_ATTR_NONE 0x00000000 #define PASSWORD_ATTR_MIXED_CASE 0x00000001 #define PASSWORD_ATTR_COMPLEX 0x00000002 The last restriction requires that the password must include at least one punctuation mark or a non-printable character. |
AutoUnlockInterval | Interval | Gets and sets the minimum time elapsed before account is automatically re-enabled. |
LockoutObservationInterval | Interval | 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. |