YaST2 Developers Documentation: Configuration of users and groups

Configuration of users and groups

include/users/dialogs.ycp
Dialogs definitions
  • Johannes Buchhold ,
  • Jiri Suchomel

This module has an unstable interface.

Imports

  • Autologin
  • FileUtils
  • GetInstArgs
  • Label
  • Ldap
  • LdapPopup
  • Message
  • Package
  • Popup
  • ProductFeatures
  • Report
  • Stage
  • String
  • Users
  • UsersCache
  • UsersLDAP
  • UsersPlugins
  • UsersRoutines
  • UsersSimple
  • Wizard

Includes

  • users/helps.ycp
  • users/routines.ycp

Local Functions

local AskForUppercasePopup (string username) -> symbol

Upperase letters were used in username! (see bug #26409) In these popup, ask user what to do.

Parameters:
username
local AskForOldPassword () -> string

Ask user for current password, see bugs 242531, 244718

Return value:
or nil when dialog was canceled
local EditUserDialog (string what) -> symbol

Dialog for adding or editing a user.

Parameters:
what "add_user" or "edit_user"
Return value:
for wizard sequencer
local reinit_userdata () -> void

initialize local variables with current state of user

local ask_chown_home (string dir, boolean chown_default) -> map

helper function: show a popup if existing home directory should be used and its ownership should be changed

Parameters:
dir
chown_default
local get_edit_term () -> term

generate contents for User Data Dialog

local get_details_term () -> term

generate contents for User Details Dialog

local get_password_term () -> term

generate contents for Password Settings Dialog

local get_plugins_term () -> term

generate contents for Plugins Dialog

local EditGroupDialog (string what) -> symbol

Dialog for adding/editing group

Parameters:
what "add_group" or "edit_group"
Return value:
for wizard sequencer
local reinit_groupdata () -> void

initialize local variables with current state of group

local get_edit_term () -> term

generate contents for Group Data Dialog

local get_plugins_term () -> term

generate contents for Plugins Dialog

local UserSave () -> symbol

Just giving paramaters for commiting user

Return value:
for wizard sequencer
local GroupSave () -> symbol

Check the group parameters and commit it if all is OK

Return value:
for wizard sequencer