IAdmService5

The IAdmService5 interface extends the IAdmService interface.

Inheritance: IAdmService4

Methods

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 username, string password)

Parameters

  • username – the username of the account whose credentials to use to create a session. When set to null, the credentials of the currently logged on user are used.
  • password – the password of the account specified in the username parameter.

OpenObject2()

Binds to a directory object. Unlike the IAdmService::OpenObject method, this method uses the IAdmLogonSession interface for authentication and allows fast binding.

object OpenObject2(string path, 
                   IAdmLogonSession logonSession, 
                   bool useFastBind)

Parameters

  • path – the ADS path of the directory object to bind to.
  • logonSession – an instance of IAdmLogonSession that represents credentials used for authentication. To create a logon session, use the CreateLogonSession method.
  • useFastBind – a value indicating whether fast binding should be enabled. If set to true, the method does not perform a directory request. As a result, the object returned by this method exposes only base ADSI interfaces (e.g. IADs, IADsContainer, etc.). Interfaces specific to 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

See also