Fix group not find bug

This commit is contained in:
Götz 2019-04-11 03:13:18 +02:00
parent 9af4a90ae9
commit 9a5532959f

View File

@ -74,7 +74,7 @@ def group_update(request, realm_id, group_dn):
LdapUser.base_dn = LdapUser.ROOT_DN
LdapGroup.base_dn = f'ou=groups,{realm.ldap_base_dn}'
group = LdapGroup.objects.get(name=group_dn)
group = LdapGroup.objects.get(dn=group_dn)
if request.method == 'POST':
form = AddLDAPGroupForm(request.POST)