Announcment
For those still interested on this topic, there will soon be a new version comming.
overleaf_ldap
ldap implementation for the overleaf community edition overleaf
Work by kemnitzs and worksasintended.
This solution uses ldapjs.
Usage
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 useruser123@domain123.com
trying to login,domain123.com
is compared withDOMAIN
. For the ldap authentification only the usernameuser123
is used.LDAP_SERVER
: address of the ldap serverLDAP_BIND_DN
: bind dn which allows to search users inside ldapLDAP_BIND_PW
: secret corresponding toLDAP_BIND_DN
For persistent storage use volumes. For secure connections either use nginx-proxy or add the certificate to nginx inside the worksasintended/overleaf-ldap container and adjust nginx settings accordingly.
Start the server using docker-compose
docker-compose up -d
Building the image
The image worksasintended/overleaf_ldap
is available at dockerhub
You can also build it yourself simply using the docker build
command or the build
script.