univention.s4connector package
Contents
univention.s4connector package¶
- univention.s4connector.set_ucs_passwd_user(connector, key, ucs_object)[source]¶
set random password to fulfill required values
- univention.s4connector.check_ucs_lastname_user(connector, key, ucs_object)[source]¶
check if required values for lastname are set
- univention.s4connector.set_primary_group_user(connector, key, ucs_object)[source]¶
check if correct primary group is set
- class univention.s4connector.attribute(ucs_attribute='', ldap_attribute='', con_attribute='', con_other_attribute='', required=0, single_value=False, compare_function=None, mapping=(), reverse_attribute_check=False, sync_mode='sync', con_attribute_encoding='UTF-8')[source]¶
Bases:
object
A mapping attribute description
- Parameters
ucs_attribute (str) – The property name of the object in UDM
ldap_attribute (str) – The LDAP attribute name of the object in UCS LDAP
con_attribute (str) – The LDAP attribute name of the object in AD LDAP
con_other_attribute (str) – Further LDAP attribute name of the object in AD LDAP.
required (bool) – unused
single_value (bool) – Whether the attribute is single_value in the AD LDAP.
compare_function (callable) – A comparision function which compares raw ldap attribute values.
mapping – Mapping functions for (sync_to_s4, sync_to_ucs)
reverse_attribute_check – Make a reverse check of this mapping, if the mapping is not 1:1.
sync_mode – The syncronization direction (read, write, sync)
- Ptype mapping
tuple
- Ptype reverse_attribute_check
bool
- Ptype sync_mode
str
- class univention.s4connector.property(ucs_default_dn='', con_default_dn='', ucs_module='', ucs_module_others=[], sync_mode='', scope='', con_search_filter='', ignore_filter=None, match_filter=None, ignore_subtree=[], con_create_objectclass=[], con_create_attributes=[], dn_mapping_function=[], attributes=None, ucs_create_functions=[], con_create_extensions=[], post_con_create_functions=[], post_con_modify_functions=[], post_ucs_modify_functions=[], post_attributes=None, mapping_table=None, position_mapping=[], con_sync_function=None, ucs_sync_function=None, disable_delete_in_ucs=False, identify=None, con_subtree_delete_objects=[])[source]¶
Bases:
object
- class univention.s4connector.ucs(CONFIGBASENAME, _property, configRegistry, listener_dir, logfilename, debug_level)[source]¶
Bases:
object
- search_ucs(filter='(objectClass=*)', base='', scope='sub', attr=[], unique=0, required=0, timeout=- 1, sizelimit=0)[source]¶
- poll_ucs()[source]¶
poll changes from UCS: iterates over files exported by directory-listener module
- sync_to_ucs(property_type, object, pre_mapped_s4_dn, original_object)[source]¶
Synchronize an object from Samba4-LDAP to UCS Open-LDAP.
- Parameters
property_type – the type of the object to be synced, must be part of the mapping. (e.g. “user”, “group”, “dc”, “windowscomputer”, etc.)
object – A dictionary describing the Samba object. modtype: A modification type (“add”, “modify”, “move”, “delete”) dn: The DN of the object in the UCS-LDAP olddn: The olddn of the object object in UCS-LDAP (e.g. on “move” operation)
pre_mapped_s4_dn – pass
original_object – pass
- Ptype object
dict
Subpackages¶
- univention.s4connector.s4 package
- Submodules
- univention.s4connector.s4.computer module
- univention.s4connector.s4.dc module
- univention.s4connector.s4.dns module
- univention.s4connector.s4.main module
- univention.s4connector.s4.mapping module
- univention.s4connector.s4.ntsecurity_descriptor module
- univention.s4connector.s4.password module
- univention.s4connector.s4.query_config module
- univention.s4connector.s4.sid_mapping module
- univention.s4connector.s4.user module
Submodules¶
univention.s4connector.lockingdb module¶
- class univention.s4connector.lockingdb.LockingDB(filename)[source]¶
Bases:
object
A local database which includes the list of objects which are currently locked. That means the synchronisation of these objects has not been finished. https://forge.univention.org/bugzilla/show_bug.cgi?id=35391