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

Cannot sync #90

Closed gianacta closed 4 months ago

gianacta commented 4 months ago

Hi, I am trying to sync Entra ID groups and users to provide them through LDAP. The container seems to successfully syncs all groups, but when it starts syncing users, I encounter the following error: database.js mergeAzureEntries TypeError: Cannot read properties of undefined (reading 'entryDN')

Thanks Gianluca

gianacta commented 4 months ago

I've tried just with LDAP_DOMAIN (example.com) and also with both LDAP_DOMAIN (example.com) and LDAP_BASEDN (dc=example,dc=com) but nothing changed.

gianacta commented 4 months ago

Maybe i found the problem, i've got some groups that contains "/", how can i exclude them from the import?

ahaenggli commented 4 months ago

Special characters are replaced by “-”, so there should be no problems with slashes. Do you have other errors/warnings or just this one entry in your log? database.js mergeAzureEntries TypeError: Cannot read properties of undefined (reading 'entryDN')

If you really want no groups to be synchronized, you can set your environment variable for the group filter to something like GRAPH_FILTER_GROUPS=displayName eq 'none' This way, only the group with the specific name “none” would be synchronized (which does not exist).