Bug 51640 - 10univention-ldap-server.inst does univention-ldapsearch without correct credentials
10univention-ldap-server.inst does univention-ldapsearch without correct cred...
Status: NEW
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-07-08 09:16 CEST by Florian Best
Modified: 2020-07-08 09:16 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.103
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 Florian Best univentionstaff 2020-07-08 09:16:10 CEST
10univention-ldap-server.inst contains

 S4_DCS="$(univention-ldapsearch "(&(objectclass=univentionDomainController)(univentionService=Samba 4))" cn | sed -n 's/^cn: \(.*\)/\1/p')"

which is not using the correct credentials to talk to the LDAP server.

This breaks the "if"-condition and leads to the error message: "No such file or directory" in:

__MSG__:Einrichten von 10univention-ldap-server
__STEP__:7
Configure 10univention-ldap-server.inst Wed Jul  8 07:33:07 CEST 2020
2020-07-08 07:33:07.195118303+02:00 (in joinscript_init)
/etc/machine.secret: No such file or directory
/etc/machine.secret: No such file or directory
Adding SRV record "ldap tcp 0 100 7389 master093.autotest093.local." to zone autotest093.local...
done
Adding ZONE record "root@autotest093.local. 1 28800 10800 604800 108001 master093.autotest093.local." to zone 10.207...