Univention Bugzilla – Bug 32689
use ucs_parseCredentials in various places
Last modified: 2020-10-05 13:58:08 CEST
We have various implementations to extract / convert the join script credentials into username and password. For example virtualization/univention-virtual-machine-manager-daemon/56univention-virtual-machine-manager-daemon.uinst services/univention-squid-kerberos/98univention-squid-samba4.inst: services/univention-samba4/96univention-samba4.inst services/univention-printserver/79univention-printserver.inst services/univention-printserver/79univention-printserver-pdf.inst One implementation should be added to univention-lib and all others should use the function.
univention-samba4/lib/base.sh defines extract_binddn_and_bindpwd_from_args maybe this can serve as a starting point (or bad example..)
shell/ldap.sh → ucs_parseCredentials svn+ssh://billy.knut.univention.de/var/univention/svn/dev/branches/ucs-3.2/ucs-3.2-0@44606
Then we should use it everywhere mentioned in comment #0.