slapd configuration does not ask for olcbackend and doesn't add one. Has to be added by hand.

Bug #1880209 reported by Mario Mech
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
Fix Released
Low
Andreas Hasenack
openldap (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Installing slapd and ldap-utils results in missing backend

dn: olcBackend={0}mdb,cn=config

the installer skips the installation step. Has to be added by ldpamodify.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: slapd 2.4.49+dfsg-2ubuntu1.2
ProcVersionSignature: Ubuntu 5.4.0-31.35-generic 5.4.34
Uname: Linux 5.4.0-31-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CNConfig:
 Error: command ['pkexec', '/usr/bin/ldapsearch', '-Q', '-LLL', '-Y EXTERNAL', '-H ldapi:///', '-b cn=config'] failed with exit code 127: polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
 Error executing command as another user: Not authorized

 This incident has been reported.
CasperMD5CheckResult: skip
Date: Fri May 22 18:27:59 2020
InstallationDate: Installed on 2020-04-20 (32 days ago)
InstallationMedia: Ubuntu-Server 20.04 LTS "Focal Fossa" - Beta amd64 (20200417)
SourcePackage: openldap
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mario Mech (mariomech) wrote :
Revision history for this message
Ryan Tandy (rtandy) wrote : Re: [Bug 1880209] [NEW] slapd configuration does not ask for olcbackend and doesn't add one. Has to be added by hand.

On Fri, May 22, 2020 at 04:34:52PM -0000, Mario Mech wrote:
>Installing slapd and ldap-utils results in missing backend
>
>dn: olcBackend={0}mdb,cn=config
>
>the installer skips the installation step. Has to be added by
>ldpamodify.

This was done intentionally as it's much more common to configure things
per-database than per-backend. What do you need the backend entry for,
and why is it a problem to add it yourself? Thanks.

Revision history for this message
Mario Mech (mariomech) wrote :

I was just following the documentation on https://ubuntu.com/server/docs/service-ldap and there it is present. It still was on 19.10. So I was just wondering. Sorry!

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Oh, I can fix that. Let me add a server-guide task.

Changed in serverguide:
assignee: nobody → Andreas Hasenack (ahasenack)
importance: Undecided → Low
status: New → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Just fixed, it might take a few minutes or hours to update on the site.

Revision history for this message
Robie Basak (racb) wrote :

> This was done intentionally as it's much more common to configure things
per-database than per-backend.

In that case, this is presumably Won't Fix for openldap, unless someone wants to start a discussion about that? Thank you to Mario for reporting, and Ryan for confirming the status.

Changed in openldap (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.