Commit Graph

81 Commits

Author SHA1 Message Date
Simon M. Haller-Seeber
da9a27b34d adapted changes from PR #15. 2022-01-17 14:36:17 +01:00
Simon M. Haller-Seeber
41c172b587 Update to version sharelatex version 3.0.1. Tested changes with our small experimental environment: Seems to work with the applied small fixes. 2022-01-13 15:29:43 +01:00
sym
39ef130adc
Merge pull request #13 from davidmehren/fix_contacts_disable
Fix parsing the LDAP_CONTACTS environment variable. 
Thank you for the contribution!
2021-06-16 10:32:17 +02:00
David Mehren
c40b47135c
Fix parsing the LDAP_CONTACTS environment variable
The current code skips loading contact information from LDAP if
`!process.env.LDAP_CONTACTS` evaluates to `true`.

This is nearly never the case, as `process.env` contains strings
and non-empty strings evaluate to `true`, making the negation falsy.
Only an empty string in `LDAP_CONTACTS` (or not setting the environment
variable at all) skips the contact loading.

This commit changes the logic to only load contacts from LDAP if the
`LDAP_CONTACTS` environment variable is explicitly set to `"true"` (case
insensitive). This should bring the behaviour of the application more in
line with the expectation and the docs.
2021-06-14 17:34:42 +02:00
Simon M. Haller-Seeber
ba73f282ec small docker compose comments 2021-06-08 15:44:14 +02:00
sym
9cde93be05
Merge pull request #11 from SF2311/fix-contacts
Agreed.
2021-05-26 22:45:44 +02:00
Sven Feyerabend
19d3b30c93 Fix import of contacts 2021-05-26 17:09:58 +02:00
sym
256c887d8f
Update README.md 2021-05-25 23:07:15 +02:00
Simon Markus Haller
ca0dc33cb7 Merged pull reqeust #9. Added missing adaptions in ContactController. Generally moved GROUP_FILTER to USER_FILTER. Added some comments to the readme. 2021-05-25 15:35:13 +02:00
Simon Markus Haller
df51a6dbe0 Merge branch 'SF2311-fix-uid' 2021-05-25 13:58:19 +02:00
Simon Markus Haller
6263029df9 Merge branch 'fix-uid' of https://github.com/SF2311/ldap-overleaf-sl into SF2311-fix-uid 2021-05-25 13:56:55 +02:00
Sven Feyerabend
6992f2c8ed Allow ldap bind with authenticating user 2021-05-25 11:27:42 +02:00
sym
5e62caedf6
Update Dockerfile
Shell-Escape for newer Sharelatex versions
2021-05-25 10:32:06 +02:00
Sven Feyerabend
2688db1d0c fix filter example in README 2021-05-21 23:12:49 +02:00
Sven Feyerabend
547ce9a744 Split User and Group filter 2021-05-18 23:26:33 +02:00
Sven Feyerabend
2b982babbb Simplify uid replacement Regex declaration 2021-05-18 22:48:57 +02:00
Sven Feyerabend
025d5fba97 Remove mail constraint on admin group 2021-05-18 22:48:15 +02:00
Sven Feyerabend
4617bf690b replace "replaceAll" function 2021-05-17 21:21:24 +02:00
Sven Feyerabend
f25cb05c8b Merge remote-tracking branch 'shasler/ldap-replace-uid' into fix-uid 2021-05-14 23:49:09 +02:00
Sebastian Hasler
56be9a450c Configurable usage of UID in LDAP filters
Signed-off-by: Sebastian Hasler <sebastian.hasler@sec.uni-stuttgart.de>
2021-05-14 23:42:47 +02:00
Simon M. Haller-Seeber
a66affb1e1 Merge branch 'master' of https://github.com/smhaller/ldap-overleaf-sl 2021-05-10 23:41:38 +02:00
Simon M. Haller-Seeber
57da632558 Fixed Issue #7. Other solution for pull request #8 - it is now selectable which admin interface is used (via .env file) 2021-05-10 23:40:49 +02:00
sym
d13e6a475d
Update README.md 2021-05-10 23:01:42 +02:00
Simon M. Haller-Seeber
90e7681c35 Short test with Sharelatex 2.6.1 - seems to work. Use LDAP escape - thx to @SF2311. 2021-05-10 21:28:02 +02:00
Simon M. Haller-Seeber
831b810e81 Update to Sharelatex to version 2.6.1 2021-05-10 19:26:15 +02:00
Sven Feyerabend
34614356c9 Escape user input in ladp filters 2021-05-08 02:08:03 +02:00
Sven Feyerabend
fcebf5f33d Change uid from const to var 2021-05-08 01:42:27 +02:00
Sven Feyerabend
eca1d9881e Use uid instead of email for user search 2021-05-08 01:32:58 +02:00
Christian Huettig
53a4ba6b4f
Update README.md 2021-04-28 22:19:57 +02:00
Christian Huettig
fd4f45354b Works. 2021-04-28 22:02:03 +02:00
Christian Huettig
a8d72465d9 Next phase 2021-04-28 21:33:10 +02:00
Christian Huettig
2b58ad96e3 initial changes for testing 2021-04-28 21:16:36 +02:00
Christian Huettig
c427f472db
Update README.md 2021-04-28 20:58:59 +02:00
Simon M. Haller-Seeber
0677da6a81 Merge branch 'master' of https://github.com/smhaller/ldap-overleaf-sl 2021-03-11 16:38:55 +01:00
Simon M. Haller-Seeber
204b064bb7 Actually load the ssl configuration (https://github.com/overleaf/overleaf/issues/809) 2021-03-11 16:38:35 +01:00
sym
f97d76cca6
Update Dockerfile 2021-03-11 16:21:43 +01:00
sym
a67931a241
Update README.md
fix typos; add docker create web.
2021-03-11 14:31:07 +01:00
Simon M. Haller-Seeber
8845734b91 Switch from certbot to traefik: including loadbalancing for multiple sharelatex docker instances; Fix AuthenticationManger.js for sharelatex > 2.3.1; Todo: enhancement - also use https for loadbalancing in the docker backend. 2021-03-11 09:06:23 +01:00
Simon M. Haller-Seeber
fb6f654738 Switch from certbot to traefik: including loadbalancing for multiple sharelatex docker instances; Fix AuthenticationManger.js for sharelatex > 2.3.1; Todo: enhancement - also use https for loadbalancing in the docker backend. 2021-03-11 08:58:40 +01:00
Simon M. Haller-Seeber
8f0b270faf Adapt AuthenticationManager.js to work with sharelatex versions > 2.3.1 2021-03-11 08:48:34 +01:00
Simon M. Haller-Seeber
ca58b4852a Switch from certbot to traefik 2021-03-10 21:24:49 +01:00
sym
4da7bac9f9
Update Dockerfile
revert back to sharelatex 2.3.1. Versions greater introduce issue #5
2021-03-10 21:10:53 +01:00
sym
74426fe812
Update docker-compose.yml
Add default values for access public links w/o login. (Line:46-52)
2021-03-08 13:35:14 +01:00
sym
1e60e141f3
Update AuthenticationManager.js
revert Changes - the pull request was faulty. This was already the id...
2021-03-05 10:12:26 +01:00
sym
9344017322
Update README.md 2021-02-22 10:32:36 +01:00
sym
a96035fcc3
Update Dockerfile 2021-02-22 10:01:06 +01:00
sym
0a563a1f75
Merge pull request #4 from andreas-bulling/master
Update Dockerfile
2021-02-22 09:54:52 +01:00
andreas-bulling
6f18606a8f
Update Dockerfile
I also works fine with the latest sharelatex (which includes TexLive 2020)
2021-02-22 09:49:39 +01:00
sym
c8afa166d4
Merge pull request #3 from andreas-bulling/master
Update docker-compose.yml
2021-02-22 09:47:26 +01:00
andreas-bulling
abf1e76555
Update AuthenticationManager.js
userId contains the whole user object. Hence, only use _id
2021-02-22 09:41:18 +01:00