Configuration of NIS server |
modules/NisServer.ycp |
NIS Server, input and output functions. | |
|
|
This module has an unstable interface. |
Representation of the configuration of nisServer.
Input and output routines.
Imports
StructuresGlobal Variables
Global Functions
Local Functions |
Data was modified?
Function sets internal variable, which indicates, that any settings were modified, to "true"
Functions which returns if the settings were modified
- Return value:
-
settings were modified
Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.
The domain we are serving. (for simplicity, we assume a single domain) US ".etc.defaultdomain"
For warning if the domain was changed. TODO delegate to the client module?
What kind of server to run: `master, `slave, `none
If we are a slave, where is the master? (it may actually be a hostname, TODO solve like in the client using nsswitch)
Maps to be served
Minimal UID to include in the user maps
Minimal GID to include in the user maps
Merge passwd and shadow to one map? Makefile: string true|false
Merge group and gshadow to one map? Makefile: string true|false
Don't push the changes to slave servers. (useful if there aren't any) Makefile: string true|false
Slave servers
Structure securenet
network: string netmask: string * or hash: "#" (optional) comment: string
Start also the client? (only when client is configured locally)
NIS client is configured localy (with current machine as server)
Start also the map transfer daemon?
Start also the password daemon?
YPPWD_SRCDIR - source directory for passwd data
YPPWD_CHFN - allow changing the full name?
YPPWD_CHSH - allow changing the login shell?
If DHCP client could change domain name (#28727)
Packages to be installed for this module to operate
All tables that ypserv Makefile knows about
Read all NIS server settings.
- Return value:
-
true on success
Gets the master server (name or IP?) from any of this server's maps
- Return value:
-
nil if no map is found or it has no YP_MASTER_NAME
- Return value:
-
Determines if the current host is YP master or not
- Return value:
-
Checks if the YP server software is installed by querying RPM for ypserv
Adds an error to error_msg
- Parameters:
-
s message, ending with a newline
Adds an error to error_details
- Parameters:
-
s message, ending with a newline
Kind-of-compatible replacement for term evaluation. Either f[0] is void(), or f[0] is void(any) and f[1] is any Not called, bug #37146
- Parameters:
-
f
Write all NIS server settings
- Return value:
-
true on success
Removes file or directory and log errors
- Parameters:
-
file what to remove
Ensures that the domain directory exists.
- Parameters:
-
directory the path
- Return value:
-
false if not and cannot be created
Gets the YP maps from master for slave
Save securenets list
Save list of slaves by calling appropriate any agent
Saves config variables according to workflow
- Parameters:
-
which workflow one of `slave, `master
Starts or stop daemons
- Parameters:
-
workflow what to start or save: `master, `slave, `none
Creates initial database
Calls NIS client configuration writing
Returns a list of what to save
- Parameters:
-
workflow what workflow was chosen (`none, `slave, `master)
- Return value:
-
a list of maps: $[ "save_label": ..., "progress_label": ..., "function": @see CallFunction01 ]
Get all nisServer settings from the first parameter (For use by autoinstallation.)
- Parameters:
-
settings The YCP structure to be imported.
- Return value:
-
True on success
Dump the nisServer settings to a single map (For use by autoinstallation.)
- Return value:
-
Dumped settings (later acceptable by Import ())
Create a textual summary and a list of unconfigured cards
- Return value:
-
summary of the current configuration