156. Nsswitch

Configuration of /etc/nsswitch.conf

156.1. Authors

  • Jiri Suchomel <jsuchome@suse.cz>

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

    156.3. Global Functions

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

    156.3.2. Write

    Writes the edited files to the disk

    Return value

    • boolean - true on success

    156.3.3. WriteAutofs

    Configures the name service switch for autofs according to chosen settings

    Function parameters

    • boolean start

    • string source

    Return value

    • boolean - success?

    156.3.4. WriteDb

    Writes a database entry as a list to nsswitch_conf

    Function parameters

    • string db

    • list<string> entries

    Return value

    • boolean - success?

    156.4. Global Variables

    156.5. Module Requirements

    156.5.1. Module Imports

    • Message
    • Report

    156.5.2. Module Includes