providers/ldap: add search_group to limit who can do search requests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-04-26 23:25:03 +02:00
parent 2a122845d9
commit 1d5958a78f
6 changed files with 79 additions and 7 deletions

View File

@ -1,5 +1,4 @@
"""User API Views"""
from authentik.core.api.groups import GroupSerializer
from django.http.response import Http404
from django.urls import reverse_lazy
from django.utils.http import urlencode
@ -14,6 +13,7 @@ from rest_framework.viewsets import ModelViewSet
from authentik.admin.api.metrics import CoordinateSerializer, get_events_per_1h
from authentik.api.decorators import permission_required
from authentik.core.api.groups import GroupSerializer
from authentik.core.api.utils import LinkSerializer, PassiveSerializer, is_dict
from authentik.core.middleware import (
SESSION_IMPERSONATE_ORIGINAL_USER,