Skip to content

Filter for subsearches #756

Description

@kkrasnov1

Hello

I want to filter only users for subsearches. But the filter is not applied.

ldap2pg.yml

  • ldap2pg.yml
  - description: "Search LDAP"
    ldapsearch:
      base: CN=pg_userdb,OU=Groups,DC=example,DC=com
      filter: '(objectClass=Group)'
      scope: sub
      joins:
        member:
          scope: base
          filter: '(objectClass=User)'
      on_unexpected_dn: fail

Expectations

In debug mode, I see subsearch

cmd="ldapsearch -H ldaps://ldap1.example.com -l 30 -Y DIGEST-MD5 -U ldapusr1 -b 'CN=Role PostgreSQL Superusers,OU=DB Team,OU=Groups,DC=example,DC=com' ' -s sub '(objectClass=*)' sAMAccountName"

Why is the filter '(objectClass=User)' not applied to the subsearch?
How can I specify a filter for a subsearch?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions