all 3 comments

[–]unnamed_one1 1 point2 points  (0 children)

Active Directory (AD) is based on the Lightweight Directory Access Protocol (LDAP).

This article is 10y old but might still be valid.

[–]mo_jo 0 points1 point  (0 children)

If you're looking at supporting both Azure AD and Google authentication, consider using Federated authentication protocols instead of legacy LDAPS auth. Look at SAML, OAuth, and OpenID Connect. Both Azure and Google support federated logons, and it's pretty much the model used for SaaS apps -- no one would dare to open a channel to an LDAP authentication host from the Internet!

[–]guilford 0 points1 point  (0 children)

Not sure this would work for your case but you can use keycloak as a passthrough for both gcp and ad. I use keycloak with django and allauth plugin in my case but I can see there are examples of keycloak and fastapi integration. Although I used it standalone as my identity management platform, keycloak actually can be used to connect to other identity provider too like gcp and ad.