26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
namespace JdeScoping.Core.Options;
|
|
|
|
/// <summary>
|
|
/// LDAP configuration options for authentication
|
|
/// </summary>
|
|
public class LdapOptions
|
|
{
|
|
/// <summary>
|
|
/// Configuration section name
|
|
/// </summary>
|
|
public const string SectionName = "Ldap";
|
|
|
|
/// <summary>
|
|
/// LDAP server URLs (supports multiple for failover).
|
|
/// Example: ["ldap.corp.example.com", "ldap2.corp.example.com"]
|
|
/// </summary>
|
|
public string[] ServerUrls { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Distinguished name of required group for access.
|
|
/// Example: "CN=ScopingTool-Users,OU=Groups,DC=corp,DC=example,DC=com"
|
|
/// </summary>
|
|
public string GroupDn { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// LDAP search base for user lookups.
|
|
/// Example: "DC=corp,DC=example,DC=com"
|
|
/// </summary>
|
|
public string SearchBase { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Connection timeout in seconds.
|
|
/// </summary>
|
|
public int ConnectionTimeoutSeconds { get; set; } = 30;
|
|
}
|