ahaenggli / AzureAD-LDAP-wrapper

LDAP-Wrapper for 'microsoft 365' work or school accounts/users (former 'office 365' - via Entra ID, former AzureAD without AADDS)
https://ahaenggli.github.io/AzureAD-LDAP-wrapper/
MIT License
122 stars 29 forks source link

question on LDAP queries on users.json #78

Closed letitfly closed 7 months ago

letitfly commented 7 months ago

For my task, I need to access one of the attribute "accountEnabled" stored in .cache/users.json

I can run ldap queries on stuff in .cache/azure.json, but have no idea on how to query stuff in .cache/users.json.

Anyone knows how?

ahaenggli commented 7 months ago

You can only query the values in azure.json. This is the file with the entire ldap database in it. You need to write and use a customizer to adjust/add values (function customizer.ModifyLDAPUser). Once the values are in the azure.json, you can query them.

letitfly commented 7 months ago

got it. Thank you!