Bug#969383: openldap fresh install /usr/sbin path bug /var/lib/dpkg/info/slapd.postinst

2020-09-01 Thread Ryan Tandy

Control: tag -1 moreinfo

Hello,

On Tue, Sep 01, 2020 at 05:35:13PM +0100, SheridanJ West wrote:

/var/lib/dpkg/info/slapd.postinst: slapadd: not found


Does /usr/sbin/slapadd exist?

Why is /usr/sbin not in the PATH for dpkg-reconfigure? I think you'll 
have problems with more packages than just slapd in that case...




Bug#969383: openldap fresh install /usr/sbin path bug /var/lib/dpkg/info/slapd.postinst

2020-09-01 Thread SheridanJ West
package: slapd

apt file buster/main i386 slapd i386 2.4.47+dfsg-3+deb10u2

Attempting to figure out adding some ldap instances and have slapadd but
your script file does not point near /usr/sbin.

/usr/sbin/dpkg-reconfigure slapd
  Backing up /etc/ldap/slapd.d in
/var/backups/slapd-2.4.47+dfsg-3+deb10u2... done.
  Creating initial configuration... Loading the initial configuration from
the ldif file () failed with
the following error while running slapadd:
/var/lib/dpkg/info/slapd.postinst: 833:
/var/lib/dpkg/info/slapd.postinst: slapadd: not found

Come to a halt and your postinst file is not easy to diagnose..