mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Updated LDAP and SAML docs with OVERLEAF_ variable prefix
This commit is contained in:
parent
7d65325b74
commit
f5e579a54e
2 changed files with 21 additions and 19 deletions
21
doc/ldap.md
21
doc/ldap.md
|
@ -11,7 +11,7 @@ EXTERNAL_AUTH=ldap
|
|||
```
|
||||
|
||||
(To preserve backward compatibility with older configuration files, if
|
||||
`EXTERNAL_AUTH` is not set, but `SHARELATEX_LDAP_URL` is set, then the LDAP
|
||||
`EXTERNAL_AUTH` is not set, but `OVERLEAF_LDAP_URL` is set (`SHARELATEX_LDAP_URL` for versions `4.x` and older), then the LDAP
|
||||
module will be activated. We still recommend setting `EXTERNAL_AUTH` explicitely)
|
||||
|
||||
After bootstrapping Server Pro for the first time with LDAP authentication, an existing LDAP user must be given admin permissions visiting `/launchpad` page (or [via CLI](https://github.com/overleaf/overleaf/wiki/Creating-and-managing-users#creating-the-first-admin-user), but in this case ignoring password confirmation).
|
||||
|
@ -26,17 +26,18 @@ At Overleaf, we test the LDAP integration against a [test openldap server](https
|
|||
|
||||
```
|
||||
# added to variables.env
|
||||
# For versions of Overleaf CE/Server Pro `4.x` and older use the 'SHARELATEX_' prefix instead of 'OVERLEAF_'
|
||||
|
||||
EXTERNAL_AUTH=ldap
|
||||
SHARELATEX_LDAP_URL=ldap://ldap:389
|
||||
SHARELATEX_LDAP_SEARCH_BASE=ou=people,dc=planetexpress,dc=com
|
||||
SHARELATEX_LDAP_SEARCH_FILTER=(uid={{username}})
|
||||
SHARELATEX_LDAP_BIND_DN=cn=admin,dc=planetexpress,dc=com
|
||||
SHARELATEX_LDAP_BIND_CREDENTIALS=GoodNewsEveryone
|
||||
SHARELATEX_LDAP_EMAIL_ATT=mail
|
||||
SHARELATEX_LDAP_NAME_ATT=cn
|
||||
SHARELATEX_LDAP_LAST_NAME_ATT=sn
|
||||
SHARELATEX_LDAP_UPDATE_USER_DETAILS_ON_LOGIN=true
|
||||
OVERLEAF_LDAP_URL=ldap://ldap:389
|
||||
OVERLEAF_LDAP_SEARCH_BASE=ou=people,dc=planetexpress,dc=com
|
||||
OVERLEAF_LDAP_SEARCH_FILTER=(uid={{username}})
|
||||
OVERLEAF_LDAP_BIND_DN=cn=admin,dc=planetexpress,dc=com
|
||||
OVERLEAF_LDAP_BIND_CREDENTIALS=GoodNewsEveryone
|
||||
OVERLEAF_LDAP_EMAIL_ATT=mail
|
||||
OVERLEAF_LDAP_NAME_ATT=cn
|
||||
OVERLEAF_LDAP_LAST_NAME_ATT=sn
|
||||
OVERLEAF_LDAP_UPDATE_USER_DETAILS_ON_LOGIN=true
|
||||
```
|
||||
|
||||
The `openldap` needs to run in the same network as the `sharelatex` container (which by default would be `overleaf_default`), so we'll proceed with the following steps:
|
||||
|
|
19
doc/saml.md
19
doc/saml.md
|
@ -11,7 +11,7 @@ EXTERNAL_AUTH=saml
|
|||
```
|
||||
|
||||
(To preserve backward compatibility with older configuration files, if
|
||||
`EXTERNAL_AUTH` is not set, but `SHARELATEX_SAML_ENTRYPOINT` is set, then the SAML
|
||||
`EXTERNAL_AUTH` is not set, but `SHARELATEX_SAML_ENTRYPOINT` is set (`SHARELATEX_LDAP_URL` for versions `4.x` and older), then the SAML
|
||||
module will be activated. We still recommend setting `EXTERNAL_AUTH` explicitely)
|
||||
|
||||
The [Developer wiki](https://github.com/overleaf/overleaf/wiki/Server-Pro:-SAML-Config) contains further documentation on the available Environment Variables and other configuration elements.
|
||||
|
@ -22,16 +22,17 @@ At Overleaf, we test the SAML integration against a SAML test server. The follow
|
|||
|
||||
```
|
||||
# added to variables.env
|
||||
# For versions of Overleaf CE/Server Pro `4.x` and older use the 'SHARELATEX_' prefix instead of 'OVERLEAF_'
|
||||
|
||||
EXTERNAL_AUTH=saml
|
||||
SHARELATEX_SAML_ENTRYPOINT=http://localhost:8081/simplesaml/saml2/idp/SSOService.php
|
||||
SHARELATEX_SAML_CALLBACK_URL=http://saml/saml/callback
|
||||
SHARELATEX_SAML_ISSUER=sharelatex-test-saml
|
||||
SHARELATEX_SAML_IDENTITY_SERVICE_NAME=SAML Test Server
|
||||
SHARELATEX_SAML_EMAIL_FIELD=email
|
||||
SHARELATEX_SAML_FIRST_NAME_FIELD=givenName
|
||||
SHARELATEX_SAML_LAST_NAME_FIELD=sn
|
||||
SHARELATEX_SAML_UPDATE_USER_DETAILS_ON_LOGIN=true
|
||||
OVERLEAF_SAML_ENTRYPOINT=http://localhost:8081/simplesaml/saml2/idp/SSOService.php
|
||||
OVERLEAF_SAML_CALLBACK_URL=http://saml/saml/callback
|
||||
OVERLEAF_SAML_ISSUER=sharelatex-test-saml
|
||||
OVERLEAF_SAML_IDENTITY_SERVICE_NAME=SAML Test Server
|
||||
OVERLEAF_SAML_EMAIL_FIELD=email
|
||||
OVERLEAF_SAML_FIRST_NAME_FIELD=givenName
|
||||
OVERLEAF_SAML_LAST_NAME_FIELD=sn
|
||||
OVERLEAF_SAML_UPDATE_USER_DETAILS_ON_LOGIN=true
|
||||
```
|
||||
|
||||
The `sharelatex/saml-test` image needs to run in the same network as the `sharelatex` container (which by default would be `overleaf_default`), so we'll proceed with the following steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue