Docker image to run the local LDAP name service daemon.
- The image only comes with the software and the default configuration file;
- It should be used in combination with Helm charts (or similar tools for container configuration) to create the custom configuration;
- The default command is
/usr/sbin/nslcd", "--debug
. The--debug
option is used to keep the process in the foreground; - If using Helm charts to provide a configuration file, this should be owned by root and readable by root only.
- It is possible to export the nslcd socket once the process is running;
- To do so, mount
/run/nslcd
as volume; - Other containers can mount it with the option
--volumes-from <nslcd_server_name>
.
- Typically,
nscd
andnslcd
are used to access LDAP in order to retrieve information on user accounts; - In a traditional environment, the two services run on the host machine as system daemons. In the world of containers,
nscd
andnslcd
run in two dedicated containers; - To allow LDAP access to a third container, proceed as follows:
nslcd
: Export thenslcd
socket to a volume;nscd
: Mount the volume with thenslcd
socket into thenscd
container;nscd
: Export thenscd
socket to a volume;other containers
: Mount the volume with thenscd
socket.