YaST2 Developers Documentation: yast2-pam

yast2-pam

modules/Nsswitch.ycp
Configuration of /etc/nsswitch.conf

Imports

  • Message
  • Report

Global Functions

global ReadDb (string db) -> list<string>

Reads a database entry from nsswitch_conf and returns it as a list

Parameters:
db eg. "passwd"
Return value:
eg. ["files", "nis"]
global WriteDb (string db, list<string> entries) -> boolean

Writes a database entry as a list to nsswitch_conf

Parameters:
db eg. "passwd"
entries eg. ["files", "nis"]
Return value:
success?
global WriteAutofs (boolean start, string source) -> boolean

Configures the name service switch for autofs according to chosen settings

Parameters:
start autofs and service (ldap/nis) should be started
source for automounter data (ldap/nis)
Return value:
success?
global Write () -> boolean

Writes the edited files to the disk

Return value:
true on success