YaST2 Developers Documentation: Configuration of users and groups

Configuration of users and groups

include/users/widgets.ycp
Widgets definitions and helper functions
  • Jiri Suchomel

This module has an unstable interface.

Imports

  • Autologin
  • CWMTab
  • Label
  • Ldap
  • Message
  • Mode
  • Package
  • Popup
  • Progress
  • Report
  • Stage
  • String
  • Summary
  • Users
  • UsersCache
  • UsersLDAP
  • UsersRoutines
  • Wizard

Includes

  • users/complex.ycp
  • users/routines.ycp

Local Functions

local EncryptionPopup () -> string

Popup for choosing the password encryption method.

local AskForNISServerEncryptionPopup (string encr) -> symbol

NIS server enabled together with non-DES encryption of passwords In these popup, ask user what to do.

Parameters:
encr
local LDAPSearchFilterPopup () -> boolean

Popup for configuration user/group filter for making the LDAP search

Return value:
modified?
local AutologinPopup () -> boolean

Popup for Login settings (Auotolgin feature, login without passwords)

Return value:
modified?
local DeleteUserPopup () -> symbol

Popup for deleting user

Return value:
for sequencer
local DeleteGroupPopup () -> symbol

Popup for deleting group

Return value:
for sequencer
local CustomizePopup (string what) -> boolean

Dialog for definition of customized view

Parameters:
what "users" or "groups"
Return value:
true if customs were odified
local ChooseTypePopup (list<string> sets, string what) -> string

When there are more users/groups shown, choose which type should be created after `add click

Parameters:
sets
what
local GetExpertList () -> list

return the list of menu items of "Expert Options" menubutton

local GetLDAPExpertList () -> list

return the list of menu items for LDAP expert options

local help_main_start () -> string

First part of the help text.

Return value:
help text
local help_main_end () -> string

Last part of the help text.

Return value:
help text
local UsersDialogHelp () -> string

Help for UsersDialog.

Return value:
help text
local GroupsDialogHelp () -> string

Help for usersGroups.

Return value:
help text
local ValidateExpire (string key, map event) -> boolean

Validation function for the default value of account expiration

Parameters:
key
event
local ValidateSkeleton (string key, map event) -> boolean

Validation function for home directory skeleton directory

Parameters:
key
event
local ValidateHomePrefix (string key, map event) -> boolean

Validation function for the default home prefix

Parameters:
key
event
local ValidateGroupList (string key, map event) -> boolean

Validation function for the value of the default list of groups

Parameters:
key
event
local ValidateShell (string key, map event) -> boolean

Validation function for the default login shell

Parameters:
key
event
local InitDefaults (string key) -> void

Initialize all the values in the dialog with new user defaults

Parameters:
key
local StoreDefaults (string key, map event) -> void

Store all the values from the dialog with new user defaults (when leaving the dialog)

Parameters:
key
event
local HandleBrowseDirectory (string key, map event) -> symbol

universal handler for directory browsing

Parameters:
key
event
local InitTabUsersGroups (string widget_id) -> void

Handle the switch between tabs (load set of items for users or groups)

Parameters:
widget_id
local SummaryTableInit (string widget_id) -> void

Initialize the contents of Summary Table widget

Parameters:
widget_id
local HandleSummaryTable (string widget_id, map event) -> symbol

Handler for users/groups summary table

Parameters:
widget_id
event
local InitFilterLine (string widget_id) -> void

Initialize the value of the label with current filter and filter selection

Parameters:
widget_id
local HandleFilterLine (string widget_id, map event) -> symbol

Handler for events generated by Set Filter widget

Parameters:
widget_id
event
local get_module_data (string client) -> string

helper function to get information about authentication from appropriate module

Parameters:
client
local reload_config (list<string> clients) -> string

Reloads the configuration for given client and creates updated summary widget contents returns the summary value for richtext

Parameters:
clients
local InitAuthData (string key) -> void

Init the widgets in Authentication tab

Parameters:
key
local HandleAuthData (string key, map event) -> symbol

Handler for actions in Authentication tab

Parameters:
key
event
local StoreAuthData (string key, map event) -> void

Actions done when Authentication tab is left

Parameters:
key
event