Bug 32560

Summary: Make univention-ldapsearch accept join credential options
Product: UCS Reporter: Arvid Requate <requate>
Component: LDAPAssignee: Arvid Requate <requate>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: gohmann, jmm
Version: UCS 3.2   
Target Milestone: UCS 3.2-0-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- 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:

Description Arvid Requate univentionstaff 2013-09-11 14:28:31 CEST
There are a couple of places where univention-ldapsearch is used in joinscripts, but the join-credentials are not passed. On systems other than master and backup the search is performed with machine credentials in this case, which, depending on the ACLs might not give the same results. Maybe these are corner cases, but it would be good to make univention-ldapsearch accept the --binddn/bindpwd/bindpwdfile options and convert them into the equivalent ldapsearch options. The order of the options must be maintained.
Comment 1 Arvid Requate univentionstaff 2013-12-19 15:58:35 CET
Advisory: 2013-12-09-univention-config-registry.yaml
Comment 2 Felix Botner univentionstaff 2014-01-07 17:34:57 CET
OK - univention-ldap
OK - YAML

-> univention-ldapsearch  -LLL uid=Administrator uid
dn: uid=Administrator,cn=users,dc=w2k12,dc=test
uid: Administrator

-> univention-ldapsearch \
   --binddn uid=Administrator,cn=users,dc=w2k12,dc=test \
   --bindpwd univention \
   -LLL uid=Administrator uid
dn: uid=Administrator,cn=users,dc=w2k12,dc=test
uid: Administrator

-> univention-ldapsearch \
   --binddn uid=Administrator,cn=users,dc=w2k12,dc=test \
   -w univention \
   -LLL uid=Administrator uid
dn: uid=Administrator,cn=users,dc=w2k12,dc=test
uid: Administrator

-> univention-ldapsearch \
   -D uid=Administrator,cn=users,dc=w2k12,dc=test \
   -w univention \
   -LLL uid=Administrator uid
dn: uid=Administrator,cn=users,dc=w2k12,dc=test
uid: Administrator

-> univention-ldapsearch \
   -D uid=Administrator,cn=users,dc=w2k12,dc=test \
   --bindpwd univention \
   -LLL uid=Administrator uid
dn: uid=Administrator,cn=users,dc=w2k12,dc=test
uid: Administrator

-> univention-ldapsearch \
  -D uid=Administrator,cn=users,dc=w2k12,dc=test \
  --bindpwdfile /tmp/univention \
  -LLL uid=Administrator uid
dn: uid=Administrator,cn=users,dc=w2k12,dc=test
uid: Administrator

-> univention-ldapsearch \
  --binddn uid=Administrator,cn=users,dc=w2k12,dc=test \
  --bindpwdfile /tmp/univention \
  -LLL uid=Administrator uid
dn: uid=Administrator,cn=users,dc=w2k12,dc=test
uid: Administrator
Comment 3 Moritz Muehlenhoff univentionstaff 2014-01-21 14:08:18 CET
http://errata.univention.de/ucs/3.2/23.html