hlavki / g-suite-identity-sync

G Suite to LDAP identity synchronizer
Apache License 2.0
127 stars 29 forks source link

G Suite Account Multiple Domains not recognized #76

Open alex4108 opened 3 years ago

alex4108 commented 3 years ago

My G Suite account consists of multiple domains. A tree is diagrammed below

ROOTDOMAIN.com
> ORG1.com
>> SPECIAL_SUB_ORG_1.com
> ORG2.com

My super admin account is part of ORG1.com

When I configure the application with environment variable GSUITE_DOMAIN=ROOTDOMAIN.com, I get a 401 Unauthorized trying to sign in as my user in ORG1.com.

If I reconfigure the application for GSUITE_DOMAIN=ORG1.com I am able to log in to the application.

Should the application perform logic in these checks against the environment variable, so as to recognize any child domains of the G Suite root domain?

hlavki commented 3 years ago

Hi @alex4108,

yes, multiple domains are not supported yet, since I have only single domain accounts. I can't handle new features at this moment because I haven't free time. Feel free to handle it and post pull request.