Before we begin, we must install the necessary software. The packages are all available in Ubuntu's default repositories. This is our first time using apt in this session, so we will refresh our local package index. Afterwards, we can install the packages we want:
sudo apt-get update
sudo apt-get install slapd ldap-utils
During the installation, you will be asked to select and confirm an administrator password for LDAP. You can actually put anything here because you will have the opportunity to change it, in just a moment.