I can run ldapsearch from my OpenLDAP server and successfully query a
remote LDAP server.
My command-line looks like this (broken into lines for readability):
ldapsearch
-u
-v
-x
-D 'cn=LDAP-proxy,ou=Service Accounts,dc=subdomain,dc=domain,dc=com'
-w '<password>'
-H 'ldap://server.subdomain.domain.com'
-b 'ou=Department,dc=subdomain,dc=domain,dc=com'
-s one
-P 3
'(&(objectCategory=person)(objectClass=user)(cn=DeP*))' +
It returns:
# extended LDIF
#
# LDAPv3
# base <ou=Data Security,dc=subdomain,dc=domain,dc=com> with scope subtree
# filter: (&(objectCategory=person)(objectClass=user)(cn=DeP*))
# requesting: +
#
# DePriest\2C Jason R., Department, subdomain.domain.com
dn: CN=DePriest\, Jason R.,OU=Department,DC=subdomain,DC=domain,DC=com
ufn: DePriest\2C Jason R., Department, subdomain.domain.com
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Hey, look! It found me!
I have tried using the ldap backend, but I'm leaning toward using the
meta backend now.
I cannot seem to figure out how to take the successful ldapsearch and
turn it into a configuration that will proxy requests to the remote
server.