
functions
files
intro
|
|
yast2-pam |
modules/PamSettings.ycp |
YaST intrerface for security agent (/etc/security/*.conf) |
|
|
Global Functions
Local Functions
|
|
|
global GetFiles () -> list<string>
|
|
Returns list of files currently handled by the module
local Filename (string name) -> string
|
|
Form absolute path name.
- Parameters:
- Return value:
global GetValues (string file, string type) -> list<string>
|
|
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:
- Example:
-
GetValues ("pwcheck", "password") returns [ "nullok", "cracklib" ] |
global GetFile (string file) -> map
|
|
Returns the given file contents in the map form
- Parameters:
- Return value:
|
which maps type to list of its options |
- Example:
-
GetFile ("pwcheck") returns $[ "password" : [ "nullok", "cracklib" ] ] |
global SetValues (string file, string type, list<string> values) -> boolean
|
|
Saves the new list of options of one type to given file
- Parameters:
file |
file name |
type |
type of management group |
values |
|
- Return value:
- Example:
-
SetValues ("pwcheck", "password", [ "cracklib", "md5" ]) |
global AddValue (string file, string type, string value) -> boolean
|
|
Adds a new options to the current list of options
- Parameters:
file |
file name |
type |
type of management group |
value |
|
- Return value:
- Example:
-
AddValue ("pwcheck", "password", "md5" ]) |
global RemoveValue (string file, string type, string value) -> boolean
|
|
Deletes an options from the current list of options
- Parameters:
file |
file name |
type |
type of management group |
value |
|
- Return value:
- Example:
-
RemoveValue ("pwcheck", "password", "md5" ]) |
global Write (list files) -> boolean
|
|
Writes all edited files to the disk
- Parameters:
- Return value:
|