Definition of extended options of UDM-objects

From Univention Wiki

Jump to: navigation, search

It is possible to limit the selection of attributes in a Univention Directory Manager module with options. Usually object classes are enabled or disabled. E.g. the Samba option can be disabled on an user object, thus no samba attribute can be stored for this user any longer.

It is possible to create and register new options for objects in the Univention Directory Manager. To create a new option, move to cn=Univention using the Navigation and create a new object Settings: extended options.

The following options can be defined in for the new object:

Name (*) The name of the LDAP object, with which the option is saved. The name must be unique inside a cointainer.

Default short description (*) Used as the entry field's heading in the Univention Directory Manger web frontend or as attribute description in the UDM commandline interface. The default short description should be written in English, as this is the default language of the Univention Directory Manager.

To display a description in every needed language, it is possible to define a translated string for every language. For this, the language code (e.g. de_DE or fr_FR) must be entered in the entry field Language code and the translated string in the entry field Translated short description.

Default Long Description The default long description is display as tooltip in the Univention Directory Manager web frontend. The default long description should be written in English, as this is the default language of the Univention Directory Manager.

To display a description in every needed language, it is possible to define a translated string for every language. For this, the language code (e.g. de_DE or fr_FR) must be entered in the entry field Language code and the translated string in the entry field Translated long description.

Default If ticked, the option is enabled by default when creating new UDM objects.

Editable If ticked, the options can be removed or added to an UDM object after its creation.

Needed module (*) Select the Univention Directory Manager modules for which the new options applies.

Object Class Each option can be assigned to one or more object classes which then can be activated on each object when the advanced settings are shown. The selected LDAP objectclasses don't automatically recognize activated options when the object class is available. An implementation (e.g. as a hook) is needed to alter these settings.

UDM commandline syntax for creating translations The complete UDM setting (consisting of key, language and the translation) is entered with single quotes, whereas the language and translation are enclosed by double quotes each.
Example:

udm settings/extended_attribute ..
--set 'translationShortDescription="de_DE" "Mail-Alias"'
Personal tools