YaST2 Developers Documentation: Configuration of kerberos-client

Configuration of kerberos-client

modules/Kerberos.ycp
Data for configuration of kerberos-client, i/o functions.
  • Jiri Suchomel

This module has an unstable interface.

Representation of the configuration of kerberos-client. Input and output routines.

Imports

  • FileUtils
  • Hostname
  • Label
  • Mode
  • Package
  • Pam
  • Progress
  • Report
  • Service
  • Stage
  • Summary

Global Variables

Global Functions

global required_packages -> list<string>

Required packages for this module to operate

global ExpertSettings -> map<string,any>

map with the settings configurable in the expert tabs

global Modified () -> boolean

Data was modified?

Return value:
true if modified
global Import (map settings) -> boolean

Get all the Kerberos configuration from a map.

Parameters:
settings imported map
Return value:
success
global Export () -> map

Dump the Kerberos settings to a map, for autoinstallation use.

Return value:
with settings
global ReadKrb5ConfValues (path path_to_value, string def_value) -> list<string>

Reads the item values from the /etc/krb5.conf via ini agent If the item doesn't exist, returns the default value

Parameters:
path_to_value path for agent (.etc.krb5_conf)
def_value default value for the key (path)
Return value:
string the values for given key
global ReadKrb5ConfValue (path path_to_value, string def_value) -> string

Reads the item value from the /etc/krb5.conf via ini agent If the item doesn't exist, returns the default value

Parameters:
path_to_value path for agent (.etc.krb5_conf)
def_value default value for the key (path)
Return value:
the value
global ReadFile (path path_to_value, string def_value) -> string

This function is deprecated.

Deprecated variant to ReadKrb5ConfValue

Parameters:
path_to_value
def_value
global WriteKrb5ConfValues (path path_to_value, list<string> values) -> boolean

Write list of values for given key to /etc/krb5.conf Do not write anything for empty and nil values

Parameters:
path_to_value path for agent (.etc.krb5_conf)
values
Return value:
false when nothing was written, success of write otherwise
global WriteKrb5ConfValuesAsString (path path_to_value, string values) -> boolean

Write (possible) multiple values of given key to /etc/krb5.conf

Parameters:
path_to_value
values values separated by spaces
global WriteKrb5ConfValue (path path_to_value, string value) -> boolean

Write the item value to /etc/krb5.conf Do not write anything for empty and nil values

Parameters:
path_to_value path for agent (.etc.krb5_conf)
value
Return value:
false when nothing was written, success of write otherwise
global WriteFile (path path_to_value, string value) -> boolean

This function is deprecated.

Deprecated variant to WriteKrb5ConfValue

Parameters:
path_to_value
value
global Read () -> boolean

Reads Kerberos settings from the SCR

Return value:
success
global Write () -> boolean

Saves Kerberos configuration. (No parameters because it is too short to abort)

Return value:
true on success
global Summary () -> list

Create a textual summary

Return value:
summary of the current configuration
global ShortSummary () -> string

Create a short textual summary

Return value:
summary of the current configuration
global RequiredPackages () -> list<string>

Return the list of packages for kerberos configuration

global AutoPackages () -> map

Return required packages for auto-installation

Return value:
of packages to be installed and to be removed
global ValidateTimeEntries (string key, string val) -> boolean

Validation function for time-related values

Parameters:
key
val