161. Nsswitch

Configuration of /etc/nsswitch.conf

161.1. Summary of Module Globals

List of Global Functions

  • ReadDb - Reads a database entry from nsswitch_conf and returns it as a list

  • Write - Writes the edited files to the disk

  • WriteAutofs - Configures the name service switch for autofs according to chosen settings

  • WriteDb - Writes a database entry as a list to nsswitch_conf

List of Global Variables

    161.2. Global Functions

    161.2.1. ReadDb

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

    Function parameters

    • string db

    Return value

    • list<string> - eg. ["files", "nis"]

    161.2.2. Write

    Writes the edited files to the disk

    Return value

    • boolean - true on success

    161.2.3. WriteAutofs

    Configures the name service switch for autofs according to chosen settings

    Function parameters

    • boolean start

    • string source

    Return value

    • boolean - success?

    161.2.4. WriteDb

    Writes a database entry as a list to nsswitch_conf

    Function parameters

    • string db

    • list<string> entries

    Return value

    • boolean - success?

    161.3. Global Variables

    161.4. Module Requirements

    161.4.1. Module Imports

    • Message
    • Report

    161.4.2. Module Includes