YaST2 Developers Documentation: yast2-pam



functions
files
intro

yast2-pam

modules/Pam.ycp
YaST intrerface for agent-pam

Imports

  • PamSettings

Global Functions

global RemoveValue (string file, string type, string mod, string value) -> boolean

Remove option from the line in /etc/pam.d/* file

Parameters:
file name of file in /etc/pam.d directory
type what line should be modified (auth/account/password...)
mod affected module (pam_unix2, pam_pwcheck, etc.)
value value to remove from the line
Example:
 
 RemoveValue ("login", "password", "pam_unix2", "md5")
 - removes md5 option

global AddValue (string file, string type, string mod, string value) -> boolean

Add a new option to the line in /etc/pam.d/* file

Parameters:
file name of file in /etc/pam.d directory
type what line should be modified (auth/account/password...)
mod affected module (pam_unix2, pam_pwcheck, etc.)
value value to be added

YaST2 Developers Documentation