/// <summary> /// /// </summary> /// <param name="config"></param> public LdapAuthenticationService(IOptions <LdapConfig> config) { _config = config.Value; _connection = new LdapConnection { SecureSocketLayer = _config.UseSSL }; }
/// <summary> /// /// </summary> /// <param name="config"></param> public LdapAuthenticationService(LdapConfig config) { _config = config; _connection = new LdapConnection { SecureSocketLayer = _config.UseSSL }; ApplicationUser.adminType = config.AdminEmployeeType; }