Univention Bugzilla – Bug 46539
ox hook requires posix and samba options on user module
Last modified: 2019-02-25 09:29:06 CET
Noticed after the update of our master system. After the update modification of user objects are no longer possible due to a ox udm hook, which requires the options samba and posix. We have removed these options in 4.3. I would recommend set set the options variable on the udm user module to all the options which are now default (and no longer selectable).
OK, this is the Bug for UCS, we should provide backward compatibility See Bug #46540 for necessary ok integration changes
Added simulate_legacy_options() users/user.py to simulate old options, adds all old options for new objects, and for existing objects the options, which match the objectclass. called in open() udm-users OK
I think this produces ERROR messages in UMC logfiles. See Bug #46586.
Every program using UDM is currently printing an error message to the logfile: e.g. in UCS@school management-console-module-schoolcsvimport.log: 12.03.18 09:00:07.380 MODULE ( PROCESS ) : Creating CSVTeacher(name='Anton8', school='SchuleEins', dn='uid=Anton8,cn=lehrer ,cn=users,ou=SchuleEins,dc=uni,dc=dtr') 12.03.18 09:00:07.484 ADMIN ( ERROR ) : 'users/user' does not specify option 'samba' 12.03.18 09:00:07.484 ADMIN ( ERROR ) : 'users/user' does not specify option 'kerberos' 12.03.18 09:00:07.484 ADMIN ( ERROR ) : 'users/user' does not specify option 'person' 12.03.18 09:00:07.484 ADMIN ( ERROR ) : 'users/user' does not specify option 'posix' 12.03.18 09:00:07.484 ADMIN ( ERROR ) : 'users/user' does not specify option 'mail' 12.03.18 09:00:07.517 MODULE ( PROCESS ) : CSVTeacher(name='Anton8', school='SchuleEins', dn='uid=Anton8,cn=lehrer,cn=users ,ou=SchuleEins,dc=uni,dc=dtr') successfully created I suspect that this is caused by the workaround. Maybe we should lower the error message to WARNING or PROCESS or even INFO until we have a besser solution?
*** Bug 46586 has been marked as a duplicate of this bug. ***
changed log level from error to info 511d5dd3e7d905f7b2c970d1bfaebf61ed3d7290
Works for the CLI. Does not work in UMC, unfortunately. UMC sets the options again after open() is called. While fixing this again, could you please rename the method to something starting with an underscore?
* renamed simulate_legacy_options to _simulate_legacy_options * moved call from open() to _ldap_pre_ready() univention-directory-manager-modules 13.0.21-15A~4.3.0.201803131409 719f91c31a475db4ddab63b29c587a0efb49c23b
OK, works
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".