I have compiled OpenLDAP v2.4.8 (./configure --enable-backends=yes --enable-overlays=yes) and trying to put a shell script on my slapd.conf to parse LDAP queries. But when I run slaptest I get: "unknown directive <search> inside backend database definition" error.
Here is my slapd.conf -
include /usr/local/etc/openldap/schema/core.schema pidfile /usr/local/var/run/slapd.pid argsfile /usr/local/var/run/slapd.args Allow bind_v2 access to dn.base="" by * read access to * by * read backend shell database ldap suffix "dc=activedirectory,dc=domain,dc=tld" uri "ldap://activedirectory.domain.tld" search shell_script.sh
Any help on this would be much appreciated. Thanks.
Chris Henderson writes:
backend shell database ldap suffix "dc=activedirectory,dc=domain,dc=tld" uri "ldap://activedirectory.domain.tld" search shell_script.sh
I'm not sure what this is supposed to do.
The "backend" directive is mostly useless (it's a config option that no backends make use of that I know of). A database is an instance of a particular backend, so:
You'r giving the "search" directive to the "ldap" backend instead of the "shell" backend.
You could instead have
database shell suffix "dc=activedirectory,dc=domain,dc=tld" search shell_script.sh
but if you want slapd to connect to Active Directory and make use of it somehow that's something else. And not anything I'd touch with a flagpole for that matter.
openldap-technical@openldap.org