Univention Bugzilla – Bug 29241
UCR should be called with an absolute path
Last modified: 2014-05-07 15:24:40 CEST
is_ucr_true ruft univention-config-registry nicht mit einem absoluten Pfad auf. Da /usr/sbin für normale Benutzer nicht im PATH ist, schlägt das fehl. (Aufgefallen bei der Verwendung in UCC-Session-Skripten (die als normaler Benutzer gestartet werden) Patch aus UCC hängt an.
Created attachment 4795 [details] Patch
There are further occurrences in univention-lib, which execute "ucr". Since the UCR binaries are under /usr/sbin and /sbin/sbin is not in the PATH of non-root users, the calls fail when run as regular users. The attached patch was made for UCC (where this bug is triggered in session scripts, which are executed with user privs)
Created attachment 5001 [details] Call UCR with absolute path
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2. As such, this bug is moved to the new target milestone.
Created attachment 5825 [details] Updated patch for 3.2-1 Updated patch based on the version in 3.2-1 (which was integrated in UCC 2.0)
Fixed with univention-lib 3.0.26-19. Advisory: 2014-04-25-univention-lib.yaml
OK: r49641 OK: find \( -name \*.py -o -name debian \) -prune -o -type f -exec grep '\<\(ucr\|univention-config-registry\)\>' {} + | grep -v /usr/sbin/univention-config-registry OK: announce_errata -V 2014-04-25-univention-lib.yaml OK: aptitude install '?source-package(univention-lib)' OK: . /usr/share/univention-lib/ldap.sh && ucs_addServiceToLocalhost foo OK: . /usr/share/univention-lib/ldap.sh && ucs_removeServiceToLocalhost foo OK: . /usr/share/univention-lib/ldap.sh && ucs_isServiceUnused LDAP OK: . /usr/share/univention-lib/base.sh && is_domain_controller OK: . /usr/share/univention-lib/umc.sh && umc_init OK: . /usr/share/univention-lib/ucr.sh && is_ucr_true repository/online/unmaintained
http://errata.univention.de/ucs/3.2/105.html