Directory Services |
The IADsDomain interface methods read and write the properties described in this topic. For more information, see Interface Property Methods.
Property | Description | ||||
---|---|---|---|---|---|
AutoUnlockInterval
[Visual Basic] [C++] |
Indicates the minimum time that must elapse before the account is automatically reenabled. | ||||
IsWorkgroup
[Visual Basic] [C++] |
This property is no longer implemented. | ||||
LockoutObservationInterval
[Visual Basic] [C++] |
Indicates the time window during which the bad password count is monitored and accumulated before determining 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
[Visual Basic] [C++] |
Indicates the minimum time interval, in seconds, before the password can be changed. | ||||
MinPasswordLength
[Visual Basic] [C++] |
Indicates the minimum number of characters that must be used for a password. | ||||
MaxBadPasswordsAllowed
[Visual Basic] [C++] |
Indicates the maximum number of bad password logins allowed before an account lockout. | ||||
MaxPasswordAge
[Visual Basic] [C++] |
Indicates the maximum time interval, in seconds, after which the password must be changed by the user. | ||||
PasswordAttributes
[Visual Basic] [C++] |
Indicates restrictions on passwords, as defined in
the following.
Note For PASSWORD_ATTR_COMPLEX, the password must include at least one punctuation mark or non-printable character. |
||||
PasswordHistoryLength
[Visual Basic] [C++] |
Indicates the number of previous passwords saved in the history list. The user cannot reuse a password in the history list. |
The following code example displays the value of the PasswordHistoryLength property.
Dim dom As IADsDomain On Error Resume Next Set dom = GetObject("WinNT://myDomain") debug.print "PasswordHistoryLength" & dom.PasswordHistoryLength
The following code example displays the value of the PasswordHistoryLength property.
LPWSTR adsPath = L"WinNT://myDomain"; LONG nPasswordHistoryLength = 0; // Bind to the domain object. hr = ADsGetObject(adsPath,IID_IADsDomain,(void**)&pDomain); if(FAILED(hr)) {goto Cleanup;} hr = pDomain->get_PasswordHistoryLength(&nPasswordHistoryLength); if(FAILED(hr)) {goto Cleanup;} printf("Password history length: %d",nPasswordHistoryLength); Cleanup: if(pDomain) pDomain->Release();
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Iads.h.