sources/ldap: change default object filters to use objectClass= instead of objectCategory
This commit is contained in:
parent
b0e3b8b39d
commit
397dfc29f1
|
@ -0,0 +1,29 @@
|
||||||
|
# Generated by Django 3.1.6 on 2021-02-05 10:27
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("authentik_sources_ldap", "0009_auto_20210204_1834"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="ldapsource",
|
||||||
|
name="group_object_filter",
|
||||||
|
field=models.TextField(
|
||||||
|
default="(objectClass=group)",
|
||||||
|
help_text="Consider Objects matching this filter to be Groups.",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="ldapsource",
|
||||||
|
name="user_object_filter",
|
||||||
|
field=models.TextField(
|
||||||
|
default="(objectClass=person)",
|
||||||
|
help_text="Consider Objects matching this filter to be Users.",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -38,14 +38,14 @@ class LDAPSource(Source):
|
||||||
)
|
)
|
||||||
|
|
||||||
user_object_filter = models.TextField(
|
user_object_filter = models.TextField(
|
||||||
default="(objectCategory=Person)",
|
default="(objectClass=person)",
|
||||||
help_text=_("Consider Objects matching this filter to be Users."),
|
help_text=_("Consider Objects matching this filter to be Users."),
|
||||||
)
|
)
|
||||||
group_membership_field = models.TextField(
|
group_membership_field = models.TextField(
|
||||||
default="member", help_text=_("Field which contains members of a group.")
|
default="member", help_text=_("Field which contains members of a group.")
|
||||||
)
|
)
|
||||||
group_object_filter = models.TextField(
|
group_object_filter = models.TextField(
|
||||||
default="(objectCategory=Group)",
|
default="(objectClass=group)",
|
||||||
help_text=_("Consider Objects matching this filter to be Groups."),
|
help_text=_("Consider Objects matching this filter to be Groups."),
|
||||||
)
|
)
|
||||||
object_uniqueness_field = models.TextField(
|
object_uniqueness_field = models.TextField(
|
||||||
|
|
Reference in New Issue