IAdmService5
The IAdmService5 interface extends the IAdmService interface.
Inheritance: IAdmService4
Methods
-
Method
-
Description
-
CreateLogonSession()
-
Creates a logon session to the Adaxes service with the given credentials.
-
OpenObject2()
-
Binds to a directory object.
Properties
-
Property
-
Description
-
CurrentDateTime
-
Gets the current date and time on the computer where the Adaxes service is installed.
-
InstanceId
-
Gets the unique identifier of the Adaxes service instance.
Details
CreateLogonSession()
Creates a logon session to the Adaxes service with the given credentials.
IAdmLogonSession CreateLogonSession(string usernameArg, string passwordArg)
Remarks
If both parameters are set to null
, the credentials of the currently logged on user are used.
OpenObject2()
Binds to a directory object. Unlike the IAdmService::OpenObject method, this method uses the IAdmLogonSession interface for authentication and allows enabling fast binding.
object OpenObject2(string path,
IAdmLogonSession logonSession,
bool useFastBind)
Parameters
- path - Specifies the ADS path of the directory object.
- logonSession - Specifies the IAdmLogonSession interface that represents credentials used for authentication. To create a logon session, use the
CreateLogonSession
method. - useFastBind - Specifies a value indicating whether fast binding is enabled. If set to
true
, the method does not perform a directory request. Therefore, the object returned by the method exposes only base ADSI interfaces (e.g. IADs, IADsContainer, etc.). Interfaces specific for certain object types (e.g. IADsUser, IADsGroup) will not be exposed.
Remarks
The method does not throw an exception if you bind to an object that does not exist and fast binding is enabled.
CurrentDateTime
Gets the current date and time on the computer where the Adaxes service is installed.
- Type:
- DateTime
- Access:
- Read-only
InstanceId
Gets the unique identifier of the Adaxes service instance.
- Type:
- string
- Access:
- Read-only
Requirements
Minimum required version: 2018.1