176. PamSettings

YaST intrerface for /etc/default/passwd agent

176.1. 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

    176.2. Global Functions

    176.2.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 32. 

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


    176.2.2. GetDefaultValue

    Reads the value from /etc/default/passwd

    Function parameters

    • string key

    Return value

    • string

    176.2.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 33. 

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


    176.2.4. GetFiles

    Returns list of files currently handled by the module

    Return value

    • list<string>

    176.2.5. GetGroupHashMethod

    Reads the value of default crypt hash for group passwords

    Return value

    • string

    176.2.6. GetHashMethod

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

    Return value

    • string

    176.2.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 34. 

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


    176.2.8. RemoveValue

    Deletes an options from the current list of options

    Function parameters

    • string file

    • string type

    • string value

    Return value

    • boolean - success

    Example 35. 

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


    176.2.9. SetDefaultValue

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

    Function parameters

    • string key

    • string value

    Return value

    • boolean

    176.2.10. SetGroupHashMethod

    Sets the new value of default crypt hash for group passwords

    Function parameters

    • string hash

    Return value

    • boolean

    176.2.11. SetHashMethod

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

    Function parameters

    • string hash

    Return value

    • boolean

    Example 36. 

     SetValues ("md5")


    176.2.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 37. 

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


    176.2.13. Write

    Writes all edited files to the disk

    Function parameters

    • boolean force

    Return value

    • boolean - true on success

    176.3. Global Variables

    176.4. Module Requirements

    176.4.1. Module Imports

    • Pam

    176.4.2. Module Includes