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
121 stars 30 forks source link

Two usernames in one tenan #74

Open northboys opened 8 months ago

northboys commented 8 months ago

What is the procedure to synchronize two identical usernames within a single tenant to AzureAD-LDAP-wrapper? How can I configure AzureAD-LDAP-wrapper to allow both a@test.com and a@halo.com.

ahaenggli commented 8 months ago

How can you create two such users? In my tenant the username has to be unique over all domains?

northboys commented 8 months ago

I have several domains in one tenant and there are several users who have the same username but different domains. Screenshot 2024-02-26 at 10 29 23 Screenshot 2024-02-26 at 10 31 33

ahaenggli commented 8 months ago

Thank you very much! I was able to reproduce the situation. There is currently no way to use two users with the same name and different domains. Currently you would need a separate LDAP wrapper for each domain.

I am not yet sure how I want to implement this in the wrapper. As a reference for me: https://serverfault.com/a/828497 Variants 2 and 3 have their advantages and disadvantages.

KrzysztofKiser commented 7 months ago

Hi @ahaenggli - this is a very needed feature. I am struggling with the same issue as @northboys and would love to be able to use multiple same usernames in multiple domains in one LDAP wrapper since most systems can only be joined to one LDAP server.

agonza05 commented 7 months ago

Hello @northboys, I had a similar use case and solved it with the following customizer. ldap_customizer.js.txt For my users, now the have the following credentials: