Class ActiveDirectorySource
OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin.ActiveDirectorySource
Represents a source of users and groups in Active Directory. Defines the location from which users and groups will be loaded. Contains the settings to connect to the LDAP server.
Namespace: OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin
public sealed class ActiveDirectorySourceConstructors
public ActiveDirectorySource(string name, string host, int port, bool isSecureConnection = false) #Create source instance.
Parameters
Name
Type
Description
nameStringThe name of the source.
hostStringThe host name of the Active Directory server.
portInt32The port number of the Active Directory server.
isSecureConnectionBooleanIf true, the connection to the server will be secure (SSL).
Properties
public string Name { get; } #The name of the source.
public string Host { get; } #The host name of the Active Directory server.
public int Port { get; } #The port number of the Active Directory server.
public UsersSource UsersSource { get; } #The configuration of the users source.
public GroupSource GroupSource { get; } #The configuration of the groups source.
public bool IsSecureConnection { get; } #If true, the connection to the server will be secure (SSL).
public bool IsAnonymous { get; } #If true, the connection to the server will be anonymous.
public string? User { get; set; } #User Dn for authentication.
public string? Password { get; set; } #User password for authentication.
Methods
public ActiveDirectorySource SetAuth(string user, string password) #Set authentication for connection to the server.
Parameters
Name
Type
Description
userStringUser Dn for authentication.
passwordStringUser password for authentication.
Returns
Type
Description
ActiveDirectorySourcepublic ActiveDirectorySource SetUsersSource(UsersSource source) #Set user source settings.
Parameters
Name
Type
Description
sourceUsersSourceUser source settings.
Returns
Type
Description
ActiveDirectorySourcepublic ActiveDirectorySource SetGroupsSource(GroupSource source) #Set group source settings.
Parameters
Name
Type
Description
sourceGroupSourceGroup source settings.
Returns
Type
Description
ActiveDirectorySource