If you use gitlab (CE or EE), you can easily setup Mattermost with LDAP as well: https://gitlab.com/gitlab-org/gitlab-mattermost
Edit: Gitlab doesn't officially support SSO on top of SSO (AD/LDAP, etc), so its at your own peril: https://docs.mattermost.com/deployment/sso-gitlab.html
Edit: Gitlab doesn't officially support SSO on top of SSO (AD/LDAP, etc), so its at your own peril: https://docs.mattermost.com/deployment/sso-gitlab.html