Fix LDAP TLS authentication

Indent `when` as deep as `case`.