Module: computer
This module is used to deal with all things related to the computer.
Members
- linuxmusterLinuxclient7.computer.checkHostname()[source]
Check if the hostname is valid. If not, an error is logged and shown on the GDM login screen.
- Returns:
True if the hostname is valid, False otherwise
- Return type:
- linuxmusterLinuxclient7.computer.hostname()[source]
Get the hostname of the computer
- Returns:
The hostname
- Return type:
- linuxmusterLinuxclient7.computer.hostnameIsValid()[source]
Check if the hostname can be used as a computer account name in the AD (max. 15 characters)
- Returns:
True or False
- Return type:
- linuxmusterLinuxclient7.computer.isInAD()[source]
Check if the computer is joined to an AD
- Returns:
True or False
- Return type:
- linuxmusterLinuxclient7.computer.isInGroup(groupName)[source]
Check if the computer is part of an ldap group
- Parameters:
groupName – The name of the group to check
- Returns:
True or False
- Return type: