univention.admin.handlers.container package

help tools for the containers

univention.admin.handlers.container.default_container_for_objects(lo, domain)[source]

Submodules

univention.admin.handlers.container.cn module

UDM module for containers

class univention.admin.handlers.container.cn.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.simpleLdap

module = 'container/cn'
PATH_KEYS = {'computerPath': 'univentionComputersObject', 'dhcpPath': 'univentionDhcpObject', 'dnsPath': 'univentionDnsObject', 'domaincontrollerPath': 'univentionDomainControllerComputersObject', 'groupPath': 'univentionGroupsObject', 'licensePath': 'univentionLicenseObject', 'mailPath': 'univentionMailObject', 'networkPath': 'univentionNetworksObject', 'policyPath': 'univentionPolicyObject', 'printerPath': 'univentionPrintersObject', 'sharePath': 'univentionSharesObject', 'userPath': 'univentionUsersObject'}
open()[source]

Opens this object.

During the initialization of this object the current set LDAP attributes are mapped into info. This method makes it possible to e.g. resolve external references to other objects which are not represented in the raw LDAP attributes of this object, for example the group memberships of a user.

By default only the open hook for extended attributes is called. This method can be subclassed.

Warning

If this method changes anything in self.info it must call save() afterwards.

Warning

If your are going to do any modifications (such as creating, modifying, moving, removing this object) this method must be called directly after the constructor and before modifying any property.

classmethod unmapped_lookup_filter()[source]

Return a LDAP filter UDM filter expression.

Returns

A LDAP filter expression.

Return type

univention.admin.filter.conjunction

See lookup_filter().

univention.admin.handlers.container.cn.identify(dn, attr, canonical=False)[source]

univention.admin.handlers.container.dc module

UDM module for the Domain Component containers

class univention.admin.handlers.container.dc.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.simpleLdap

module = 'container/dc'
open()[source]

Opens this object.

During the initialization of this object the current set LDAP attributes are mapped into info. This method makes it possible to e.g. resolve external references to other objects which are not represented in the raw LDAP attributes of this object, for example the group memberships of a user.

By default only the open hook for extended attributes is called. This method can be subclassed.

Warning

If this method changes anything in self.info it must call save() afterwards.

Warning

If your are going to do any modifications (such as creating, modifying, moving, removing this object) this method must be called directly after the constructor and before modifying any property.

classmethod unmapped_lookup_filter()[source]

Return a LDAP filter UDM filter expression.

Returns

A LDAP filter expression.

Return type

univention.admin.filter.conjunction

See lookup_filter().

univention.admin.handlers.container.msgpo module

class univention.admin.handlers.container.msgpo.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.simpleLdap

module = 'container/msgpo'

univention.admin.handlers.container.ou module

UDM module for Organizational Unit containers

class univention.admin.handlers.container.ou.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.simpleLdap

module = 'container/ou'
PATH_KEYS = {'computerPath': 'univentionComputersObject', 'dhcpPath': 'univentionDhcpObject', 'dnsPath': 'univentionDnsObject', 'domaincontrollerPath': 'univentionDomainControllerComputersObject', 'groupPath': 'univentionGroupsObject', 'licensePath': 'univentionLicenseObject', 'mailPath': 'univentionMailObject', 'networkPath': 'univentionNetworksObject', 'policyPath': 'univentionPolicyObject', 'printerPath': 'univentionPrintersObject', 'sharePath': 'univentionSharesObject', 'userPath': 'univentionUsersObject'}
open()[source]

Opens this object.

During the initialization of this object the current set LDAP attributes are mapped into info. This method makes it possible to e.g. resolve external references to other objects which are not represented in the raw LDAP attributes of this object, for example the group memberships of a user.

By default only the open hook for extended attributes is called. This method can be subclassed.

Warning

If this method changes anything in self.info it must call save() afterwards.

Warning

If your are going to do any modifications (such as creating, modifying, moving, removing this object) this method must be called directly after the constructor and before modifying any property.

classmethod unmapped_lookup_filter()[source]

Return a LDAP filter UDM filter expression.

Returns

A LDAP filter expression.

Return type

univention.admin.filter.conjunction

See lookup_filter().

univention.admin.handlers.container.ou.identify(dn, attr, canonical=False)[source]