
functions
files
intro
|
|
Configuration of samba-client |
include/samba-client/routines.ycp |
| Miscelanous functions for configuration of samba-client. |
|
|
|
Imports
- Label
- Mode
- Popup
- Samba
- SambaNetJoin
- SambaNmbLookup
- Stage
Local Functions
|
|
|
|
local passwordUserPopup (string message, string defaultuser) -> map<string, string>
|
|
Allow user to type in a user/password pair in a popup.
- Parameters:
|
message |
a text to be displayed above the password text entry |
|
defaultuser |
a pre-filled user name |
- Return value:
|
|
$["user": string, "password": string] with information
provided by the user or nil on cancel |
|
local ReallyAbort () -> boolean
|
|
If modified, ask for confirmation
- Return value:
|
|
true if abort is confirmed |
|
local WorkgroupWidget () -> term
|
|
Return a complex widget for setting a workgroup or domain. Contains Browse button.
- Return value:
|
local CheckWorkgroup (string workgroup) -> symbol
|
|
Check, if the workgroup is a domain or a workgroup. Uses caching to avoid long checks of a workgroup members.
- Parameters:
|
workgroup |
the workgroup to be checked |
- Return value:
|
|
type of the workgroup: `joined_domain, `not_joined_domain, `workgroup or `domain if
it is a domain, but the status is not known |
|
local AskJoinDomain (string workgroup, symbol status) -> symbol
|
|
Allow to join a domain. Uses result of CheckWorkgroup to inform the user about the status.
- Parameters:
|
workgroup |
the workgroup to be joined |
|
status |
domain status returned by CheckWorkgroup |
- Return value:
|
|
`ok on successful join (workgroup is always successful),
`fail on error or user cancel
`nojoin if user don't want to join |
|
local BrowseWorkgroups () -> string
|
|
Show a selection popup to select a workgroup from the ones existing on LAN.
- Return value:
|
|
chosen workgroup or nil if cancelled |
|