Problem: Users module shows a traceback

Problem:

Users module shows a traceback:

Interner Server-Fehler in “udm/properties (users/user)”.
Request: udm/properties (users/user)

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/univention/management/console/base.py”, line 347, in __error_handling
six.reraise(etype, exc, etraceback)
File “/usr/lib/python3/dist-packages/six.py”, line 693, in reraise
raise value
File “/usr/lib/python3/dist-packages/univention/management/console/base.py”, line 250, in execute
function.func(self, request, *args, **kwargs)
File “/usr/lib/python3/dist-packages/univention/management/console/modules/udm/init.py”, line 124, in _decoarated
ret = [func(self, request) for request.options in options]
File “/usr/lib/python3/dist-packages/univention/management/console/modules/udm/init.py”, line 124, in
ret = [func(self, request) for request.options in options]
File “/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py”, line 184, in _response
return function(self, request)
File “/usr/lib/python3/dist-packages/univention/management/console/modules/udm/init.py”, line 867, in properties
properties = module.get_properties(object_dn)
File “/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py”, line 921, in get_properties
for iprop in self.properties(ldap_dn):
File “/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py”, line 979, in properties
obj.open()
File “/usr/lib/python3/dist-packages/univention/admin/handlers/users/user.py”, line 1163, in open
self._set_default_group()
File “/usr/lib/python3/dist-packages/univention/admin/handlers/users/user.py”, line 1195, in _set_default_group
raise univention.admin.uexceptions.primaryGroup(self.dn)
univention.admin.uexceptions.primaryGroup: None

Solution:

We have Bug 55445 for this
The solution is:
Check

root@ucs01:~# udm settings/default list 

DN: cn=default,cn=univention,dc=schein,dc=ig
  defaultClientGroup: cn=Computers,cn=groups,dc=schein,dc=ig
  defaultComputerGroup: cn=Windows Hosts,cn=groups,dc=schein,dc=ig
  defaultDomainControllerGroup: cn=DC Slave Hosts,cn=groups,dc=schein,dc=ig
  defaultDomainControllerMBGroup: cn=DC Backup Hosts,cn=groups,dc=schein,dc=ig
  defaultGroup: cn=Domänen-Benutzer,cn=groups,dc=schein,dc=ig
  defaultMemberServerGroup: cn=Computers,cn=groups,dc=schein,dc=ig
  name: default

If you find defaultGroup: cn=Domänen-Benutzer,cn=groups,dc=schein,dc=ig this is probably wrong
You can reset the default Group, which should be Domain Users


udm settings/default modify --dn cn=default,cn=univention,dc=schein,dc=ig --set defaultGroup='cn=Domain Users,cn=groups,dc=schein,dc=ig'
1 Like
Mastodon