Hi @Grzegorz Blach Thank you for reaching out.
I have reviewed the query and I understand that, you'd like to know how can we connect to Azure AD using LDAP. We can surely do that by using Azure Active Directory Domain Services.
Please review the below article for reference.
Ref.: https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/auth-ldap
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.