univention.management.console.modules.setup.checks package#

Submodules#

univention.management.console.modules.setup.checks.ldap module#

univention.management.console.modules.setup.checks.ldap.check_if_uid_is_available(uid: str, role: str, address: str, username: str, password: str) bool[source]#

check if either the UID it not yet taken at all or it is already taken (by our previous self) and still matches the server role

univention.management.console.modules.setup.checks.repositories module#

univention.management.console.modules.setup.checks.repositories.get_unreachable_repository_servers() list[str][source]#

Start a process to check the reachability of important servers.

Servers: * UCS repository server (repository/online/server) * App server (repository/app_center/server) * docker.software-univention.de

Returns:

List of URLs.

univention.management.console.modules.setup.checks.repositories.start_curl_processes(servers: Iterable[str]) Iterator[Popen][source]#

Start a curl process to check the reachability of important servers.process

Parameters:

servers – List of URLs to check.

Returns:

List of processes.

univention.management.console.modules.setup.checks.repositories.wait_for_processes_to_finish(processes: Iterable[Popen]) None[source]#

Wait until all processes have finished.

Parameters:

processes – List of processes.

univention.management.console.modules.setup.checks.repositories.log_warnings_about_unreachable_repository_servers(servers_with_curl_processes: Iterable[tuple[str, Popen]]) None[source]#

Log a message for all failed processes.

Parameters:

processes – List of 2-tuples (URL, process)

univention.management.console.modules.setup.checks.univention_join module#

univention.management.console.modules.setup.checks.univention_join.set_role_and_check_if_join_will_work(role: str, master_fqdn: str, admin_username: str, admin_password: str) None[source]#
univention.management.console.modules.setup.checks.univention_join.receive_domaincontroller_master_information(dns: str, nameserver: str, address: str, username: str, password: str) dict[str, Any][source]#
univention.management.console.modules.setup.checks.univention_join.check_credentials_nonmaster(dns: str, nameserver: str, address: str, username: str, password: str) str[source]#
univention.management.console.modules.setup.checks.univention_join.check_domain_has_activated_license(address: str, username: str, password: str) None[source]#
univention.management.console.modules.setup.checks.univention_join.check_domain_is_higher_or_equal_version(address: str, username: str, password: str) None[source]#
univention.management.console.modules.setup.checks.univention_join.check_for_school_domain(hostname: str, address: str, username: str, password: str) dict[str, Any][source]#
univention.management.console.modules.setup.checks.univention_join.check_is_school_multiserver_domain(address: str, username: str, password: str) bool[source]#
univention.management.console.modules.setup.checks.univention_join.get_server_school_roles(hostname: str, address: str, username: str, password: str) list[str][source]#