Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-09-2019 07:59 AM
When using apoc.load.ldap It is unable to query from the top-level domain.
For example, I have a query to return OU container objects:
call apoc.load.ldap({ldapHost:'edc-dc3.mydomain.com',loginDN:'cn=queryuser,cn=Users,DC=mydomain,DC=com',loginPW:'password'},
{searchBase:'dc=mydomain,dc=com',searchScope:'SCOPE_SUB',
attributes:['cn','description','name'],searchFilter:'(&(objectCategory=organizationalUnit))'})
yield entry
This will return the following error:
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure
apoc.load.ldap: Caused by: java.lang.RuntimeException: Error getting next ldap entry null
However if I select a down-level OU as the searchBase it works fine:
searchBase:'ou=someou,dc=mydomain,dc=com'
This behavior happens with any ldap queries (users, contacts, groups, OUs etc). Am I doing something wrong with the syntax, or is this a limitation of apoc.load.ldap? I thought I'd post here first before posting a bug report, as I tend to be making a habit of screwing up syntax lately! 😉
All the sessions of the conference are now available online