203. PamSettings

YaST intrerface for /etc/default/passwd agent

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

    203.2. Global Functions

    203.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 48. 

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


    203.2.2. GetDefaultValue

    Reads the value from /etc/default/passwd

    Function parameters

    • string key

    Return value

    • string

    203.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 49. 

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


    203.2.4. GetFiles

    Returns list of files currently handled by the module

    Return value

    • list<string>

    203.2.5. GetGroupHashMethod

    Reads the value of default crypt hash for group passwords

    Return value

    • string

    203.2.6. GetHashMethod

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

    Return value

    • string

    203.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 50. 

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


    203.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 51. 

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


    203.2.9. SetDefaultValue

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

    Function parameters

    • string key

    • string value

    Return value

    • boolean

    203.2.10. SetGroupHashMethod

    Sets the new value of default crypt hash for group passwords

    Function parameters

    • string hash

    Return value

    • boolean

    203.2.11. SetHashMethod

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

    Function parameters

    • string hash

    Return value

    • boolean

    Example 52. 

     SetValues ("md5")


    203.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 53. 

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


    203.2.13. Write

    Writes all edited files to the disk

    Function parameters

    • boolean force

    Return value

    • boolean - true on success

    203.3. Global Variables

    203.4. Module Requirements

    203.4.1. Module Imports

    • Pam

    203.4.2. Module Includes