Bug 32689 - use ucs_parseCredentials in various places
use ucs_parseCredentials in various places
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: univention-lib
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-25 15:23 CEST by Stefan Gohmann
Modified: 2020-10-05 13:58 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2013-09-25 15:23:54 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.
Comment 1 Arvid Requate univentionstaff 2013-10-09 13:52:43 CEST
univention-samba4/lib/base.sh  defines  extract_binddn_and_bindpwd_from_args
maybe this can serve as a starting point (or bad example..)
Comment 2 Philipp Hahn univentionstaff 2020-10-05 13:05:38 CEST
shell/ldap.sh → ucs_parseCredentials

svn+ssh://billy.knut.univention.de/var/univention/svn/dev/branches/ucs-3.2/ucs-3.2-0@44606
Comment 3 Florian Best univentionstaff 2020-10-05 13:58:08 CEST
Then we should use it everywhere mentioned in comment #0.