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.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
- class univention.management.console.modules.schoolinstaller.Instance(*args, **kwargs)[source]#
Bases:
Base- 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_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.
- 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.