YaST2 Developers Documentation: Configuration of LDAP

Configuration of LDAP

modules/LdapPopup.ycp
Additional user interface functions: special edit popups
  • Jiri Suchomel

This module has an unstable interface.

Popups for editing the values of LDAP configuration tables.

Imports

  • Label
  • Ldap
  • Popup
  • Wizard

Global Functions

Local Functions

global BrowseTree (string root_dn) -> string

Popup for browsing LDAP tree and selecting the DN WARNING we expect that LDAP connection is already correctly initialized !

Parameters:
root_dn the starting point (root of tree); if empty string is given, the search for available bases will be done automatically
Return value:
DN of selected item, empty string when canceled
global InitAndBrowseTree (string root_dn, map connection) -> string

Open the LDAP Browse popup and initialize initialize LDAP connection before.

Parameters:
root_dn the starting point (root of tree); if empty string is given, the search for available bases will be done automatically
connection init map with information passed to ldap agent (see ldap agent '.ldap' Execute call documentation)
Return value:
DN of selected item, empty string when canceled
global EditAttribute (map settings) -> list<string>

Generic popup for editing attribute's value

Parameters:
settings
Return value:
of atrtibute values (edited or unchanged)
local generate_value_list () -> term

Helper for creating items for EditAttribute Popup

global NewModule (list available, list conflicts) -> map

Popup for adding new configuration module

Parameters:
available list of possible object classes for new module
conflicts list of forbidden names ('cn' values)
Return value:
of new module (contains its name and object class)
global AddDefaultValue (list available, list conflicts) -> map

Popup for adding new default value (default value is template's attribute)

Parameters:
available list of possible attributes
conflicts list of attributes already set
Return value:
of new "default value" (contains attribute name and value)
global PasswordPolicyDialog (map ppolicy) -> map

dialog for Password Policy configuration object

Parameters:
ppolicy data with Password Policy object to be edited (as obtained from LDAP search)
Return value:
with modifications of ppolicy object, nil in case of `cancel