sssd_test_framework.hosts.samba

Samba multihost host.

Classes

SambaHost(*args, **kwargs)

Samba host object.

class sssd_test_framework.hosts.samba.SambaHost(*args, **kwargs)

Bases: BaseLDAPDomainHost, BaseLinuxHost

Samba host object.

Provides features specific to Samba server.

Note

Full backup and restore is supported.

Parameters:

tls (bool, optional) – Require TLS connection, defaults to True

adminuser: str

Username of the admin user, defaults to value of Administrator.

adminpw: str

Password of the admin user, defaults to value of bindpw.

property features: dict[str, bool]

Features supported by the host.

start() None

Start required services.

Raises:

NotImplementedError – If start operation is not supported.

stop() None

Stop required services.

Raises:

NotImplementedError – If stop operation is not supported.

backup() Any

Backup all Samba server data.

This is done by creating a backup of Samba database. This operation is usually very fast.

Returns:

Backup data.

Return type:

Any

restore(backup_data: Any | None) None

Restore all Samba server data to its original value.

This is done by overriding current database with the backup created by backup(). This operation is usually very fast.

Returns:

Backup data.

Return type:

Any