Univention Bugzilla – Bug 39475
ucs_registerLDAPExtension does exit when unkown arguments are passed
Last modified: 2015-11-17 12:11:34 CET
When calling ucs_registerLDAPExtension with options it does not know, it just exits. But it needs to work on, because of the following pattern: ucs_registerLDAPExtension "$@" ... This fails when running in univention-run-joinscripts ucs_registerLDAPExtension: error: no such option: --run-scripts
hmm. We should strip out '--run-scripts' from $@.
Or support (ignore) that option in ucs_registerLDAPExtension (python). Or use use something like this http://stackoverflow.com/questions/1885161/how-can-i-get-optparses-optionparser-to-ignore-invalid-options to fix this once and for all future options.
But this is a bug in univention-run-join-scripts, not in ucs_registerLDAPExtension. "$@" is used in a lot calls (or will be in future). If we fix it only in ucs_registerLDAPExtension we will have to fix it somewhere else somewhen, too.
Good theory, but reality disagrees. univention-run-join-scripts doesn't pass "$@" to the joinscripts, only the filtered -binddn and -bindpwd. As it turns out, the App Center called the join script directly. Dirk will avoid the --run-scripts Option there.
OK, r65126 removed the parameter when calling the join script
UCS 4.1 has been released: https://docs.software-univention.de/release-notes-4.1-0-en.html https://docs.software-univention.de/release-notes-4.1-0-de.html If this error occurs again, please use "Clone This Bug".