IADsDomain interface
The IADsDomain interface is a dual interface that inherits from IADs. It is designed to represent a network domain and manage domain accounts. Use this interface to determine whether the domain is actually a Workgroup, to specify how frequently a user must change a password, and to specify the maximum number of invalid password logins allowed before a lockout on the account is set. To change a password, call the ChangePassword method on an ADSI object that supports password controls. For example, to change the password of a user account, call IADsUser::ChangePassword on the user object.
Members
The IADsDomain interface inherits from IDispatch and IADs. IADsDomain also has these types of members:
Methods
The IADsDomain interface has these methods.
| Method | Description |
|---|---|
| Get |
Gets the value for a property by name. |
| GetEx |
Gets the value for a single or multi-valued property by name. |
| GetInfo |
Loads the property values of this object from the underlying directory store. |
| GetInfoEx |
Loads specific property values of this object from the underlying directory store. |
| Put |
Sets the value for a property by name. |
| PutEx |
Sets the value for a single or multi-valued property by name. |
| SetInfo |
Persists the changes on this object to the underlying directory store. |
Properties
The IADsDomain interface has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Retrieves the object ADsPath that uniquely identifies this object. | |
|
Read/write |
Gets and sets the minimum time that can elapse before an account is automatically reenabled. | |
|
Read-only |
Retrieves the name of the object schema class. | |
|
Read-only |
Retrieves the GUID of the object as stored in the underlying directory store. | |
|
Read-only |
This property is no longer implemented. | |
|
Read/write |
Gets and sets the time window for monitoring the account. | |
|
Read/write |
Gets and sets the maximum number of bad password logins allowed before an account lockout. | |
|
Read/write |
Gets and sets the age at which the password must be changed. | |
|
Read/write |
Gets and sets the minimum age that a password must have before it can be changed. | |
|
Read/write |
Gets and sets the minimum number of characters required in the password. | |
|
Read-only |
Retrieves the object relative name. | |
|
Read-only |
Retrieves the ADsPath string for the object parent. | |
|
Read/write |
Gets and sets password restrictions. | |
|
Read/write |
Gets and sets the number of passwords saved. | |
|
Read-only |
Retrieves the ADsPath string to the schema class object for this object. |
Remarks
For the WinNT provider supplied by Microsoft, this interface is implemented on the WinNTDomain object.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
Header |
|
|
DLL |
|
|
IID |
IID_IADsDomain is defined as 00E4C220-FD16-11CE-ABC4-02608C9E7553 |
See also