sssd_test_framework.hosts.ldap

LDAP multihost host.

Classes

LDAPHost(*args, **kwargs)

LDAP host object.

class sssd_test_framework.hosts.ldap.LDAPHost(*args, **kwargs)

Bases: BaseLDAPDomainHost, BaseLinuxHost

LDAP host object.

Provides features specific to native directory server like 389ds.

Note

Full backup and restore is supported.

Parameters:

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

property features: dict[str, bool]

Features supported by the host.

remove_backup(backup_data: Any | None) None

Remove backup data from the host.

Parameters:

backup_data (Any | None) – Backup data.

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 directory server data.

Full backup of cn=config and default naming context is performed. This is done by simple LDAP search on given base dn and remembering the contents. The operation is usually very fast.

Returns:

Backup data.

Return type:

Any

restore(backup_data: Any | None) None

Restore directory server data.

Current directory server content in cn=config and default naming context is modified to its original data. This is done by computing a difference between original data obtained by backup() and then calling add, delete and modify operations to convert current state to the original state. This operation is usually very fast.

Returns:

Backup data.

Return type:

Any