My Oracle Support Banner

How To Install, Configure and Deploy a Python Mapping Script in OVD 10g (Doc ID 420147.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle Virtual Directory - Version 10.1.4 to [Release 10gR3]
Information in this document applies to any platform.


This document describe how to install, configure and deploy a mapping script based on Python in OVD 10g 10.1.4


  • GOAL: When searching for an entry, the attribute telephonenumber, as well as attribute tel, should be returned with the same value.
  • This procedure is exemplified for searching a virtual attribute in OVD.
  • OVD may have some adapters to AD, OID, etc., however they are not involved
  • There are two attribute in OVD:
    a custom attribute: tel
  • For this example, the Python mapping file is simple:
    #-----start <PYTHON_FILE>.mpy--------------
    def inbound():
    #code here for handling inbound mapping

    def outbound():
    #code here for handling outbound mapping
    #-----end <PYTHON_FILE>.mpy----------------
    Notice that only the outbound function is defined. Nevertheless, both functions can be used in the same mapping.

    Other mapping file examples are in Oracle Virtual Directory Product Manual 10g (, from which desired mapping files may be written. Review the "Example: Mapping Active Directory Schema" and "Example: Constructing A CN Attribute".
    Some Python knowledge is required, but the examples from Chapter 8 should be helpful.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.