|
@@ -19,11 +19,13 @@ class Params(BaseModel):
|
|
|
user: str
|
|
|
password: Secret
|
|
|
|
|
|
+
|
|
|
def commands_function(params: Params, host_config: HostConfig) -> Iterator[SpecialAgentCommand]:
|
|
|
"""Always use LDAPS for querying LDAP Server"""
|
|
|
command_arguments: list[str | Secret] = [
|
|
|
- "ldaps://" + host_config.name + ":636",
|
|
|
- params.user,
|
|
|
+ "-s " + "ldaps://" + host_config.name + ":636",
|
|
|
+ "-u " + params.user,
|
|
|
+ "-p",
|
|
|
params.password.unsafe(),
|
|
|
]
|
|
|
if params.check_tls is not None and params.check_tls is True:
|