univention.udm.modules package

Submodules

univention.udm.modules.appcenter_app module

Module and object specific for “appcenter/app” UDM module.

class univention.udm.modules.appcenter_app.AppcenterAppObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

appcenter/app UDM properties.

_encoders = {u'website': <class 'univention.udm.encoders.MultiLanguageTextAppcenterPropertyEncoder'>, u'name': <class 'univention.udm.encoders.MultiLanguageTextAppcenterPropertyEncoder'>, u'shortDescription': <class 'univention.udm.encoders.MultiLanguageTextAppcenterPropertyEncoder'>, u'longDescription': <class 'univention.udm.encoders.MultiLanguageTextAppcenterPropertyEncoder'>, u'websiteVendor': <class 'univention.udm.encoders.MultiLanguageTextAppcenterPropertyEncoder'>, u'icon': <class 'univention.udm.encoders.Base64BinaryPropertyEncoder'>}
class univention.udm.modules.appcenter_app.AppcenterAppObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of appcenter/app properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of AppcenterAppObjectProperties

class univention.udm.modules.appcenter_app.AppcenterAppModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

AppcenterAppObject factory

_udm_object_class

alias of AppcenterAppObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'appcenter/app'])

univention.udm.modules.computers_all module

Module and object for all computers/* UDM modules.

class univention.udm.modules.computers_all.ComputersAllObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

computers/* UDM properties.

_encoders = {u'nagiosParents': <class 'univention.udm.encoders.DnListPropertyEncoderAuto'>, u'portal': <class 'univention.udm.encoders.DnPropertyEncoderSettingsPortal'>, u'groups': <class 'univention.udm.encoders.DnListPropertyEncoderGroupsGroup'>, u'primaryGroup': <class 'univention.udm.encoders.DnPropertyEncoderGroupsGroup'>, u'reinstall': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'nagiosServices': <class 'univention.udm.encoders.DnListPropertyEncoderNagiosService'>, u'network': <class 'univention.udm.encoders.DnPropertyEncoderNetworksNetwork'>, u'dnsEntryZoneReverse': <class 'univention.udm.encoders.DnsEntryZoneReverseListMultiplePropertyEncoder'>, u'dnsAlias': <class 'univention.udm.encoders.CnameListPropertyEncoder'>, u'sambaRID': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'dnsEntryZoneForward': <class 'univention.udm.encoders.DnsEntryZoneForwardListMultiplePropertyEncoder'>, u'dnsEntryZoneAlias': <class 'univention.udm.encoders.DnsEntryZoneAliasListPropertyEncoder'>}
class univention.udm.modules.computers_all.ComputersAllObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of computers/* properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of ComputersAllObjectProperties

class univention.udm.modules.computers_all.ComputersAllModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

ComputersAllObject factory

_udm_object_class

alias of ComputersAllObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=u'computers', suitable_for=[u'computers/*'])
class univention.udm.modules.computers_all.ComputersDCModule(name, connection, api_version)[source]

Bases: univention.udm.modules.computers_all.ComputersAllModule

ComputersAllObject factory with an adjusted default position

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=u'domaincontroller', suitable_for=[u'computers/domaincontroller_master', u'computers/domaincontroller_backup', u'computers/domaincontroller_slave'])
class univention.udm.modules.computers_all.ComputersMemberModule(name, connection, api_version)[source]

Bases: univention.udm.modules.computers_all.ComputersAllModule

ComputersAllObject factory with an adjusted default position

_get_default_object_positions()[source]
meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=u'computers', suitable_for=[u'computers/memberserver'])

univention.udm.modules.container_cn module

Module and object specific for “container/cn” UDM module.

class univention.udm.modules.container_cn.ContainerCnObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

container/cn UDM properties.

_encoders = {u'dhcpPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'computerPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'networkPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'policyPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'dnsPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'printerPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'userPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'groupPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'licensePath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'mailPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'sharePath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>}
class univention.udm.modules.container_cn.ContainerCnObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of container/cn properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of ContainerCnObjectProperties

class univention.udm.modules.container_cn.ContainerCnModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

ContainerCnObject factory

_udm_object_class

alias of ContainerCnObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'containers/cn'])

univention.udm.modules.container_dc module

Module and object specific for “container/dc” UDM module.

class univention.udm.modules.container_dc.ContainerDcObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

container/dc UDM properties.

_encoders = {u'dnsForwardZone': <class 'univention.udm.encoders.DnsEntryZoneForwardListSinglePropertyEncoder'>, u'dnsReverseZone': <class 'univention.udm.encoders.DnsEntryZoneReverseListSinglePropertyEncoder'>}
class univention.udm.modules.container_dc.ContainerDcObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of container/dc properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of ContainerDcObjectProperties

class univention.udm.modules.container_dc.ContainerDcModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

ContainerDcObject factory

_udm_object_class

alias of ContainerDcObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'containers/dc'])

univention.udm.modules.container_ou module

Module and object specific for “container/ou” UDM module.

class univention.udm.modules.container_ou.ContainerOuObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.container_cn.ContainerCnObjectProperties

container/ou UDM properties.

_encoders = {u'ucsschoolHomeShareFileServer': <class 'univention.udm.encoders.DnPropertyEncoderAuto'>, u'dhcpPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'computerPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'networkPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'ucsschoolClassShareFileServer': <class 'univention.udm.encoders.DnPropertyEncoderAuto'>, u'policyPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'dnsPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'printerPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'userPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'groupPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'licensePath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'mailPath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'sharePath': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>}
class univention.udm.modules.container_ou.ContainerOuObject[source]

Bases: univention.udm.modules.container_cn.ContainerCnObject

Better representation of container/ou properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of ContainerOuObjectProperties

class univention.udm.modules.container_ou.ContainerOuModule(name, connection, api_version)[source]

Bases: univention.udm.modules.container_cn.ContainerCnModule

ContainerOuObject factory

_udm_object_class

alias of ContainerOuObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'containers/ou'])

univention.udm.modules.generic module

A generic UDM module and object implementation. Will work for all kinds of UDM modules.

class univention.udm.modules.generic.GenericObjectProperties(udm_obj)[source]

Bases: univention.udm.base.BaseObjectProperties

Container for UDM properties.

_encoders is a mapping from property names to subclasses of _encoders.BaseEncoder, which will be used to transparently map between the properties representation in original UDM and the new UDM APIs.

_encoders = {}
class univention.udm.modules.generic.GenericObject[source]

Bases: univention.udm.base.BaseObject

Generic object class that can be used with all UDM module types.

Usage:

  • Creation of instances GenericObject is always done through GenericModul.new(), GenericModul.get() or GenericModul.search().

  • Modify an object:

    user.props.firstname = 'Peter'
    user.props.lastname = 'Pan'
    user.save()
    
  • Move an object:

    user.position = 'cn=users,ou=Company,dc=example,dc=com'
    user.save()
    
  • Delete an object:

    obj.delete()
    

After saving a GenericObject, it is reload()ed automatically because UDM hooks and listener modules often add, modify or remove properties when saving to LDAP. As this involves LDAP, it can be disabled if the object is not used afterwards and performance is an issue:

user_mod.meta.auto_reload = False

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of GenericObjectProperties

_policies_encoder = None
reload()[source]

Refresh object from LDAP.

Returns:self
Return type:GenericObject
Raises:univention.udm.exceptions.NotYetSavedError – if object does not yet exist (has no dn)
save()[source]

Save object to LDAP.

Returns:self
Return type:GenericObject
Raises:univention.udm.exceptions.MoveError – when a move operation fails
delete()[source]

Remove the object from the LDAP database.

Returns:

None

Raises:
_copy_from_udm_obj()[source]

Copy UDM property values from low-level UDM object to props container as well as its policies and options.

Returns:None
_copy_to_udm_obj()[source]

Copy UDM property values from props container to low-level UDM object.

Returns:None
_init_new_object_props()[source]

This is a modified copy of the code of univention.admin.handlers.simpleLdap.__getitem__() which creates the default values for a new object, without setting them on the underlying UDM object.

_init_encoder(encoder_class, **kwargs)[source]

Instantiate encoder object if required. Optionally assemble additional arguments.

Parameters:
  • encoder_class (type(BaseEncoder)) – a subclass of BaseEncoder
  • kwargs – named arguments to pass to __init__ when instantiating encoder object
Returns:

either a class object or an instance, depending on the class variable static

Return type:

BaseEncoder or type(BaseEncoder)

class univention.udm.modules.generic.GenericModuleMetadata(meta)[source]

Bases: univention.udm.base.BaseModuleMetadata

identifying_property

UDM Property of which the mapped LDAP attribute is used as first component in a DN, e.g. username (LDAP attribute uid) or name (LDAP attribute cn).

lookup_filter(filter_s=None)[source]

Filter the UDM module uses to find its corresponding LDAP objects.

This can be used in two ways:

  • get the filter to find all objects:

    myfilter_s = obj.meta.lookup_filter()
    
  • get the filter to find a subset of the corresponding LDAP objects (filter_s will be combined with & to the filter for all objects):

    myfilter = obj.meta.lookup_filter('(|(givenName=A*)(givenName=B*))')
    
Parameters:filter_s (str) – optional LDAP filter expression
Returns:an LDAP filter string
Return type:str
mapping

UDM properties to LDAP attributes mapping and vice versa.

Returns:a namedtuple containing two mappings: a) from UDM property to LDAP attribute and b) from LDAP attribute to UDM property
Return type:LdapMapping
class univention.udm.modules.generic.GenericModuleMeta[source]

Bases: univention.udm.base.ModuleMeta

udm_meta_class

alias of GenericModuleMetadata

class univention.udm.modules.generic.GenericModule(name, connection, api_version)[source]

Bases: univention.udm.base.BaseModule

Simple API to use UDM modules. Basically a GenericObject factory.

Usage:

  1. Get module using:

    user_mod = UDM.admin/machine/credentials().get('users/user')
    
  2. Create fresh, not yet saved GenericObject:

    new_user = user_mod.new()
    
  3. Load an existing object:

    group = group_mod.get('cn=test,cn=groups,dc=example,dc=com')
    group = group_mod.get_by_id('Domain Users')
    
  4. Search and load existing objects:

    dc_slaves = dc_slave_mod.search(filter_s='cn=s10*')
    campus_groups = group_mod.search(base='ou=campus,dc=example,dc=com')
    
_udm_object_class

alias of GenericObject

_udm_module_meta_class

alias of GenericModuleMetadata

_udm_module_cache = {}
_default_containers = {}
new(superordinate=None)[source]

Create a new, unsaved GenericObject object.

Parameters:superordinate (str or GenericObject) – DN or UDM object this one references as its superordinate (required by some modules)
Returns:a new, unsaved GenericObject object
Return type:GenericObject
get(dn)[source]

Load UDM object from LDAP.

Parameters:

dn (str) – DN of the object to load

Returns:

an existing GenericObject object

Return type:

GenericObject

Raises:
search(filter_s=u'', base=u'', scope=u'sub')[source]

Get all UDM objects from LDAP that match the given filter.

Parameters:
  • filter_s (str) – LDAP filter (only object selector like uid=foo required, objectClasses will be set by the UDM module)
  • base (str) – subtree to search
  • scope (str) – depth to search
Returns:

generator to iterate over GenericObject objects

Return type:

Iterator(GenericObject)

_dn_exists(dn)[source]

Checks if the DN exists in LDAP.

Parameters:dn (str) – the DN
Returns:whether dn exists
Return type:bool
_get_default_containers()[source]

Get default containers for all modules.

Returns:a dictionary with lists of DNs
Return type:dict(str, list(str))
_get_default_object_positions()[source]

Get default containers for this UDM module.

Returns:list of container DNs
Return type:list(str)
_get_orig_udm_module()[source]

Load a UDM module, initializing it if required.

Returns:a UDM module
Return type:univention.admin.handlers.simpleLdap
_get_orig_udm_object(dn, superordinate=None)[source]

Retrieve UDM object from LDAP.

May raise from NoObject if no object is found at DN or WrongObjectType if the object found is not of type self.name.

Parameters:
  • dn (str) – the DN of the object to load
  • superordinate (str or GenericObject) – DN or UDM object this one references as its superordinate (required by some modules)
  • orig_udm_object (univention.admin.handlers.simpleLdap) – original UDM object instance, if unset one will be created from dn
Returns:

UDM object

Return type:

univention.admin.handlers.simpleLdap

Raises:
_load_obj(dn, superordinate=None, orig_udm_object=None)[source]

GenericObject factory.

Parameters:
  • dn (str) – the DN of the UDM object to load, if ‘’ a new one
  • superordinate (str or GenericObject) – DN or UDM object this one references as its superordinate (required by some modules)
  • orig_udm_object (univention.admin.handlers.simpleLdap) – original UDM object instance, if unset one will be created from dn
Returns:

a GenericObject

Return type:

GenericObject

Raises:
_verify_univention_object_type(orig_udm_obj)[source]

Check that the univentionObjectType of the LDAP objects matches the UDM module name.

Parameters:orig_udm_obj (univention.admin.handlers.simpleLdap) – original UDM object
Returns:None
Raises:univention.udm.exceptions.WrongObjectType – if univentionObjectType of the LDAP object does not match the UDM module name
meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[0, 1, 2], default_positions_property=None, suitable_for=[u'*/*'])

univention.udm.modules.groups_group module

Module and object specific for “groups/group” UDM module.

class univention.udm.modules.groups_group.GroupsGroupObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

groups/group UDM properties.

_encoders = {u'sambaGroupType': <class 'univention.udm.encoders.SambaGroupTypePropertyEncoder'>, u'gidNumber': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'hosts': <class 'univention.udm.encoders.DnListPropertyEncoderAuto'>, u'UVMMGroup': <class 'univention.udm.encoders.StringIntBooleanPropertyEncoder'>, u'memberOf': <class 'univention.udm.encoders.DnListPropertyEncoderGroupsGroup'>, u'allowedEmailUsers': <class 'univention.udm.encoders.DnListPropertyEncoderUsersUser'>, u'allowedEmailGroups': <class 'univention.udm.encoders.DnListPropertyEncoderGroupsGroup'>, u'sambaRID': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'nestedGroup': <class 'univention.udm.encoders.DnListPropertyEncoderGroupsGroup'>, u'users': <class 'univention.udm.encoders.DnListPropertyEncoderUsersUser'>}
class univention.udm.modules.groups_group.GroupsGroupObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of groups/group properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of GroupsGroupObjectProperties

class univention.udm.modules.groups_group.GroupsGroupModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

GroupsGroupObject factory

_udm_object_class

alias of GroupsGroupObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=u'groups', suitable_for=[u'groups/group'])

univention.udm.modules.mail_all module

Module and object specific for all “mail/*” UDM modules.

This module handles the problem that on a OX system, UDM modules are registered for oxmail/ox$NAME, that opens LDAP objects with both univentionObjectType=oxmail/ox$NAME and univentionObjectType=mail/$NAME.

GenericModule._verify_univention_object_type() raises a WrongObjectType exception when loading it.

The overwritten method _verify_univention_object_type() allows both mail/* and oxmail/* in univentionObjectType.

class univention.udm.modules.mail_all.MailAllObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

mail/* UDM properties.

_encoders = {u'mailUserQuota': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'sharedFolderGroupACL': <class 'univention.udm.encoders.ListOfListOflTextToDictPropertyEncoder'>, u'mailQuota': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'sharedFolderUserACL': <class 'univention.udm.encoders.ListOfListOflTextToDictPropertyEncoder'>}
class univention.udm.modules.mail_all.MailAllObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of mail/* properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of MailAllObjectProperties

class univention.udm.modules.mail_all.MailAllModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

MailAllObject factory

_udm_object_class

alias of MailAllObject

_verify_univention_object_type(orig_udm_obj)[source]

Allow both mail/* and oxmail/* in univentionObjectType.

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'mail/*'])

univention.udm.modules.nagios_service module

Module and object specific for “nagios/service” UDM module.

class univention.udm.modules.nagios_service.NagiosServiceObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

nagios/service UDM properties.

_encoders = {u'notificationOptionUnreachable': <class 'univention.udm.encoders.DisabledPropertyEncoder'>, u'notificationOptionWarning': <class 'univention.udm.encoders.DisabledPropertyEncoder'>, u'assignedHosts': <class 'univention.udm.encoders.DnListPropertyEncoderAuto'>, u'notificationOptionRecovered': <class 'univention.udm.encoders.DisabledPropertyEncoder'>, u'notificationOptionCritical': <class 'univention.udm.encoders.DisabledPropertyEncoder'>, u'maxCheckAttempts': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'useNRPE': <class 'univention.udm.encoders.DisabledPropertyEncoder'>, u'normalCheckInterval': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'notificationInterval': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'retryCheckInterval': <class 'univention.udm.encoders.StringIntPropertyEncoder'>}
class univention.udm.modules.nagios_service.NagiosServiceObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of nagios/service properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of NagiosServiceObjectProperties

class univention.udm.modules.nagios_service.NagiosServiceModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

NagiosServiceObject factory

_udm_object_class

alias of NagiosServiceObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'nagios/service'])

univention.udm.modules.policies_registry module

Module and object specific for “policies/registry” UDM module.

class univention.udm.modules.policies_registry.PoliciesRegistryObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

policies/registry UDM properties.

_encoders = {u'registry': <class 'univention.udm.encoders.ListOfListOflTextToDictPropertyEncoder'>}
class univention.udm.modules.policies_registry.PoliciesRegistryObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of policies/registry properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of PoliciesRegistryObjectProperties

class univention.udm.modules.policies_registry.PoliciesRegistryModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

PoliciesRegistryObject factory

_udm_object_class

alias of PoliciesRegistryObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'policies/registry'])

univention.udm.modules.policies_share_userquota module

Module and object specific for “policies/share_userquota” UDM module.

class univention.udm.modules.policies_share_userquota.PoliciesShareUserquotaObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

policies/share_userquota UDM properties.

_encoders = {u'reapplyeverylogin': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>}
class univention.udm.modules.policies_share_userquota.PoliciesShareUserquotaObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of policies/share_userquota properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of PoliciesShareUserquotaObjectProperties

class univention.udm.modules.policies_share_userquota.PoliciesShareUserquotaModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

PoliciesShareUserquotaObject factory

_udm_object_class

alias of PoliciesShareUserquotaObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'policies/share_userquota'])

univention.udm.modules.policies_umc module

Module and object specific for “policies/umc” UDM module.

class univention.udm.modules.policies_umc.PoliciesUmcObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

policies/umc UDM properties.

_encoders = {u'allow': <class 'univention.udm.encoders.DnListPropertyEncoderSettingsUmc_operationset'>}
class univention.udm.modules.policies_umc.PoliciesUmcObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of policies/umc properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of PoliciesUmcObjectProperties

class univention.udm.modules.policies_umc.PoliciesUmcModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

PoliciesUmcObject factory

_udm_object_class

alias of PoliciesUmcObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'policies/umc'])

univention.udm.modules.saml_serviceprovider module

Module and object specific for “saml/serviceprovider” UDM module.

class univention.udm.modules.saml_serviceprovider.SamlServiceproviderObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

saml/serviceprovider UDM properties.

_encoders = {u'simplesamlAttributes': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>}
class univention.udm.modules.saml_serviceprovider.SamlServiceproviderObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of saml/serviceprovider properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of SamlServiceproviderObjectProperties

class univention.udm.modules.saml_serviceprovider.SamlServiceproviderModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

SamlServiceproviderObject factory

_udm_object_class

alias of SamlServiceproviderObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'saml/serviceprovider'])

univention.udm.modules.settings_data module

Module and object specific for “settings/data” UDM module.

class univention.udm.modules.settings_data.SettingsDataObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

settings/data UDM properties.

_encoders = {u'data': <class 'univention.udm.encoders.Base64Bzip2BinaryPropertyEncoder'>}
class univention.udm.modules.settings_data.SettingsDataObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of settings/portal properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of SettingsDataObjectProperties

class univention.udm.modules.settings_data.SettingsDataModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

SettingsDataObject factory

_udm_object_class

alias of SettingsDataObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'settings/data'])

univention.udm.modules.settings_directory module

Module and object specific for “settings/directory” UDM module.

class univention.udm.modules.settings_directory.SettingsDirectoryObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

settings/directory UDM properties.

_encoders = {u'dns': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'groups': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'dhcp': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'networks': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'users': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'license': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'computers': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'shares': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'policies': <class 'univention.udm.encoders.DnListPropertyEncoderAuto'>, u'printers': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>, u'mail': <class 'univention.udm.encoders.DnListPropertyEncoderContainerCn'>}
class univention.udm.modules.settings_directory.SettingsDirectoryObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of settings/directory properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of SettingsDirectoryObjectProperties

class univention.udm.modules.settings_directory.SettingsDirectoryModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

SettingsDirectoryObject factory

_udm_object_class

alias of SettingsDirectoryObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'settings/directory'])

univention.udm.modules.settings_portal module

Module and object specific for “settings/portal” UDM module.

class univention.udm.modules.settings_portal.SettingsPortalObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

settings/portal UDM properties.

_encoders = {u'showMenu': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>, u'ensureLogin': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>, u'anonymousEmpty': <class 'univention.udm.encoders.ListOfListOflTextToDictPropertyEncoder'>, u'showLogin': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>, u'background': <class 'univention.udm.encoders.Base64BinaryPropertyEncoder'>, u'portalComputers': <class 'univention.udm.encoders.DnListPropertyEncoderAuto'>, u'logo': <class 'univention.udm.encoders.Base64BinaryPropertyEncoder'>, u'showSearch': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>, u'showApps': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>, u'displayName': <class 'univention.udm.encoders.ListOfListOflTextToDictPropertyEncoder'>, u'showServers': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>, u'portalEntriesOrder': <class 'univention.udm.encoders.DnListPropertyEncoderSettingsPortal_entry'>, u'autoLayoutCategories': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>}
class univention.udm.modules.settings_portal.SettingsPortalObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of settings/portal properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of SettingsPortalObjectProperties

class univention.udm.modules.settings_portal.SettingsPortalModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

SettingsPortalObject factory

_udm_object_class

alias of SettingsPortalObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'settings/portal'])

univention.udm.modules.settings_portal_category module

Module and object specific for “settings/portal_category” UDM module.

class univention.udm.modules.settings_portal_category.SettingsPortalCategoryObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

settings/portal_category UDM properties.

_encoders = {u'displayName': <class 'univention.udm.encoders.ListOfListOflTextToDictPropertyEncoder'>}
class univention.udm.modules.settings_portal_category.SettingsPortalCategoryObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of settings/portal_category properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of SettingsPortalCategoryObjectProperties

class univention.udm.modules.settings_portal_category.SettingsPortalCategoryModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

SettingsPortalCategoryObject factory

_udm_object_class

alias of SettingsPortalCategoryObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[2], default_positions_property=None, suitable_for=[u'settings/portal_category'])

univention.udm.modules.settings_portal_entry module

Module and object specific for “settings/portal_entry” UDM module.

class univention.udm.modules.settings_portal_entry.SettingsPortalEntryObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

settings/portal_entry UDM properties.

_encoders = {u'displayName': <class 'univention.udm.encoders.ListOfListOflTextToDictPropertyEncoder'>, u'description': <class 'univention.udm.encoders.ListOfListOflTextToDictPropertyEncoder'>, u'activated': <class 'univention.udm.encoders.StringCaseInsensitiveResultUpperBooleanPropertyEncoder'>, u'portal': <class 'univention.udm.encoders.DnListPropertyEncoderSettingsPortal'>, u'userGroup': <class 'univention.udm.encoders.DnPropertyEncoderGroupsGroup'>, u'icon': <class 'univention.udm.encoders.Base64BinaryPropertyEncoder'>}
class univention.udm.modules.settings_portal_entry.SettingsPortalEntryObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of settings/portal_entry properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of SettingsPortalEntryObjectProperties

class univention.udm.modules.settings_portal_entry.SettingsPortalEntryModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

SettingsPortalEntryObject factory

_udm_object_class

alias of SettingsPortalEntryObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'settings/portal_entry'])

univention.udm.modules.users_ldap_v0 module

FOR TESTING PURPOSES ONLY!

Module and object specific for “users/ldap” UDM module.

class univention.udm.modules.users_ldap_v0.UsersLdapObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

users/ldap UDM properties.

class univention.udm.modules.users_ldap_v0.UsersLdapObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of users/ldap properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of UsersLdapObjectProperties

class univention.udm.modules.users_ldap_v0.UsersLdapModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

UsersLdapObject factory

_udm_object_class

alias of UsersLdapObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[0], default_positions_property=None, suitable_for=[u'users/ldap'])

univention.udm.modules.users_ldap_v1 module

FOR TESTING PURPOSES ONLY!

Module and object specific for “users/ldap” UDM module.

class univention.udm.modules.users_ldap_v1.UsersLdapObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

users/ldap UDM properties.

_encoders = {u'disabled': <class 'univention.udm.encoders.DisabledPropertyEncoder'>}
class univention.udm.modules.users_ldap_v1.UsersLdapObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of users/ldap properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of UsersLdapObjectProperties

class univention.udm.modules.users_ldap_v1.UsersLdapModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

UsersLdapObject factory

_udm_object_class

alias of UsersLdapObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=None, suitable_for=[u'users/ldap'])

univention.udm.modules.users_user module

Module and object specific for “users/user” UDM module.

class univention.udm.modules.users_user.UsersUserObjectProperties(udm_obj)[source]

Bases: univention.udm.modules.generic.GenericObjectProperties

users/user UDM properties.

_encoders = {u'homePostalAddress': <class 'univention.udm.encoders.HomePostalAddressPropertyEncoder'>, u'jpegPhoto': <class 'univention.udm.encoders.Base64BinaryPropertyEncoder'>, u'uidNumber': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'disabled': <class 'univention.udm.encoders.DisabledPropertyEncoder'>, u'gidNumber': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'birthday': <class 'univention.udm.encoders.DatePropertyEncoder'>, u'groups': <class 'univention.udm.encoders.DnListPropertyEncoderGroupsGroup'>, u'primaryGroup': <class 'univention.udm.encoders.DnPropertyEncoderGroupsGroup'>, u'mailForwardCopyToSelf': <class 'univention.udm.encoders.DisabledPropertyEncoder'>, u'mailUserQuota': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'userexpiry': <class 'univention.udm.encoders.DatePropertyEncoder'>, u'serviceprovider': <class 'univention.udm.encoders.DnListPropertyEncoderSamlServiceprovider'>, u'sambaLogonHours': <class 'univention.udm.encoders.SambaLogonHoursPropertyEncoder'>, u'sambaRID': <class 'univention.udm.encoders.StringIntPropertyEncoder'>, u'secretary': <class 'univention.udm.encoders.DnListPropertyEncoderUsersUser'>}
class univention.udm.modules.users_user.UsersUserObject[source]

Bases: univention.udm.modules.generic.GenericObject

Better representation of users/user properties.

Don’t instantiate a GenericObject directly. Use GenericModule.get(), GenericModule.new() or GenericModule.search().

udm_prop_class

alias of UsersUserObjectProperties

class univention.udm.modules.users_user.UsersUserModule(name, connection, api_version)[source]

Bases: univention.udm.modules.generic.GenericModule

UsersUserObject factory

_udm_object_class

alias of UsersUserObject

meta = GenericModuleMetadata(used_api_version=None, supported_api_versions=[1, 2], default_positions_property=u'users', suitable_for=[u'users/user'])