With this backend you can create a custom shellscript or executable and use it to return a ldap response.
References
Introduction to the slapd backend
Reference guide for slapd configuration
Configuration
############ LDAP SCRIPT ################################## database shell suffix "o=shell,dc=sia,dc=es" search /opt/soft/openldap/libexec/searchSamle.sh #######################################################################
code
#! /bin/bash output() { printf '%s\n' "$*" } echo $?>"/opt/soft/openldap/var/log/log.data" while true do read data if [ $? -eq 0 ] then echo $data>>"/opt/soft/openldap/var/log/log.data" else break fi done output "dn: cn=Boris Norris,o=shell,dc=sia,dc=es" output "cn: Boris Norris" output "" output "RESULT" output "code: 0" exit 0
No hay comentarios:
Publicar un comentario