univention.management.console.modules.schoolinstaller package#

class univention.management.console.modules.schoolinstaller.HostSanitizer(regex_pattern: Pattern[str] | str | None = None, re_flags: int = 0, minimum: int | None = None, maximum: int | None = None, **kwargs: Any)[source]#

Bases: StringSanitizer

exception univention.management.console.modules.schoolinstaller.SchoolInstallerError(message=None, status=None, result=None, headers=None, traceback=None, reason=None)[source]#

Bases: UMC_Error

univention.management.console.modules.schoolinstaller.get_master_dns_lookup()[source]#
univention.management.console.modules.schoolinstaller.umc(username, password, master, path, options=None, flavor=None)[source]#
univention.management.console.modules.schoolinstaller.create_ou_local(ou, display_name)[source]#

Calls create_ou locally as user root (only on Primary Directory Node).

univention.management.console.modules.schoolinstaller.create_ou_remote(master, username, password, ou, display_name, educational_slave, administrative_slave=None)[source]#

Create a school OU via the UMC interface.

univention.management.console.modules.schoolinstaller.system_join(username, password, info_handler, error_handler, step_handler)[source]#
class univention.management.console.modules.schoolinstaller.Progress(max_steps=100)[source]#

Bases: object

reset(max_steps=100)[source]#
poll()[source]#
finish()[source]#
info_handler(info)[source]#
error_handler(err)[source]#
step_handler(steps)[source]#
add_steps(steps=1)[source]#
class univention.management.console.modules.schoolinstaller.Instance(*args, **kwargs)[source]#

Bases: Base

init()[source]#

this function is invoked after the module process started.

error_handling(etype, exc, etraceback)[source]#

Translate generic UDM exceptions back to LDAP exceptions.

Parameters:
  • etype – The exception class.

  • exc – The exception instance.

  • etraceback – The exception traceback instance; may be None.

get_samba_version()[source]#

Returns 3 or 4 for Samba4 or Samba3 installation, respectively, and returns None otherwise.

get_school_environment()[source]#

Returns ‘singlemaster’, ‘multiserver’, or None

get_school_version()[source]#
query(request, *args, **kwargs)[source]#

Returns a dictionary of initial values for the form.

progress(request, *args, **kwargs)[source]#
get_metainfo(request, *args, **kwargs)[source]#

Queries the specified Primary Directory Node for metainformation about the UCS@school environment

get_schoolinfo(request)[source]#

Queries the specified Primary Directory Node for information about the specified school

get_schoolinfo_master(request)[source]#

Fetches LDAP information from Primary Directory Node about specified OU. This function assumes that the given arguments have already been validated!

get_metainfo_master(request, *args, **kwargs)[source]#

Returns information about the UCS@school Installation on the Primary Directory Node.

install(request)[source]#
retrieve_root_certificate(master)[source]#

On a Replica Directory Node, download the root certificate from the specified Primary Directory Node and install it on the system. In this way it can be ensured that secure connections can be performed even though the system has not been joined yet. Returns the renamed original file if it has been renamed. Otherwise None is returned.

restore_original_certificate()[source]#