namespace ZB.MOM.WW.MxGateway.Server.Configuration;

public sealed class LdapOptions
{
    public bool Enabled { get; init; } = true;

    public string Server { get; init; } = "localhost";

    public int Port { get; init; } = 3893;

    public bool UseTls { get; init; }

    public bool AllowInsecureLdap { get; init; } = true;

    public string SearchBase { get; init; } = "dc=lmxopcua,dc=local";

    public string ServiceAccountDn { get; init; } = "cn=serviceaccount,dc=lmxopcua,dc=local";

    public string ServiceAccountPassword { get; init; } = "serviceaccount123";

    public string UserNameAttribute { get; init; } = "cn";

    public string DisplayNameAttribute { get; init; } = "cn";

    public string GroupAttribute { get; init; } = "memberOf";
}
