univention.connector package

univention.connector.make_lower(mlValue)[source]

lower string cases for mlValue which can be string or a list of values which can be given to mlValue

univention.connector.set_ucs_passwd_user(connector, key, ucs_object)[source]

set random password to fulfill required values

univention.connector.check_ucs_lastname_user(connector, key, ucs_object)[source]

check if required values for lastname are set

univention.connector.set_primary_group_user(connector, key, ucs_object)[source]

check if correct primary group is set

univention.connector.dictonary_lowercase(dict)[source]
univention.connector.compare_lowercase(val1, val2)[source]
class univention.connector.configdb(filename)[source]
get(section, option)[source]
set(section, option, value)[source]
items(section)[source]
remove_option(section, option)[source]
has_section(section)[source]
add_section(section)[source]
has_option(section, option)[source]
class univention.connector.configsaver(filename)[source]
write(ignore='')[source]
get(section, option)[source]
set(section, option, value)[source]
items(section)[source]
remove_option(section, option)[source]
has_section(section)[source]
add_section(section)[source]
has_option(section, option)[source]
class univention.connector.attribute(ucs_attribute='', ldap_attribute='', con_attribute='', con_other_attribute='', required=0, compare_function='', con_value_merge_function='', mapping=(), reverse_attribute_check=False, sync_mode='sync')[source]
class univention.connector.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=[], post_con_create_functions=[], post_con_modify_functions=[], post_ucs_modify_functions=[], post_attributes=None, mapping_table=None, position_mapping=[])[source]
class univention.connector.ucs(CONFIGBASENAME, _property, baseConfig, listener_dir)[source]
dn_mapped_to_base(dn, base)[source]
open_ucs()[source]
search_ucs(filter='(objectClass=*)', base='', scope='sub', attr=[], unique=0, required=0, timeout=-1, sizelimit=0)[source]
init_debug()[source]
close_debug()[source]
_get_config_option(section, option)[source]
_set_config_option(section, option, value)[source]
_remove_config_option(section, option)[source]
_get_config_items(section)[source]
_save_rejected_ucs(filename, dn)[source]
_get_rejected_ucs(filename)[source]
_remove_rejected_ucs(filename)[source]
_list_rejected_ucs()[source]
_list_rejected_filenames_ucs()[source]
list_rejected_ucs()[source]
_encode_dn_as_config_option(dn)[source]
_decode_dn_from_config_option(dn)[source]
_set_dn_mapping(dn_ucs, dn_con)[source]
_remove_dn_mapping(dn_ucs, dn_con)[source]
_get_dn_by_ucs(dn_ucs)[source]
get_dn_by_ucs(dn_ucs)[source]
_get_dn_by_con(dn_con)[source]
get_dn_by_con(dn_con)[source]
_check_dn_mapping(dn_ucs, dn_con)[source]
_list_dn_mappings(config_space)[source]
list_dn_mappings_by_con()[source]
list_dn_mappings_by_ucs()[source]
_debug_traceback(level, text)[source]

print traceback with ud.debug, level is i.e. ud.INFO

_get_rdn(dn)[source]
_get_subtree(dn)[source]
get_ucs_ldap_object(dn)[source]
get_ucs_object(property_type, dn)[source]
initialize_ucs()[source]
initialize()[source]
resync_rejected_ucs()[source]

tries to resync rejected changes from UCS

resync_rejected()[source]
_generate_dn_list_from(files)[source]

Save all filenames in a dictonary with dn as key If more than one pickle file was created for one DN we could skip the first one

poll_ucs()[source]

poll changes from UCS: iterates over files exported by directory-listener module

poll(show_deleted=True)[source]
add_in_ucs(property_type, object, module, position)[source]
modify_in_ucs(property_type, object, module, position)[source]
move_in_ucs(property_type, object, module, position)[source]
_get_entryUUID(dn)[source]
update_deleted_cache_after_removal(entryUUID, objectGUID)[source]
was_entryUUID_deleted(entryUUID)[source]
delete_in_ucs(property_type, object, module, position)[source]
sync_to_ucs(property_type, object, premapped_ad_dn, retry=True)[source]
sync_from_ucs(property_type, object, old_dn=None)[source]
_subtree_match(dn, subtree)[source]
_subtree_replace(dn, subtree, subtreereplace)[source]
_filter_match(filter, attributes)[source]

versucht eine liste von attributen auf einen LDAP-Filter zu matchen Besonderheiten des Filters: - immer case-sensitive - nur * als Wildcard - geht “lachser” mit Verschachtelten Klammern um

_ucs__set_values(property_type, object, ucs_object, modtype='modify')
_ucs__sync_file_from_ucs(filename, append_error='', traceback_level=1)
_ignore_object(key, object)[source]

parse if object should be ignored because of ignore_subtree or ignore_filter

_object_mapping(key, old_object, object_type='con')[source]