Docker image with LDAP connection preconfigrued

Hello :

Just like we have VM with SSSD service configured to integrate with either OpenLDAP or Microsoft AD, so that any one who wants to access the vm (for ex “ssh username@acme1.example.com”) should work only if the username exists in the LDAP/AD. Likewise, we are looking to build the docker image with LDAP integration so that any one who runs “docker exec -it containerId --user username” should work (only if the username exists in the LDAP/AD). And the root access should be disabled

Has any one tried to build this, we are looking for this.

thnx in advance.