Univention Bugzilla – Bug 32095
"Marktplatz" share has always "dc$OU-01" as share host
Last modified: 2013-10-07 20:18:01 CEST
single server environment create_ou always sets the not existing host "dc$OU-01" as share host for the "Marktplatz" share
The create_ou.post.d hook should read the fileserver in charge from the OU object before creating the Marktplatz share.
Technical background: create_ou tests for the UCR variable "ucsschool/defaultschoolname" which is de-facto unused since UCS@school 3.0. create_ou (or to be more precise verify_school_ou()) then sets the UCR variable to the name of the first OU ever created on a singlemaster. If "ucsschool/defaultschoolname" is unset on a singlemaster, the local hostname is passed to verify_school_ou() if no dcname has been given to the script. If the variable is set and no dcname has been specified, no hostname is passed to verify_school_ou() → the default "dc${OU}-01" is used as fileserver. Solution for UCS 3.1R2: Remove the test of "ucsschool/defaultschoolname" and always pass the local hostname to verify_school_ou() in single server environments. Solution for UCS 3.2: Same as 3.1R2. Remove also the definition of "ucsschool/defaultschoolname" within verify_school_ou(), but do not unset the variable. The variable is not used for any other function in UCS@school as described above. If a customer relies on that variable, a short post-ou hook script may be written to set the variable during create_ou if still unset.
(In reply to Sönke Schwardt-Krummrich from comment #2) > Solution for UCS 3.1R2: > Remove the test of "ucsschool/defaultschoolname" and always pass the local > hostname to verify_school_ou() in single server environments. ucs-school-import (10.0.3-2) > Solution for UCS 3.2: > Same as 3.1R2. Remove also the definition of "ucsschool/defaultschoolname" > within verify_school_ou(), but do not unset the variable. ucs-school-import (10.0.4-1) changelog-ucsschool-3.1R2-2.tex: Updated changelog-ucsschool-3.2.xml: Updated
OK: 3.1 code diff FIXED: 3.1 changelog OK: 3.1 package version OK: 3.1 test OK: 3.1 package in repo OK: 3.2 code diff FIXED: 3.2 changelog OK: 3.2 package version → VERIFIED
UCS@school 3.1 R2-2 has been released: http://download.univention.de/doc/release-notes-ucsschool-3.1-rev2-2.pdf If this error occurs again, please use "Clone This Bug".