From 2db3a963b36dda69fce87b3c162cc0dd90b9d121 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Fri, 15 Mar 2024 18:00:44 -0600 Subject: [PATCH] Updates for 10.9 --- LDAP-Auth/LDAP-Auth.csproj | 2 +- LDAP-Auth/ServiceRegistrator.cs | 19 +++++++++++++++++++ build.yaml | 14 ++------------ 3 files changed, 22 insertions(+), 13 deletions(-) create mode 100644 LDAP-Auth/ServiceRegistrator.cs diff --git a/LDAP-Auth/LDAP-Auth.csproj b/LDAP-Auth/LDAP-Auth.csproj index d2082a5..3afd032 100644 --- a/LDAP-Auth/LDAP-Auth.csproj +++ b/LDAP-Auth/LDAP-Auth.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 Jellyfin.Plugin.LDAP_Auth true true diff --git a/LDAP-Auth/ServiceRegistrator.cs b/LDAP-Auth/ServiceRegistrator.cs new file mode 100644 index 0000000..2b9a66e --- /dev/null +++ b/LDAP-Auth/ServiceRegistrator.cs @@ -0,0 +1,19 @@ +using MediaBrowser.Controller; +using MediaBrowser.Controller.Authentication; +using MediaBrowser.Controller.Plugins; +using Microsoft.Extensions.DependencyInjection; + +namespace Jellyfin.Plugin.LDAP_Auth; + +/// +/// Register LDAP services. +/// +public class ServiceRegistrator : IPluginServiceRegistrator +{ + /// + public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost) + { + serviceCollection.AddSingleton(); + serviceCollection.AddSingleton(); + } +} diff --git a/build.yaml b/build.yaml index cf42804..5070e6b 100644 --- a/build.yaml +++ b/build.yaml @@ -2,8 +2,8 @@ name: "LDAP Authentication" guid: "958aad66-3784-4d2a-b89a-a7b6fab6e25c" imageUrl: "https://repo.jellyfin.org/releases/plugin/images/jellyfin-plugin-ldapauth.png" version: 18 -targetAbi: "10.8.13.0" -framework: "net6.0" +targetAbi: "10.9.0.0" +framework: "net8.0" owner: "jellyfin" overview: "Authenticate users against an LDAP database" description: | @@ -15,13 +15,3 @@ artifacts: - "LDAP-Auth.dll" - "Novell.Directory.Ldap.NETStandard.dll" changelog: |- - - Implement proper input sanitization to prevent LDAP injection attacks (#153) @tam1m - - ### New features and improvements ### - - Added (#147) @sdimovv - - ### Code or Repo Maintenance ### - - Update link to Jellyfin website (#150) @methbkts - - ### Documentation updates ### - - Fix "build" shields badge (#152) @Radiicall