Merge lp:~ahasenack/serverguide/use-sasl-external-for-config-changes-973981 into lp:serverguide
| Status: | Merged |
|---|---|
| Approved by: | Doug Smythies on 2017-05-09 |
| Approved revision: | 320 |
| Merged at revision: | 319 |
| Proposed branch: | lp:~ahasenack/serverguide/use-sasl-external-for-config-changes-973981 |
| Merge into: | lp:serverguide |
| Diff against target: |
34 lines (+5/-5) 1 file modified
serverguide/C/network-auth.xml (+5/-5) |
| To merge this branch: | bzr merge lp:~ahasenack/serverguide/use-sasl-external-for-config-changes-973981 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Doug Smythies | 2017-05-09 | Approve on 2017-05-09 | |
|
Review via email:
|
|||
Commit Message
Use SASL EXTERNAL when dealing with the cn=config backend instead of simple bind.
Description of the Change
When dealing with the cn=config backend, one must use the SASL EXTERNAL mechanism via the ldapi:/// socket because of a very specific ACL that the Ubuntu slapd package installs:
dn: olcDatabase=
(...)
olcAccess: {0}to * by dn.exact=
$ sudo ldapwhoami -Q -Y EXTERNAL -H ldapi:///
dn:gidNumber=
Without sudo:
$ ldapwhoami -Q -Y EXTERNAL -H ldapi:///
dn:gidNumber=
This branch changes the few places where I found attempts to read/modify the cn=config backend via the simple bind mechanism (-x), as reported in the linked bug.
There are more changes needed for the given commands to fully work, though. For example, the hdb backend is no longer used in xenial, having been replaced with mdb. But let's fix one thing at a time.
| Peter Matulis (petermatulis) wrote : | # |
Thanks Andreas. LGTM.

Looks good, thanks.
I'll have to take your word for it for the actual content changes, as I don't know.