namespace ZB.MOM.WW.OtOpcUa.Security.Ldap;

public interface ILdapAuthService
{
    /// <summary>Authenticates a user against the LDAP service.</summary>
    /// <param name="username">The username to authenticate.</param>
    /// <param name="password">The password to verify.</param>
    /// <param name="ct">A cancellation token.</param>
    /// <returns>A task that returns the authentication result.</returns>
    Task<LdapAuthResult> AuthenticateAsync(string username, string password, CancellationToken ct = default);
}
