138. Nsswitch

Configuration of /etc/nsswitch.conf

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

    138.2. Global Functions

    138.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"]

    138.2.2. Write

    Writes the edited files to the disk

    Return value

    • boolean - true on success

    138.2.3. WriteAutofs

    Configures the name service switch for autofs according to chosen settings

    Function parameters

    • boolean start

    • string source

    Return value

    • boolean - success?

    138.2.4. WriteDb

    Writes a database entry as a list to nsswitch_conf

    Function parameters

    • string db

    • list<string> entries

    Return value

    • boolean - success?

    138.3. Global Variables

    138.4. Module Requirements

    138.4.1. Module Imports

    • Message
    • Report

    138.4.2. Module Includes