yast2-pam |
modules/PamSettings.ycp |
YaST intrerface for security agent (/etc/security/*.conf) and /etc/default/passwd agent | |
|
|
This module has an unstable interface. |
Was /etc/default/passwd modified?
Was anything under /etc/security/ modified?
Returns list of files currently handled by the module
Form absolute path name.
- Parameters:
-
name
- Return value:
-
to file
Returns the values (options) of one type in the given file
- Parameters:
-
file file name type type of management group (these are used for authentication, account management and password management)
- Return value:
-
of options
- Example
-
GetValues ("pwcheck", "password") returns [ "nullok", "cracklib" ]
Returns the given file contents in the map form
- Parameters:
-
file file name
- Return value:
-
which maps type to list of its options
- Example
-
GetFile ("pwcheck") returns $[ "password" : [ "nullok", "cracklib" ] ]
Saves the new list of options of one type to given file
- Parameters:
-
file file name type type of management group values
- Return value:
-
success
- Example
-
SetValues ("pwcheck", "password", [ "cracklib", "md5" ])
Adds a new options to the current list of options
- Parameters:
-
file file name type type of management group value
- Return value:
-
success
- Example
-
AddValue ("pwcheck", "password", "md5" ])
Deletes an options from the current list of options
- Parameters:
-
file file name type type of management group value
- Return value:
-
success
- Example
-
RemoveValue ("pwcheck", "password", "md5" ])
Reads the value of default crypt hash (defined in /etc/default/passwd)
Reads the value of default crypt hash for group passwords
Reads the value from /etc/default/passwd
- Parameters:
-
key
Sets the new value of default crypt hash - modifies /etc/default/passwd !
- Parameters:
-
hash the new value of hash
- Example
-
SetValues ("md5")
Sets the new value of default crypt hash for group passwords
- Parameters:
-
hash the new value of hash
Set the value of key in /etc/default/passwd
- Parameters:
-
key value
Writes all edited files to the disk
- Parameters:
-
force - write everythink, even if modification was not detected
- Return value:
-
true on success