Univention Bugzilla – Bug 45129
join script 33univention-portal.inst hangs if "nc" is provided by "netcat-traditional"
Last modified: 2018-03-14 14:38:09 CET
The code should be if ! nc -z "$ldap_master" "${ldap_master_port:-7389}"; then instead of if ! nc -w 10 "$ldap_master" "${ldap_master_port:-7389}"; then because the "-z" function does what is intended with this code and it works with both netcat versions and it is faster. +++ This bug was initially created as a clone of Bug #44601 +++ This is an upgrade from 4.1 to 4.2. On all our servers the "nc" binary is provided by the "netcat-traditional" package. The package "netcat-openbsd" is not installed. In such a setup the join script hangs in the following line: if ! nc -w 10 "$ldap_master" "${ldap_master_port:-7389}"; then
This slows down the UCS 4.3 join performance tests.
Fix: [4.3-0 ff35061e46] * Use nc -z instead of nc -w 10 to check the LDAP server (Bug #45129) Changelog: [4.3-0 9637403330] Changelog Bug #45129
By removing the w option completely nc hangs until the TCP handshake is done which might take some time on really slow systems. But I think that is ok. What I tested: Installation works -> OK Verified
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".