Configuration of samba-client |
modules/Samba.ycp |
Data for configuration of samba-client, input and output functions. |
|
|
Representation of the configuration of samba-client.
Input and output routines.
Imports
- Autologin
- PamSettings
- Progress
- Report
- Service
- Summary
- Summary
Global Variables
Global Functions
Local Variables
|
|
|
global workgroup -> string
|
|
name of a workgroup for the host
global Abort () -> boolean
|
|
Abort function
- Return value:
global ProgressNextStage (string title) -> void
|
|
Progress::NextStage and Progress::Title combined into one function
- Parameters:
global required_packages -> list<string>
|
|
list of required packages
global modified -> boolean
|
|
Data was modified?
global globals_configured -> boolean
|
|
Are globals already configured (for AutoYaST)
global write_only -> boolean
|
|
Write only, used during autoinstallation.
Don't run services and SuSEconfig, it's all done at one place.
global security -> string
|
|
security level for the host
global netbios_name -> string
|
|
netbios name of the host
global password_server -> string
|
|
password server setting from smb.conf
global winbind -> boolean
|
|
Should be winbind enabled?
global winbind_uid -> string
|
|
UIDs used by winbind
global winbind_gid -> string
|
|
GIDs used by winbind
global nmbstatus_running -> boolean
|
|
is nmbstatus still running?
global nmbstatus_output -> map<string,any>
|
|
nmbstatus output
local nmbd_was_running -> boolean
|
|
Flag, if we should restart nmbd after finishing nmbstatus.
nmbd must be stopped, when doing nmbstatus, otherwise only
local host is shown.
global join_level -> string
|
|
level of a domain membership when joining
possible values are "member", "bdc" and "pdc"
local nmbstatus -> string
|
|
Path to the nmbstatus binary
global Modified () -> boolean
|
|
Data was modified?
- Return value:
global Read () -> boolean
|
|
Read all samba-client settings
- Return value:
global Write () -> boolean
|
|
Write all samba-client settings
- Return value:
global WriteSettings () -> boolean
|
|
Write all samba-client settings
- Return value:
global Import (map settings) -> boolean
|
|
Get all samba-client settings from the first parameter
(For use by autoinstallation.)
- Parameters:
settings |
The YCP structure to be imported. |
- Return value:
Dump the samba-client settings to a single map
(For use by autoinstallation.)
- Return value:
|
Dumped settings (later acceptable by Import ()) |
global Summary () -> string
|
|
Create a textual summary and a list of unconfigured options
- Return value:
|
summary of the current configuration |
global ShortSummary () -> string
|
|
Create shorter textual summary and a list of unconfigured options
- Return value:
|
summary of the current configuration |
global setWorkgroup (string group) -> void
|
|
Set a host workgroup
- Parameters:
global setWinbind (boolean status) -> void
|
|
Enable or disable winbind configuration.
- Parameters:
global joinDomain (string domain, string user, string passwd) -> string
|
|
Joins the host into a given domain. If user is provided, it will use
the user and password for joining. If the user is nil, joining will
be done anonymously.
Attention: It will write the configuration for domain before settings the password
- Parameters:
domain |
a name of a domain to be joined |
user |
username to be used for joining, or nil for anonymous |
passwd |
password for the user |
- Return value:
|
an error message or nil if successful |
global isDomainMember (string domain) -> boolean
|
|
Check if this host is a member of a given domain.
- Parameters:
domain |
a name of the domain to check |
- Return value:
|
true if the host is a member, false if not, nil on error (not possible to find out) |
global CheckNmbstatus () -> void
|
|
Ensure that nmbstatus already finished. Then parse its output into nmbstatus_output
global isDomain (string workgroup) -> boolean
|
|
Check if a given workgroup is a domain or not. Tests presence of PDC or BDC in the workgroup.
- Parameters:
workgroup |
the name of a workgroup to be tested |
- Return value:
|
true if the workgroup is a domain |
global enableWinbind (boolean on) -> boolean
|
|
Enable/disable and start/stop winbindd services.
- Parameters:
on |
the status of the winbind to be configured (true=enabled, false=disabled) |
- Return value:
global WriteWinbind (boolean on) -> void
|
|
Write winbindd configuration. It modifies smb.conf and nsswitch.conf.
- Parameters:
on |
the status of the winbind to be configured (true=enabled, false=disabled) |
global availableWorkgroups () -> list<string>
|
|
Return a list of workgroups already existing in the lan.
- Return value:
|
of found workgroups/domains |
global PreprocessAvailableWorkgroups () -> map<string, boolean>
|
|
Return a map of workgroups already existing in the lan.
The value of the map is boolean indicating a domain.
- Return value:
|
of found workgroups/domains |
global AutoPackages () -> map
|
|
Return required packages for auto-installation
- Return value:
|
of packages to be installed and to be removed |
Set the level of the domain membership used for joining.
- Parameters:
level |
"member", "bdc" or "pdc" |
- Return value:
|
false, if the level is not correct value, otherwise true |
|