Bug 42332 - Use before create: /etc/machine.secret on DC Master
Use before create: /etc/machine.secret on DC Master
Status: NEW
Product: UCS
Classification: Unclassified
Component: Join (univention-join)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-09 10:29 CEST by Philipp Hahn
Modified: 2020-06-22 14:36 CEST (History)
2 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 Philipp Hahn univentionstaff 2016-09-09 10:29:06 CEST
# cd /usr/lib/univention-install&&grep -n /etc/machine.secret [0-9]*.inst
03univention-directory-listener.inst:89:                /usr/sbin/univention-directory-listener $options -D "`univention-config-registry get ldap/hostdn`" -y /etc/machine.secret

Not yet created

10univention-ldap-server.inst:126:                      if [ -e /etc/machine.secret ]; then
10univention-ldap-server.inst:127:                              cat /etc/machine.secret >>/etc/machine.secret.SAVE
10univention-ldap-server.inst:130:                      touch /etc/machine.secret
10univention-ldap-server.inst:131:                      chmod 600 /etc/machine.secret
10univention-ldap-server.inst:133:                      echo -n "$computerPassword" >>/etc/machine.secret

only created here on DC master

81univention-nfs-server.inst:47:if ldapsearch -x -ZZ -D "$ldap_hostdn" -y /etc/machine.secret -s base -b "cn=$hostname.$domainname,cn=shares,$ldap_base" > /dev/null; then
91univention-saml.inst:51:HOSTPWD="/etc/machine.secret"