Univention Bugzilla – Bug 39403
Update logon scripts listener module for newer MacOSX versions
Last modified: 2015-11-11 14:22:21 CET
The part for creating MacOSX relevant shell scripts for logon within the listener module ucs-school-user-logonscript.py is quite outdated. A customer provided an updated patch, addressing the following issues: 1) The current code creates a shell script with name "<share name>.app". Newer versions of OS X are unable to use them. 2) The scripts are created within the folder "Eigene Shares". If the school DC is used for Windows and MacOSX clients and the user is sharing the same desktop on both operating systems, the MacOSX scripts are gone after the next windows login. The attached customer patch adds a new UCR variable for an alternative folder name for MacOSX scripts. Additionally the location/name of the scripts has been fixed ("Programmname.app/Programmname"). The patch has been tested by the customer with OS X 10.6 up to 10.10.
Created attachment 7197 [details] Patch for listener module
Patch has been taken over with small adjustments. The patch adds a new UCR variable ucsschool/userlogon/mac/foldername that may be used to specify a special desktop folder for the OS X scripts. If undefined, the old default "Eigene Shares" is used. ucs-school-netlogon-user-logonscripts (11.0.2-1): r64156 | Bug #39403: update OS X logon scripts for newer versions (10.6 - 10.10) r64149 | Bug #39403: fixed wrong information in warning log message r64148 | Bug #39403: skipped superfluous warning in logfile
The package has been published to app repo ucsschool_devel.
* minor issue - no description for ucsschool/userlogon/mac/foldername is that OK? rest OK (i did not actually tested this with a mac, just verified the share dir) (In reply to Sönke Schwardt-Krummrich from comment #0) > 1) The current code creates a shell script with name "<share name>.app". > Newer versions of OS X are unable to use them. ucr set ucsschool/userlogon/mac=true /etc/init.d/univention-directory-listener restart -> find test2/Desktop/ test2/Desktop/ test2/Desktop/Eigene Shares test2/Desktop/Eigene Shares/Marktplatz.app test2/Desktop/Eigene Shares/Marktplatz.app/Marktplatz test2/Desktop/Eigene Shares/school1-1a.app test2/Desktop/Eigene Shares/school1-1a.app/school1-1a -> more "test2/Desktop/Eigene Shares/Marktplatz.app/Marktplatz" #!/usr/bin/osascript tell application "Finder" open location "smb://test2@master/Marktplatz" activate end tell > 2) The scripts are created within the folder "Eigene Shares". If the school > DC is used for Windows and MacOSX clients and the user is sharing the same > desktop on both operating systems, the MacOSX scripts are gone after the > next windows login. -> ucr set ucsschool/userlogon/mac/foldername='Mac Shares' -> /etc/init.d/univention-directory-listener restart -> find test4/Desktop/ test4/Desktop/ test4/Desktop/Mac Shares test4/Desktop/Mac Shares/Marktplatz.app test4/Desktop/Mac Shares/Marktplatz.app/Marktplatz test4/Desktop/Mac Shares/school1-1a.app test4/Desktop/Mac Shares/school1-1a.app/school1-1a
(In reply to Felix Botner from comment #4) > * minor issue - no description for ucsschool/userlogon/mac/foldername > is that OK? Yes, this is ok. This is an intentionally undocumented feature. → RESOLVED
OK
UCS@school 4.0 R2 v3 has been released. If this error occurs again, please use "Clone This Bug".