Overleaf community image + LDAP configured for the University of Pisa
251
This work is based on the LDAP authentication implemented over the Overleaf community edition by kemnitzs and worksasintended. It currently work with the sharelatex image 2.4.2.
It is configured for the needs of the UniPi LDAP configuration, and uses STARTTLS (hardcoded) and the given credentials to bind to LDAP directly, without the need of an LDAP superuser password.
For a more generic solution, please refer to the original repository.
This solution uses ldapjs.
Edit docker-compose.yml to fit your local setup.
ADMIN_MAIL: login for local admin user which gets checked before the ldap routine during login. This is the only user that can login if ldap is down and does not need to exist in ldap. You need to create the same user in overleaf, for example using the launchpad. The admin user does not have to be in the same domain as other users.DOMAIN: At the current state, only users of a single domain are allowed (though easy to change). For a given user [email protected] trying to login, domain123.com is compared with DOMAIN. For the ldap authentification only the username user123 is used.LDAP_SERVER: address of the ldap serverLDAP_SERVER_DM: An address of a secondary LDAP server.The server to authenticate with is currently selected based on the domain part of the e-mail address, and is hardcoded inside AuthenticationMananager.js. Note that one server uses STARTTLS and the other just plain SSL. The code should be fairly easy to adapt to handle more general situations. The correcte base DN used to search for users should be fixed as well.
For persistent storage use volumes.
docker-compose up -d --build
Content type
Image
Digest
Size
2.7 GB
Last updated
over 5 years ago
docker pull robol/overleaf_ldap