@@ -320,17 +320,18 @@ class LdapLoader(AbstractLoader):
- condition_handling is a Flag which can either be LOG or DEFAULT
- on DEFAULT there will be a default container mapping created from the rdn and base give in init
- on DEFAULT there will be a default container mapping created from the rdn and base given in init
- on LOG there will be NO default container mapping created which can result in records that could be loaded, because no container mapping could be applied(!), but you will get warnings in the log
- move is a list of actions that should move rather than do their actual task
- if "update" is in the list, the update action will move an entry AFTER the actual update of the entry
- if "delete" is in the list, the delete action will move an entry INSTED OF deleting it
- You can define as many container mapping as you want
- container mappings are priorised by order! Which means that the first container mapping that matches, will be applied!
- container mappings consist of operation, condition, target and an optional rdn
- the container mapping "operation" is a list of operations for which this containerm mapping should be applied
- the container mapping "condition" is python code, that will be thrown into eval (you can ONLY use UNMAPPED property names in the condition!)
- the container mapping "operation" is a list of operations for which this container mapping should be applied
- the container mapping "condition" is python code, that will be thrown into eval (you can use the record object, unmapped property names in the data dict or the source(!) "dn" in the condition)
- the container mapping "target" is the base, where the record with the matching condition should be written or moved to
- the container mapping "rdn" is the rdn of the record, that will be the first part of the dn
- examples:
...
...
@@ -340,9 +341,10 @@ class LdapLoader(AbstractLoader):