Univention Bugzilla – Bug 33506
ucs-school-lib/base.sh school_dn() → is_ucr_true: command not found
Last modified: 2014-06-12 09:20:53 CEST
root@master:~# . /usr/share/ucs-school-lib/base.sh root@master:~# school_dn -bash: is_ucr_true: Kommando nicht gefunden. -bash: is_ucr_true: command not found missing import
The function also doesn't work on a singlemaster.
Does this currently lead to any known problem?
(In reply to Alexander Kläser from comment #2) > Does this currently lead to any known problem? No, I just could not use it when I wanted to. I copied a working definition from another package then.
At first the missing import should be fixed. Please also add a comment that the function returns only valid results on a DC slave.
The functions school_ou and school_dn used a lot of global variables. Additionally school_dn was broken and never returned a correct value. Both functions have been replaced with simplier versions using grep/sed. Both functions use ldap/hostdn for determination of OU name and OU DN. Optionally a hostdn may be passed as first argument which is used instead of ldap/hostdn. Inline documentation has been added to both functions that also contain a note, that these functions will not work on a DC master/DC backup. Changelog entry has been made. ucs-school-lib 5.0.1-1 has been imported and rebuild.
school_ou 'ou=bar,dc=example,dc=com' → does not work school_dn 'ou=bar,dc=example,dc=com' → does not work The docstrings are very nice!
(In reply to Florian Best from comment #6) > school_ou 'ou=bar,dc=example,dc=com' > → does not work > > school_dn 'ou=bar,dc=example,dc=com' > → does not work As mentioned in the doc strings a hostdn has to be passed to the two functions. But you are right, it would be better if a OU DN is also supported. → FIXED ucs-school-lib (5.0.2-1)
Ok, works fine.
Changelog OK
UCS@school 3.2 R2 has been released: http://docs.univention.de/release-notes-ucsschool-3.2R2-de.html If this error occurs again, please use "Clone This Bug".