Updated the docker image today and LLDAP failed...
# troubleshooting
c
Updated the docker image today and LLDAP failed to start with
Copy code
2023-08-02T22:44:31.911300066Z error: invalid value 'STARTTLS' for '--smtp-encryption <SMTP_ENCRYPTION>'
2023-08-02T22:44:31.911314509Z   [possible values: none, tls, start-tls]
2023-08-02T22:44:31.911320042Z 
2023-08-02T22:44:31.911324871Z For more information, try '--help'.
Duly changed the env_var to
start-tls
and then got:
Copy code
2023-08-02T22:47:35.805839236Z Loading configuration from /data/lldap_config.toml
2023-08-02T22:47:35.806286001Z Error: unknown variant: found `start-tls`, expected `one of `NONE`, `TLS`, `STARTTLS`` for key "SMTP_OPTIONS.SMTP_ENCRYPTION" in `LLDAP_` environment variable(s)
2023-08-02T22:47:36.580737928Z > Setup permissions..
2023-08-02T22:47:36.581796652Z > Starting lldap..
2023-08-02T22:47:36.581810107Z
n
Here's a brand new thread for you! Please keep the discussion for this problem in this thread.
c
For now I've just hashed out the variable in my docker compose.
Copy code
yaml
#           - LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=start-tls
or
Copy code
yaml
#           - LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=STARTTLS
n
Oh, I think I know the problem. Could you open an issue for tracking?
Actually, I think I solved it in https://github.com/lldap/lldap/pull/632. Can you confirm?
c
Yep, can confirm this fixes the issue with
- LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=STARTTLS
Thanks for that, sorry I didn't get a chance to file an issue 😄