I tried that approach but I didn’t find a way to stop the service as it is started with the container and if you kill slapd the container is restarted. I guess the container needs to be started without running slapd but I need to check…
Here is an example of running slapcat in the openldap container:
root@debianns8test:~# runagent -m openldap1
runagent: [INFO] starting bash -l
runagent: [INFO] working directory: /home/openldap1/.config/state
openldap1@debianns8test:~/.config/state$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bf1421efb6e3 ghcr.io/nethserver/openldap-server:2.3.1 About a minute ago Up About a minute ago openldap
openldap1@debianns8test:~/.config/state$ podman exec -ti openldap sh
/var/lib/openldap $ ls
conf.d dump-config.ldif dump-mdb0.ldif ldap.conf openldap-data run
/var/lib/openldap $ slapcat -v -l old_ldap.ldif