Skip to content

Commit

Permalink
docs: add documentation for TLS in LDAP
Browse files Browse the repository at this point in the history
  • Loading branch information
farioas committed Dec 4, 2023
1 parent 7d0f266 commit 88ef3cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/source/guide/auth_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,13 @@ MANUAL_ROLE_MANAGEMENT=0
```

Setting these options disables the Label Studio API and UI options to assign roles and workspaces for specific users within Label Studio and relies entirely on the settings in the environment variable file.

### Enabling TLS on LDAP/Active Directory

To enable a secure Transport Layer Security (TLS) connection on LDAP/Active Directory, add the following env variables:

```bash
AUTH_LDAP_CONNECTION_OPTIONS="OPT_X_TLS_CACERTFILE=/path/to/cert.crt;OPT_X_TLS_NEWCTX=0"
```

Where `OPT_X_TLS_CACERTFILE` points to a file with certificates. If you’re using self-signed certificates, you’ll need to add `OPT_X_TLS_NEWCTX=0` as the last entry of the `AUTH_LDAP_CONNECTION_OPTIONS` env variable.

0 comments on commit 88ef3cf

Please sign in to comment.