201. PamSettings

YaST intrerface for /etc/default/passwd agent

201.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

201.2. Summary of Module Globals

List of Global Functions

  • AddValue - Adds a new options to the current list of options

  • GetDefaultValue - Reads the value from /etc/default/passwd

  • GetFile - Returns the given file contents in the map form

  • GetFiles - Returns list of files currently handled by the module

  • GetGroupHashMethod - Reads the value of default crypt hash for group passwords

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

  • GetValues - Returns the values (options) of one type in the given file

  • RemoveValue - Deletes an options from the current list of options

  • SetDefaultValue - Set the value of key in /etc/default/passwd

  • SetGroupHashMethod - Sets the new value of default crypt hash for group passwords

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

  • SetValues - Saves the new list of options of one type to given file

  • Write - Writes all edited files to the disk

List of Global Variables

    201.3. Global Functions

    201.3.1. AddValue

    Adds a new options to the current list of options

    Function parameters

    • string file

    • string type

    • string value

    Return value

    • boolean - success

    Example 52. 

     AddValue ("pwcheck", "password", "md5" ])


    201.3.2. GetDefaultValue

    Reads the value from /etc/default/passwd

    Function parameters

    • string key

    Return value

    • string

    201.3.3. GetFile

    Returns the given file contents in the map form

    Function parameters

    • string file

    Return value

    • map - which maps type to list of its options

    Example 53. 

     GetFile ("pwcheck") returns $[ "password" : [ "nullok", "cracklib" ] ]


    201.3.4. GetFiles

    Returns list of files currently handled by the module

    Return value

    • list<string>

    201.3.5. GetGroupHashMethod

    Reads the value of default crypt hash for group passwords

    Return value

    • string

    201.3.6. GetHashMethod

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

    Return value

    • string

    201.3.7. GetValues

    Returns the values (options) of one type in the given file

    Function parameters

    • string file

    • string type

    Return value

    • list<string> - of options

    Example 54. 

     GetValues ("pwcheck", "password") returns [ "nullok", "cracklib" ]


    201.3.8. RemoveValue

    Deletes an options from the current list of options

    Function parameters

    • string file

    • string type

    • string value

    Return value

    • boolean - success

    Example 55. 

     RemoveValue ("pwcheck", "password", "md5" ])


    201.3.9. SetDefaultValue

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

    Function parameters

    • string key

    • string value

    Return value

    • boolean

    201.3.10. SetGroupHashMethod

    Sets the new value of default crypt hash for group passwords

    Function parameters

    • string hash

    Return value

    • boolean

    201.3.11. SetHashMethod

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

    Function parameters

    • string hash

    Return value

    • boolean

    Example 56. 

     SetValues ("md5")


    201.3.12. SetValues

    Saves the new list of options of one type to given file

    Function parameters

    • string file

    • string type

    • list<string> values

    Return value

    • boolean - success

    Example 57. 

     SetValues ("pwcheck", "password", [ "cracklib", "md5" ])


    201.3.13. Write

    Writes all edited files to the disk

    Function parameters

    • boolean force

    Return value

    • boolean - true on success

    201.4. Global Variables

    201.5. Module Requirements

    201.5.1. Module Imports

    • Pam

    201.5.2. Module Includes