NIS Server, input and output functions.
List of Global Functions
Client - Calls NIS client configuration writing
EnsureDirectory - Ensures that the domain directory exists.
Export - Dump the nisServer settings to a single map (For use by autoinstallation.)
GetAllMaps - All tables that ypserv Makefile knows about
GetModified - Functions which returns if the settings were modified
GetSaveList - Returns a list of what to save
Import - Get all nisServer settings from the first parameter (For use by autoinstallation.)
Read - Read all NIS server settings.
Remove - Removes file or directory and log errors
SaveSecurenets - Save securenets list
SaveSlaves - Save list of slaves by calling appropriate any agent
SaveVariables - Saves config variables according to workflow
SetModified - Function sets internal variable, which indicates, that any settings were modified, to "true"
Summary - Create a textual summary and a list of unconfigured cards
Write - Write all NIS server settings
YPDaemons - Starts or stop daemons
YPGetMaps - Gets the YP maps from master for slave
YPMake - Creates initial database
addError - Adds an error to error_msg
addErrorDetail - Adds an error to error_details
getMaster - Gets the master server (name or IP?) from any of this server's maps
List of Global Variables
dhcp_changes_domain - If DHCP client could change domain name (#28727)
domain - The domain we are serving. (for simplicity, we assume a single domain) US ".etc.defaultdomain"
maps - Maps to be served
merge_passwd - Merge passwd and shadow to one map? Makefile: string true|false
mingid - Minimal GID to include in the user maps
minuid - Minimal UID to include in the user maps
modified - Data was modified?
nisclient_local - NIS client is configured localy (with current machine as server)
nopush - Don't push the changes to slave servers. (useful if there aren't any) Makefile: string true|false
old_domainname - For warning if the domain was changed. TODO delegate to the client module?
pwd_chfn - YPPWD_CHFN - allow changing the full name?
pwd_chsh - YPPWD_CHSH - allow changing the login shell?
pwd_srcdir - YPPWD_SRCDIR - source directory for passwd data
required_packages - Packages to be installed for this module to operate
start_ypbind - Start also the client? (only when client is configured locally)
start_yppasswdd - Start also the password daemon?
start_ypxfrd - Start also the map transfer daemon?
ui_master_ip - If we are a slave, where is the master? (it may actually be a hostname, TODO solve like in the client using nsswitch)
ui_what - What kind of server to run: `master, `slave, `none
write_only - Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.
ypservers - Slave servers
Ensures that the domain directory exists.
Function parameters
string directory
Return value
boolean - false if not and cannot be created
Dump the nisServer settings to a single map (For use by autoinstallation.)
Return value
map - Dumped settings (later acceptable by Import ())
Functions which returns if the settings were modified
Return value
boolean - settings were modified
Returns a list of what to save
Function parameters
symbol workflow
Return value
list<map> - a list of maps: <pre>$[ "save_label": ..., "progress_label": ..., "function": @see CallFunction01 ]</pre>
Get all nisServer settings from the first parameter (For use by autoinstallation.)
Function parameters
map settings
Return value
boolean - True on success
Saves config variables according to workflow
Function parameters
any which
Return value
void
Function sets internal variable, which indicates, that any settings were modified, to "true"
Return value
void
Create a textual summary and a list of unconfigured cards
Return value
list - summary of the current configuration
Gets the master server (name or IP?) from any of this server's maps
Return value
string - nil if no map is found or it has no YP_MASTER_NAME
The domain we are serving. (for simplicity, we assume a single domain) US ".etc.defaultdomain"
Don't push the changes to slave servers. (useful if there aren't any) Makefile: string true|false
securenet network: string netmask: string * or hash: "#" (optional) comment: string
If we are a slave, where is the master? (it may actually be a hostname, TODO solve like in the client using nsswitch)
Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.