Univention Bugzilla – Bug 54380
schoolwizards/schools/add: univention.admin.uexceptions.ldapError: Type or value exists: ucsschoolRole: value #0 provided more than once
Last modified: 2023-07-07 16:31:06 CEST
same error message is contained in fixed Bug #50349 . Version: 5.0-1 errata192 - UCS@school 5.0 v1 Error: Interner Server-Fehler in "schoolwizards/schools/add (schoolwizards/schools)". Request: schoolwizards/schools/add (schoolwizards/schools) Traceback (most recent call last): File "%PY3%/univention/admin/uldap.py", line 803, in modify return self.lo.modify(dn, changes, serverctrls=serverctrls, response=response, rename_callback=rename_callback) File "%PY3%/univention/uldap.py", line 208, in _decorated return func(self, *args, **kwargs) File "%PY3%/univention/uldap.py", line 753, in modify self.modify_ext_s(dn, ml, serverctrls=serverctrls, response=response) File "%PY3%/univention/uldap.py", line 208, in _decorated return func(self, *args, **kwargs) File "%PY3%/univention/uldap.py", line 812, in modify_ext_s rtype, rdata, rmsgid, resp_ctrls = self.lo.modify_ext_s(dn, ml, serverctrls=serverctrls) File "%PY3%/ldap/ldapobject.py", line 1253, in modify_ext_s return self._apply_method_s(SimpleLDAPObject.modify_ext_s,*args,**kwargs) File "%PY3%/ldap/ldapobject.py", line 1197, in _apply_method_s return func(self,*args,**kwargs) File "%PY3%/ldap/ldapobject.py", line 602, in modify_ext_s resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout) File "%PY3%/ldap/ldapobject.py", line 749, in result3 resp_ctrl_classes=resp_ctrl_classes File "%PY3%/ldap/ldapobject.py", line 756, in result4 ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop) File "%PY3%/ldap/ldapobject.py", line 329, in _ldap_call reraise(exc_type, exc_value, exc_traceback) File "%PY3%/ldap/compat.py", line 44, in reraise raise exc_value File "%PY3%/ldap/ldapobject.py", line 313, in _ldap_call result = func(*args,**kwargs) ldap.TYPE_OR_VALUE_EXISTS: {'desc': 'Type or value exists', 'info': 'ucsschoolRole: value #0 provided more than once'} During handling of the above exception, another exception occurred: Traceback (most recent call last): File "%PY3%/univention/udm/modules/generic.py", line 192, in save self.dn = self._orig_udm_object.modify() File "%PY3%/univention/admin/handlers/__init__.py", line 636, in modify dn = self._modify(modify_childs, ignore_license=ignore_license, response=response) File "%PY3%/univention/admin/handlers/__init__.py", line 1352, in _modify self.dn = self.lo.modify(self.dn, ml, ignore_license=ignore_license, serverctrls=serverctrls, response=response, rename_callback=wouldRename.on_rename) File "%PY3%/univention/admin/uldap.py", line 814, in modify raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg) univention.admin.uexceptions.ldapError: Type or value exists: ucsschoolRole: value #0 provided more than once During handling of the above exception, another exception occurred: Traceback (most recent call last): File "%PY3%/univention/management/console/base.py", line 344, in __error_handling six.reraise(etype, exc, etraceback) File "%PY3%/six.py", line 693, in reraise raise value File "%PY3%/univention/management/console/base.py", line 247, in execute function.__func__(self, request, *args, **kwargs) File "%PY3%/univention/management/console/modules/schoolwizards/__init__.py", line 241, in _decorated ret = func(self, request, *a, **kw) File "%PY3%/ucsschool/lib/school_umc_ldap_connection.py", line 154, in wrapper_func return func(*args, **kwargs) File "%PY3%/univention/management/console/modules/schoolwizards/__init__.py", line 379, in _create_obj if obj.create(ldap_user_write, validate=False): File "%PY3%/ucsschool/lib/models/base.py", line 621, in create success = self.create_without_hooks(lo, validate) File "%PY3%/ucsschool/lib/models/school.py", line 599, in create_without_hooks if not self.add_domain_controllers(lo): File "%PY3%/ucsschool/lib/models/school.py", line 553, in add_domain_controllers udm_obj.save() File "%PY3%/univention/udm/modules/generic.py", line 198, in save ), sys.exc_info()[2]) File "%PY3%/six.py", line 692, in reraise raise value.with_traceback(tb) File "%PY3%/univention/udm/modules/generic.py", line 192, in save self.dn = self._orig_udm_object.modify() File "%PY3%/univention/admin/handlers/__init__.py", line 636, in modify dn = self._modify(modify_childs, ignore_license=ignore_license, response=response) File "%PY3%/univention/admin/handlers/__init__.py", line 1352, in _modify self.dn = self.lo.modify(self.dn, ml, ignore_license=ignore_license, serverctrls=serverctrls, response=response, rename_callback=wouldRename.on_rename) File "%PY3%/univention/admin/uldap.py", line 814, in modify raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg) univention.udm.exceptions.ModifyError: Error saving 'computers/domaincontroller_slave' object at 'cn=****-server,cn=dc,cn=server,cn=computers,ou=****,dc=gss,dc=local': LDAP-Fehler (Type or value exists: ucsschoolRole: value #0 provided more than once) Role: domaincontroller_master
Version: 5.0-2 errata508 - UCS@school 5.0 v3 Remark: I've deleted a school and created a new one with the same name but in lower case and during the creation this error appeared