Configuration of samba-client |
include/samba-client/routines.ycp |
Miscelanous functions for configuration of samba-client. | |
|
|
This module has an unstable interface. |
Imports
Local Functions
|
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 domain what
- Return value:
-
$["user": string, "password": string] with information provided by the user or nil on cancel
If modified, ask for confirmation
- Return value:
-
true if abort is confirmed
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
Leave an AD domain
- Parameters:
-
workgroup
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
Check if user shares already exist
- Parameters:
-
share_dir
ask user if existing shares should be removed
- Return value:
-
true for removing
check if services should be stopped: only if there are more sections in smb.conf and if user confirms (bug #143908)
- Return value:
-
true if smb+nmb should be stopped
return the term with hosts resolution support check box (fate#300971)
- Parameters:
-
hosts_resolution current value of hosts resolution in nsswitch.conf
Return help text for hosts resolution term
return the term with DHCP support check box
- Parameters:
-
dhcp_support current value of DHCP support in smb.conf
return the help text for DHCP support
return the term with shares settings
- Parameters:
-
settings map with parameters to show in term
return the term with shares settings
- Parameters:
-
allow if shares are allowed group name of group owning the shares dir max maximum number of allowed shares
return the help text for shares
return the help text for PAM Mount table