forked from Github-Mirrors/canaille
objectClass is not mandatory anymore for Group creation
This commit is contained in:
parent
32f6595c02
commit
b65d822e5c
1 changed files with 1 additions and 5 deletions
|
@ -32,11 +32,7 @@ def create_group(user):
|
|||
if not form.validate():
|
||||
flash(_("Group creation failed."), "error")
|
||||
else:
|
||||
group = Group(
|
||||
objectClass=current_app.config["LDAP"].get(
|
||||
"GROUP_CLASS", Group.DEFAULT_OBJECT_CLASS
|
||||
)
|
||||
)
|
||||
group = Group()
|
||||
group.member = [user.dn]
|
||||
group.cn = [form.name.data]
|
||||
group.description = [form.description.data]
|
||||
|
|
Loading…
Reference in a new issue