Filter for subsearches
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Reproduce the supplied ldap2pg.yml configuration and inspect the LDAP join/subsearch handling that produces the shown debug command. Compare the generated subsearch with the requested '(objectClass=User)' filter; done means the filter is applied to the subsearch and the behavior is covered by an appropriate test.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Go
- Stars
- 236
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dalibo/ldap2pg
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100