YaST2 Developers Documentation: yast2-pam

yast2-pam

modules/PamSettings.ycp
YaST intrerface for /etc/default/passwd agent
  • Jiri Suchomel

This module has an unstable interface.

Imports

  • Pam

Global Functions

Local Variables

local default_passwd_modified -> boolean

Was /etc/default/passwd modified?

global GetHashMethod () -> string

Reads the value of default crypt hash (defined in /etc/default/passwd)

global GetGroupHashMethod () -> string

Reads the value of default crypt hash for group passwords

global GetDefaultValue (string key) -> string

Reads the value from /etc/default/passwd

Parameters:
key
global SetHashMethod (string hash) -> boolean

Sets the new value of default crypt hash - modifies /etc/default/passwd !

Parameters:
hash the new value of hash
Example

 SetValues ("md5")
global SetGroupHashMethod (string hash) -> boolean

Sets the new value of default crypt hash for group passwords

Parameters:
hash the new value of hash
global SetDefaultValue (string key, string value) -> boolean

Set the value of key in /etc/default/passwd

Parameters:
key
value
global Write (boolean force) -> boolean

Writes all edited files to the disk

Parameters:
force - write everythink, even if modification was not detected
Return value:
true on success