|
@@ -8,13 +8,12 @@ from cmk.server_side_calls.v1 import HostConfig, SpecialAgentCommand, SpecialAge
|
|
|
from cmk.server_side_calls.v1._utils import Secret
|
|
|
|
|
|
class Params(BaseModel):
|
|
|
- ldap_uri: str
|
|
|
user: str
|
|
|
password: Secret
|
|
|
|
|
|
def commands_function(params: Params, host_config: HostConfig) -> Iterator[SpecialAgentCommand]:
|
|
|
command_arguments: Sequence[str | Secret] = [
|
|
|
- params.ldap_uri,
|
|
|
+ "ldaps://" + host_config.name + ":636",
|
|
|
params.user,
|
|
|
params.password.unsafe(),
|
|
|
]
|