Skip to content

Commit 57493b1

Browse files
committed
Look for slapadd in /sbin as well
Debian puts the slap* utilities under /usr/sbin https://packages.debian.org/file:slapadd
1 parent e75c24d commit 57493b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/slapdtest/_slapdtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def _find_commands(self):
259259
self.PATH_LDAPDELETE = self._find_command('ldapdelete')
260260
self.PATH_LDAPMODIFY = self._find_command('ldapmodify')
261261
self.PATH_LDAPWHOAMI = self._find_command('ldapwhoami')
262-
self.PATH_SLAPADD = self._find_command('slapadd')
262+
self.PATH_SLAPADD = self._find_command('slapadd', in_sbin=True)
263263

264264
self.PATH_SLAPD = os.environ.get('SLAPD', None)
265265
if not self.PATH_SLAPD:

0 commit comments

Comments
 (0)