Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Nov 6, 2025

when the objectguid is used in the search, it has to be encoded in a specific way. LDAP does it already, their implemengtation (\OCA\User_LDAP\Access::formatGuid2ForFilterUser) is taken over for now and the generated value passed to search.

Also for comparison, usage in the LDAP backend: https://github.com/nextcloud/server/blob/5981b7eb512aa411f51cad541d01c5c6e93476f0/apps/user_ldap/lib/Access.php#L1653-L1659

In the longer run, the LDAP API from Nextcloud should provide something, to avoid code duplication, but until that we copy the logic.

@blizzz blizzz force-pushed the fix/noid/ad-objectguid-lookup branch from 01ec51d to a77207a Compare November 6, 2025 14:00
when the objectguid is used in the search, it has to be encoded in a
specific way. LDAP does it already, their implemengtation
(\OCA\User_LDAP\Access::formatGuid2ForFilterUser) is taken over for now
and the generated value passed to search.

Signed-off-by: Arthur Schiwon <[email protected]>
@blizzz blizzz force-pushed the fix/noid/ad-objectguid-lookup branch from a77207a to 6a246dd Compare November 6, 2025 14:39
@blizzz

This comment was marked as resolved.

Copy link

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat

@blizzz blizzz merged commit 7c7307a into master Nov 10, 2025
72 of 76 checks passed
@blizzz blizzz deleted the fix/noid/ad-objectguid-lookup branch November 10, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants