YaST2 Developers Documentation: Configuration of NIS

Configuration of NIS

include/nis/ui.ycp
User interface functions.

This module has an unstable interface.

All user interface functions.

Imports

  • Autologin
  • CWMFirewallInterfaces
  • Confirm
  • Label
  • Message
  • Mode
  • NetworkService
  • Nis
  • Package
  • Popup
  • Report
  • Sequencer
  • Stage
  • Wizard

Structures

Local Variables

Local Functions

local JustNext () -> symbol

A Wizard Sequencer helper

Return value:
`next
local ReallyAbort (boolean touched) -> boolean

The dialog that appears when the [Abort] button is pressed.

Parameters:
touched data modified?
Return value:
`abort if user really wants to abort, `back otherwise
local WarnIfDhcpNotServed () -> void

Pop up a warning if dhcp does not provide nis configuration

local ChooseItems (string title, list<string> items) -> list<string>

Let the user choose some of a list of items

Parameters:
title selectionbox title
items a list of items
Return value:
items or nil on cancel
local found_servers -> map

A cache of NIS servers found on the LAN for each domain.

See
SelectNisServers
local SelectNisServers (string domain) -> string

Scan the network for NIS servers and let the user select among them.

Parameters:
domain which domain
Return value:
space separated list of servers or ""
local MainDialog () -> symbol

The simple dialog

Return value:
`back, `abort, `next, `multiple or `expert
local ExpertDialog () -> symbol

The expert dialog

Return value:
`back, `abort or `next
local DomainTableItems (string default_d, map<string,list> all_servers) -> list

Constructs items for the domain table

Parameters:
default_d the default domain
all_servers map of server_sp
Return value:
a list of items
See
multidomain_servers TODO in Nis
local UpdateDomainTable (string default_d, map<string,list> all_servers, string d) -> void

Parameters:
default_d the default domain
all_servers show these items
d the selected item
local mapkeys (map m) -> list

Parameters:
m a map
Return value:
keys of the map
Info:

Structure server_sp

 0 list(string)	server list
 1 boolean	broadcast
local AdditionalDialog () -> symbol

The servers dialog

Return value:
`back, `abort or `next
local SaveDialog () -> symbol

Confirmation dialog Also probes for packages that need to be installed (autofs) #23050 don't display the dialog

Return value:
`back or `next
local FitIntoSingle () -> void

Dhcpcd writes yp.conf in the multidomain form. Let's try rewriting it so that it fits into the simple dialog. It is done only after read.

local NormalSequence () -> symbol

The normal workflow

Return value:
`back, `abort or `next
local AutoSequence () -> symbol

The autoinstallation workflow

Return value:
`back, `abort or `next