YaST2 Developers Documentation: Configuration of samba-client

Configuration of samba-client

modules/Samba.ycp
Data for configuration of samba-client, input and output functions.

This module has an unstable interface.

Representation of the configuration of samba-client. Input and output routines.

Imports

  • Arch
  • Autologin
  • FileUtils
  • Mode
  • NetworkConfig
  • Package
  • PackageSystem
  • Progress
  • Report
  • SambaAD
  • SambaConfig
  • SambaNetJoin
  • SambaNmbLookup
  • SambaWinbind
  • Service
  • Stage
  • String
  • Summary

Global Variables

Global Functions

Local Functions

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 winbind_enabled -> boolean

Should be winbind enabled?

global start_fam -> boolean

If FAM should be started

global mkhomedir -> boolean

if pam_mkhomedir is set in /etc/pam.d/commond-session

global password_data -> map<string,string>

map with user name and password (used for autoinstallation only)

global UpdatedArchPackages (list<string> packages) -> list<string>

Return list of architecture specific packages (derived from package list given as parameter) merged with the packages in parameter

Parameters:
packages
global GetModified () -> boolean

Data was modified?

Return value:
true if modified
global ReadMkHomeDir () -> boolean

Read the state of mkhomedir in /etc/pam.d/common-session (bug #143519)

global WriteMkHomeDir (boolean enabled) -> boolean

Write the new value of pam_mkhomedir to /etc/pam.d/common-session

Parameters:
enabled
global SetMkHomeDir (boolean new_value) -> boolean

Set the new value of mkhomedir

Parameters:
new_value
global GetMaxShares () -> integer

get number of max shares from smb.conf; 0 mean shares are not enabled

global GetGuessAccess () -> boolean

check if shares guest access is allowed

global SetGuessAccess (boolean guest) -> boolean

Set the new value for guest access (#144787)

Parameters:
guest
global ReadSharesSetting () -> boolean

Read user shares settings

global SetShares (integer max, string group) -> boolean

set the new values for user shares

Parameters:
max maximum number of shares (0 is for disabling)
group permited group
global GetWinbindCaching () -> boolean

Get the current status of winbind caching

global SetWinbindCaching (boolean enable) -> boolean

Set the new value for winbind caching (see bug #143927)

Parameters:
enable
local WriteFAM (boolean write_only) -> boolean

Start/Stop and FAM service according to current settings

Parameters:
write_only do not start/stop services
Return value:
success
global WriteShares () -> boolean

create the shares directory with correct rights

global AdjustSharesServices (boolean write_only) -> boolean

adjust the services for sharing

Parameters:
write_only
local WriteDisplayManager (boolean enable, boolean write_only) -> boolean

Tell displaymanager (KDM/GDM) to use special windbind greeter

Parameters:
enable if winbind is enabled
write_only do not run SuSEconfig script
Return value:
success
global Read () -> boolean

Read all samba-client settings

Return value:
true on success
global SetWinbind (boolean status) -> void

Set a windind status

Parameters:
status
global Write (boolean write_only) -> boolean

Write all samba-client settings

Parameters:
write_only
Return value:
true on success
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:
True on success
global Export () -> map

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:
group a new workgroup
global GetWorkgroup () -> string

Get a host workgroup

Return value:
a new workgroup
global GetWinbind () -> boolean

Get a winbind status

Return value:
booleand a winbind status
global AutoPackages () -> map

Return required packages for auto-installation

Return value:
of packages to be installed and to be removed
global SetStartFAM (boolean fam) -> boolean

update the information if FAM should be started

Parameters:
fam
Return value:
current fam status