question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtering by objectGUID

See original GitHub issue

Hello,

I’m trying to write a filter against the objectGUID attribute using the string representation of the GUID. Based on the article here: https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-5136 there is a pretty specific conversion that has to happen.

So in my case the objectGUID in string form is F4C2CE4E-1F08-4358-ABDC-FE3F035AF4CD. According to the Microsoft documentation, to use this in a filter it needs to be converted to \4e\ce\c2\f4\08\1f\58\43\ab\dc\fe\3f\03\5a\f4\cd so the final filter becomes:

(objectGUID=\4e\ce\c2\f4\08\1f\58\43\ab\dc\fe\3f\03\5a\f4\cd)

Unfortunately, this isn’t returning any records for me. I just wanted to check and see if anyone has had success querying against the objectGUID field using the library. I wanted to rule out the ldapts library doing anything behind the scenes that might change or render obsolete some of the conversion steps.

Thank you in advance for any suggestions or advice!

Best Regards,

Ed

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ErwSimcommented, Sep 20, 2021

I can confirm it solved the issue @jgeurts Thank you 😃

0reactions
jgeurtscommented, Sep 20, 2021

I added Buffer as a possible value type for EqualityFilter. Could you give v3.1.0 a shot if you have a chance?

Read more comments on GitHub >

github_iconTop Results From Across the Web

LDAP Filter on ObjectGUID - Ping Identity Support Portal
Problem: This article discusses the syntax for LDAP Filters based on the ObjectGUID value. Solution: In order to form an LDAP Filter that...
Read more >
Searching for objectGUID using LDAP - TechNet - Microsoft
I am searching an AD server using a Java LDAP client from Linux. On some AD setups, searching by objectGUID is extremely slow; ......
Read more >
active directory filter with objectGUID encoded as specified in ...
I'm using java ldap to access active directory, more specifically spring ldap. a group search by objectGUID yields no results when the filter...
Read more >
Active Directory search filter with ObjectGuid
Active Directory search filter with ObjectGuid ... Here, I have written an example about how to use objectguid in Active Directory search filter....
Read more >
How can I search by objectGUID / binary filters? #61 - GitHub
I've been trying every which way to find users by a saved objectGUID, but nothing seems to be working. I've tried filters using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found