Univention Bugzilla – Bug 41753
create_ou throws traceback
Last modified: 2016-11-10 16:03:17 CET
./create_ou schoolA dcslaveA [...] univention-directory-notifier started Traceback (most recent call last): File "./create_ou", line 3223, in <module> verify_school_ou(ouname, co, lo, baseDN, dcName=dcNameEducational, ShareFileServer=options.ShareFileServer, displayName=options.displayName) File "./create_ou", line 619, in verify_school_ou r = lo.modify(ou_base, [('displayName', lo.get(ou_base, ['displayName']).get('displayName',[]), [displayName])]) File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 427, in modify raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg) univention.admin.uexceptions.ldapError: Object class violation: attribute 'displayName' not allowed
When does this happen? I thought we fixed this already twice :D
(In reply to Florian Best from comment #1) > When does this happen? I thought we fixed this already twice :D On my test machine. Have to recheck, if latest version fixes the problem.
This happens only if you have got an existing OU (which is not a ucsschool-OU) and you call create_ou() for this): ~# udm container/ou create --set name=asdf Object created: ou=asdf,dc=school,dc=local ~# /usr/share/ucs-school-import/scripts/create_ou asdf verify ou for school nr asdf need to create group cn=OUasdf-DC-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=school,dc=local creating object cn=OUasdf-DC-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=school,dc=local need to create group cn=OUasdf-Member-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=school,dc=local creating object cn=OUasdf-Member-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=school,dc=local need to create group cn=OUasdf-DC-Edukativnetz,cn=ucsschool,cn=groups,dc=school,dc=local creating object cn=OUasdf-DC-Edukativnetz,cn=ucsschool,cn=groups,dc=school,dc=local need to create group cn=OUasdf-Member-Edukativnetz,cn=ucsschool,cn=groups,dc=school,dc=local creating object cn=OUasdf-Member-Edukativnetz,cn=ucsschool,cn=groups,dc=school,dc=local Traceback (most recent call last): File "/usr/share/ucs-school-import/scripts/create_ou", line 3193, in <module> verify_school_ou(ouname, co, lo, baseDN, dcName=dcNameEducational, ShareFileServer=options.ShareFileServer, displayName=options.displayName) File "/usr/share/ucs-school-import/scripts/create_ou", line 620, in verify_school_ou r = lo.modify(ou_base, [('displayName', lo.get(ou_base, ['displayName']).get('displayName',[]), [displayName])]) File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 399, in modify raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg) univention.admin.uexceptions.ldapError: Object class violation: attribute 'displayName' not allowed
# /usr/share/ucs-school-import/scripts/create_ou schule4 meinslave → OK # udm container/ou create --set name=keineschule # /usr/share/ucs-school-import/scripts/create_ou keineschule einslave → Traceback