sssd_test_framework.hosts.kdc

KDC multihost host.

Classes

KDCHost(*args, **kwargs)

Kerberos KDC server host object.

class sssd_test_framework.hosts.kdc.KDCHost(*args, **kwargs)

Bases: BaseDomainHost, BaseLinuxHost

Kerberos KDC server host object.

Provides features specific to Kerberos KDC.

This class adds config.realm and config.domain multihost configuration options to set the default kerberos realm and domain.

Example multihost configuration
- hostname: kdc.test
  role: kdc
  config:
    realm: TEST
    domain: test
    client:
      krb5_server: kdc.test
      krb5_kpasswd: kdc.test
      krb5_realm: TEST

Note

Full backup and restore is supported.

Parameters:
  • auto_start – Automatically start service before taking the first backup.

  • auto_restore (bool, optional) – If True, the host is automatically restored to the backup state when a test is finished in teardown(), defaults to True

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 KDC server.

Returns:

Backup data.

Return type:

Any

restore(backup_data: Any | None) None

Restore KDC server to its initial contents.

Returns:

Backup data.

Return type:

Any