diff --git a/LDAP-Auth/Api/LdapController.cs b/LDAP-Auth/Api/LdapController.cs
index b78711e..36f0508 100644
--- a/LDAP-Auth/Api/LdapController.cs
+++ b/LDAP-Auth/Api/LdapController.cs
@@ -158,7 +158,6 @@ public IActionResult LdapUserSearch([FromBody] UserSearchAttributes body)
{
var configuration = LdapPlugin.Instance.Configuration;
configuration.LdapSearchAttributes = body.LdapSearchAttributes;
- configuration.EnableCaseInsensitiveUsername = body.EnableCaseInsensitiveUsername;
LdapPlugin.Instance.UpdateConfiguration(configuration);
var response = new UserSearchResponse();
diff --git a/LDAP-Auth/Api/Models/UserFilterInfo.cs b/LDAP-Auth/Api/Models/UserFilterInfo.cs
index 31d4513..23ffc3b 100644
--- a/LDAP-Auth/Api/Models/UserFilterInfo.cs
+++ b/LDAP-Auth/Api/Models/UserFilterInfo.cs
@@ -11,7 +11,6 @@ public class UserFilterInfo
///
/// Gets or sets the ldap user search filter.
///
- [Required]
public string LdapSearchFilter { get; set; }
///
diff --git a/LDAP-Auth/Api/Models/UserSearchAttributes.cs b/LDAP-Auth/Api/Models/UserSearchAttributes.cs
index a830d57..683173c 100644
--- a/LDAP-Auth/Api/Models/UserSearchAttributes.cs
+++ b/LDAP-Auth/Api/Models/UserSearchAttributes.cs
@@ -12,14 +12,8 @@ public class UserSearchAttributes
///
/// Gets or sets the ldap search attributes.
///
- [Required]
public string LdapSearchAttributes { get; set; }
- ///
- /// Gets or sets a value indicating whether to use case insensitive username comparison.
- ///
- public bool EnableCaseInsensitiveUsername { get; set; }
-
///
/// Gets or sets the username to search for as a test.
///
diff --git a/LDAP-Auth/Config/PluginConfiguration.cs b/LDAP-Auth/Config/PluginConfiguration.cs
index 379a1a4..69c6ba9 100644
--- a/LDAP-Auth/Config/PluginConfiguration.cs
+++ b/LDAP-Auth/Config/PluginConfiguration.cs
@@ -29,7 +29,6 @@ public PluginConfiguration()
LdapClientCertPath = string.Empty;
LdapClientKeyPath = string.Empty;
LdapRootCaPath = string.Empty;
- EnableCaseInsensitiveUsername = false;
CreateUsersFromLdap = true;
LdapUsernameAttribute = "uid";
LdapPasswordAttribute = "userPassword";
@@ -102,11 +101,6 @@ public PluginConfiguration()
///
public string LdapSearchAttributes { get; set; }
- ///
- /// Gets or sets a value indicating whether to use case insensitive username comparison.
- ///
- public bool EnableCaseInsensitiveUsername { get; set; }
-
///
/// Gets or sets the ldap client cert path.
///
diff --git a/LDAP-Auth/Config/configPage.html b/LDAP-Auth/Config/configPage.html
index f59bf73..630b174 100644
--- a/LDAP-Auth/Config/configPage.html
+++ b/LDAP-Auth/Config/configPage.html
@@ -93,10 +93,30 @@
LDAP Settings:
+
Users
+
There are two methods possible to search for users.
+
+
The {username} variable can be placed directly into the LDAP Search Filter. This variable will be replaced during the search with the entered username. If you use this method, the LDAP Search Attributes value will be ignored, and you must implement the attribute comparison(s) manually in your filter.
+
The LDAP Search Filter can be left as a subcomponent of a larger search filter constructed at runtime. For each LDAP Search Attributes entry, the entered username will be used with the attribute as an 'or' condition search filter. If you use this method, the LDAP Search Filter is optional and may be empty. This will be the default if you do not adjust your LDAP Search Filter to include the {username} variable at least once.
+
+
At least one method must be chosen and configured below. If upgrading from plugin version 16 or newer, the second option will be used by default.
+
Note: Usernames are treated case-insensitive regardless of the method, as an LDAP search is not case-sensitive.
+
-
-
The LDAP search filter to find users for Jellyfin, e.g. (objectClass=inetOrgPerson).
+
+
+ LDAP search filter to limit user searches.
+
+
+
+
+ A comma-separated list of attributes to filter the username by.
+
+
+
+
+
Administrators
The LDAP search base dn to find administrative users for Jellyfin, e.g. (cn=admins,dc=contoso,dc=com). Defaults to user dn if empty
@@ -115,22 +135,14 @@
LDAP Settings:
Enable Admin Filter 'memberUid' mode
+
+
+
Testing
-
-
-
-
A comma-separated list of LDAP attributes to compare with entered usernames.
-
-
-
-
Enable case insensitive username comparison
-
+
A user login to search the LDAP for to test attribute configuration.
@@ -152,7 +164,7 @@
LDAP Settings:
-
The LDAP attribute to create Jellyfin user names from.
+
The LDAP attribute to create Jellyfin user names from. For example, 'uid' means we will use the LDAP 'uid' attribute as the Jellyfin username.