Univention Bugzilla – Bug 37655
add default-umc-users to Domain Users $school-OU
Last modified: 2016-11-03 17:37:37 CET
Please create a test script for this. The ucr variable is named: ucsschool/import/attach/policy/umc (if unset True is assumed). The policy is "cn=default-umc-users,cn=UMC,cn=policies,%s" % (baseDN,) It have to be attached at "cn=Domain Users %s,cn=groups,%s" % (schoolNr.lower(), getDN(schoolNr). +++ This bug was initially created as a clone of Bug #36537 +++ The UMC policy "default-umc-users" should be appended to the "Domain Users $SCHOOL" group by default to allow students and teachers to change their own Password via the UMC module and also to allow UMC single sign on for them.
Both, ucs-school-lib and ucs-school-import implementations have to be checked.
renaming UCR variable to ucsschool/import/attach/policy/default-umc-users
Two new scripts are created: 110_set_default-umc-users Tests the case where ucsschool/import/attach/policy/default-umc-users=no 110_unset_default-umc-users Tests the case where ucsschool/import/attach/policy/default-umc-users is unset Chengelod entry added, package rebuilt.
Please make a comment why the import statement is in the main function. fix sys.exit(main()), as main does not return anything, just call main() Catch ldap.NO_SUCH_OBJECT also in 110_set_default-umc-users and fail then (it would be raised in case there is a bug in the product).
(In reply to Florian Best from comment #4) > Please make a comment why the import statement is in the main function. > fix sys.exit(main()), as main does not return anything, just call main() Done. > Catch ldap.NO_SUCH_OBJECT also in 110_set_default-umc-users and fail then > (it would be raised in case there is a bug in the product). Catching the exception is modified to exclusively check the results of this test, and fails if there were a related bug in the product.
Please also catch ldap.NO_SUCH_OBJECT in 110_unset_default-umc-users in case it fails. svn r57907 only switched the test case names.
in 110_set_default-umc-users → please log also the found_attr in utils.fail('Incorrect attribute found: %r' % (expected_attr, ))
(In reply to Florian Best from comment #6) > Please also catch ldap.NO_SUCH_OBJECT in 110_unset_default-umc-users in case > it fails. Done. (In reply to Florian Best from comment #7) > in 110_set_default-umc-users → please log also the found_attr in > utils.fail('Incorrect attribute found: %r' % (expected_attr, )) Done.
OK