ns-slapd command not found

In this troubleshooting guide we learn how to fix ns-slapd command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ns-slapd: command not found

or when using sudo you get the following error message

sudo: ns-slapd: command not found

Solutions to ns-slapd: command not found

How To Fix ns-slapd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ns-slapd is provided by 389-ds-base package.

389-ds-base is:

Based on the Lightweight Directory Access Protocol (LDAP), the 389 Directory Server is designed to manage large directories of users and resources robustly and scalably.

Its key features include:

  • four-way multi-master replication;
  • great scalability;
  • extensive documentation;
  • Active Directory user and group synchronization;
  • secure authentication and transport;
  • support for LDAPv3;
  • graphical management console;
  • on-line, zero downtime update of schema, configuration, and in-tree Access Control Information.

To fix this problem, we can install more using the command below.

sudo apt-get -y install 389-ds-base

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install 389-ds-base.

sudo apt -y install 389-ds-base

Or if you have aptitude installed you can use the following command.

sudo aptitude install 389-ds-base

Summary

In this tutorial we learn how to fix ns-slapd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.