Commit e5b36c3b authored by Jakob Moser's avatar Jakob Moser
Browse files

Make instructions for server objects easier to copy and paste

parent 4ea58bba
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -30,8 +30,23 @@ 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"
```

For the Uni ID, use:

ldap_server_url = ...  # Choose one from the table above
```python
ldap_server_url = "ldaps://ad.uni-heidelberg.de"
```

Then, run:

```
server = Server(ldap_server_url, use_ssl=True, tls=TLS_CONFIGURATION)
```