Configuration of NIS client |
modules/Nis.ycp |
NIS client configuration data, I/O functions. | |
|
|
This module has an unstable interface. |
Imports
Global Variables
Global Functions
Local VariablesLocal Functions |
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
Required packages for this module to operate
Should ypbind be started at boot? If not, other settings are not touched.
IP addresses of NIS servers.
- Return value:
-
Access the servers as a string
Set the servers from a string
- Parameters:
-
servers_s a whitespace separated list
Broadcast for the default domain? (New in ypbind-1.12)
Servers for a multiple-domain configuration. Keys are domains, values are lists of servers (strings). The domains must be the same as for multidomain_broadcast
Servers for a multiple-domain configuration. Whether a broadcast will be done if the servers don't respond. Keys are domains, values are booleans. The domains must be the same as for multidomain_servers
If the domain has changed from a nonempty one, it may only be changed at boot time. Use this to warn the user.
- Return value:
-
whether changed by SetDomain
- Return value:
-
Get the NIS domain.
Set the NIS domain.
- Parameters:
-
new_domain a new domain
Whether sysconfig/network/dhcp says to get the domain AND yp.conf by DHCP. It will be turned off if dhcp_possible is off (the user can override it)
#35654: if the server is running and sysconfig wants NIS data, it's ok to FitIntoSingle
Is the domain AND yp.conf served by DHCP? This is independent of dhcp_wanted: dhcpcd*.pid exists and dhcpcd*.info contains NISSERVERS and NISDOMAIN. It is used to warn the user if he wants to turn DHCP on but the config is not provided.
If dhcp_wanted changes, we need to restart the DHCP client
If this option is set, ypbind will only bind to the loopback interface and remote hosts cannot query it.
If this option is set, ypbind will ignore /etc/yp.conf and use a broadcast call to find a NIS server in the local subnet. You should avoid to use this, it is a big security risk.
You should set this to "yes" if you have a NIS server in your network, which binds only to high ports over 1024. Since this is a security risk, you should consider to replace the NIS server with another implementation.
Extra options for ypbind. Here you can add options like "-ypset", "-ypsetme", "-p port" or "-no-ping".
If no, automounter will not be affected.
Start automounter and import the settings from NIS. (Bug 6092)
Output of "rcypbind start", if there was an error. Read only. This is currently used only in nis-server for its more advanced error reporting. (Bug 14706)
Check syntax of a NIS domain name
- Parameters:
-
domain a domain name
- Return value:
-
true if correct
- Return value:
-
describe a valid NIS domain name
If the hostname resolution is done over NIS, names cannot be used to specify servers.
Using NIS and LDAP simultaneously is not supported (#36981).
Used in the UI when NIS is turned on.
Describe a valid address - ip4 or name, names only if nsswitch.conf does not have hosts: nis
- Return value:
-
a description
Check syntax of a network address (ip4 or name), names only if nsswitch.conf does not have hosts: nis
- Parameters:
-
a an address
- Return value:
-
true if correct
Has the configuration been changed? Can be used as an argument to Popup::ReallyAbort
A convenient shortcut for setting touched.
- Parameters:
-
really if true, set Nis::touched
- Example
-
Nis::Touch (Nis::var != ui_var);
Read only, set by ProbePackages. Use as an argument to DoInstallAndRemove
Detect which packages have to be installed and return a descriptive string for a plain text pop-up.
- Return value:
-
"" or "Foo will be installed.\nBar will be installed.\n"
Set module data
- Parameters:
-
settings
Get all the NIS configuration from a map. When called by nis_auto (preparing autoinstallation data) the map may be empty.
- Parameters:
-
settings $["start": "domain": "servers":[...] ]
- Return value:
-
success
Dump the NIS settings to a map, for autoinstallation use.
- Return value:
-
$["start":, "servers":[...], "domain":]
Summarizes a list of data
- Parameters:
-
title passed to Summary::AddHeader value a list (of scalars, lists or maps)
- Return value:
-
Summary-formatted description
- Return value:
-
Html formatted configuration summary
Makes an item for the short summary. I guess the users module wants to avoid paragraph breaks.
- Parameters:
-
title value
- Return value:
-
[b]title[/b]: value[br]
Create a short textual summary with configuration abstract It is called by "authentication/user sources" dialog in yast2-users
- Return value:
-
summary of the current configuration
Reads NIS settings from the SCR
- Return value:
-
success
Make up data for screnshots. To be used instead of Read .
- Parameters:
-
file a pathname
- Return value:
-
is there a nis inclusion?
If a file does not contain a NIS entry, add it.
- Parameters:
-
file pathname what a "+" line without a '\n'
- Return value:
-
success?
Do we need compat? Is there a plus in any of the user databases?
- Return value:
-
true/false
Add "+" lines to system files so that NIS entries get merged in. (Formerly this was done in SuSEconfig.ypclient)
- Return value:
-
success?
Configures the name service switch for the user databases according to chosen settings
- Return value:
-
success?
Only write new configuration w/o starting any scripts
- Return value:
-
true on success
Saves NIS configuration.
- Return value:
-
true on success
Return needed packages and packages to be removed during autoinstallation.
- Return value:
-
of lists.