Dela via


LdapSettings Class

Definition

Options class for configuring LDAP connections on Linux

public ref class LdapSettings
public class LdapSettings
type LdapSettings = class
Public Class LdapSettings
Inheritance
LdapSettings

Constructors

LdapSettings()

Properties

ClaimsCacheAbsoluteExpiration

The absolute expiration that should be used for entries in the cache for user claims, defaults to 60 minutes. This is an absolute expiration that starts when a claims for a user is retrieved for the first time.

ClaimsCacheSize

The maximum size of the claim results cache, defaults to 100 MB.

ClaimsCacheSlidingExpiration

The sliding expiration that should be used for entries in the cache for user claims, defaults to 10 minutes. This is a sliding expiration that will extend each time claims for a user is retrieved.

Domain

The domain to use for the LDAP connection. This is a mandatory setting.

EnableLdapClaimResolution

Configure whether LDAP connection should be used to resolve claims. This is mainly used on Linux.

IgnoreNestedGroups

This option indicates whether nested groups should be ignored when resolving Roles. The default is false.

LdapConnection

The LdapConnection to be used to retrieve role claims. If no explicit connection is provided, an LDAP connection will be automatically created based on the Domain, MachineAccountName and MachineAccountPassword options. If provided, this connection will be used and the Domain, MachineAccountName and MachineAccountPassword options will not be used to create the LdapConnection.

MachineAccountName

The machine account name to use when opening the LDAP connection. If this is not provided, the machine wide credentials of the domain joined machine will be used.

MachineAccountPassword

The machine account password to use when opening the LDAP connection. This must be provided if a MachineAccountName is provided.

Methods

Validate()

Validates the LdapSettings.

Applies to