Your message dated Tue, 1 Sep 2020 19:16:07 -0700
with message-id <[email protected]>
and subject line Re: Bug#969383: openldap fresh install /usr/sbin path bug 
/var/lib/dpkg/info/slapd.postinst
has caused the Debian Bug report #969383,
regarding openldap fresh install /usr/sbin path bug 
/var/lib/dpkg/info/slapd.postinst
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
969383: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969383
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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..

--- End Message ---
--- Begin Message ---
Hi,

Debian Policy ยง6.1 says: "Programs called from maintainer scripts should not normally have a path prepended to them.", so I think changing this in slapd would be wrong. That section does not explicitly say what we can assume PATH is; but I would consider /bin:/sbin:/usr/bin:/usr/sbin to be a minimal sane PATH.

On Tue, Sep 01, 2020 at 07:54:11PM +0100, SheridanJ West wrote:
sure my path is bad but this machine has has constantly upgraded since 2010
using debian so its probably got
a few issues with the root user. postsuper in postfix also needs /sbin help.

One note about that: when becoming root, I'd recommend using "su -" or "sudo -i" rather than just "su" or "sudo -s", in order to get your environment variables (such as PATH) reset, if you don't have /usr/sbin in your regular user's PATH.

I hope this helps. I'm closing this bug now as it's not a bug in the openldap package. If you need further support with fixing your environment, please contact the user support channels, such as the debian-user mailing list.
--- End Message ---

Reply via email to