Commit 42f26a90 authored by Jakob Moser's avatar Jakob Moser
Browse files

Inline config

As we only use it for one server
parent ed0f4667
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -28,15 +28,13 @@ uv run --with=ldap3 --python 3.12 python
```python
import ssl
from ldap3 import Tls, Server

TLS_CONFIGURATION = Tls(validate=ssl.CERT_REQUIRED)
```

For the CL account, use:

```python
ldap_server_url = "ldaps://ldap2.cl.uni-heidelberg.de"
server = Server(ldap_server_url, use_ssl=True, tls=TLS_CONFIGURATION)
server = Server(ldap_server_url, use_ssl=True, tls=Tls(validate=ssl.CERT_REQUIRED))
```

For the Uni ID, use: