Traceback (most recent call last):
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/db/models/query.py", line 581, in get_or_create
return self.get(**kwargs), False
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/db/models/query.py", line 435, in get
raise self.model.DoesNotExist(
ldap_sync.models.DoesNotExist: LdapGroup matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/verwaltung/HiltonAdmin/manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/home/verwaltung/HiltonAdmin/ldap_sync/management/commands/sync_groups.py", line 21, in handle
ldap_group, _ = LdapGroup.objects.get_or_create(name=group.name)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/db/models/query.py", line 588, in get_or_create
return self.create(**params), True
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/db/models/query.py", line 453, in create
obj.save(force_insert=True, using=self.db)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/db/models/base.py", line 739, in save
self.save_base(using=using, force_insert=force_insert,
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/django/db/models/base.py", line 776, in save_base
updated = self._save_table(
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldapdb/models/base.py", line 120, in _save_table
connection.add_s(new_dn, new_values)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldapdb/backends/ldap/base.py", line 317, in add_s
return cursor.connection.add_s(dn, modlist)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldap/ldapobject.py", line 236, in add_s
return self.add_ext_s(dn,modlist,None,None)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldap/ldapobject.py", line 1009, in add_ext_s
return self._apply_method_s(SimpleLDAPObject.add_ext_s,*args,**kwargs)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldap/ldapobject.py", line 968, in _apply_method_s
return func(self,*args,**kwargs)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldap/ldapobject.py", line 222, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldap/ldapobject.py", line 543, in result3
resp_type, resp_data, resp_msgid, decoded_resp_ctrls, retoid, retval = self.result4(
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldap/ldapobject.py", line 553, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/home/verwaltung/HiltonAdmin/venv/lib/python3.9/site-packages/ldap/ldapobject.py", line 128, in _ldap_call
result = func(*args,**kwargs)
ldap.OBJECT_CLASS_VIOLATION: {'msgtype': 105, 'msgid': 50, 'result': 65, 'desc': 'Object class violation', 'ctrls': [], 'info': "object class 'groupOfNames' requires attribute 'member'"}