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 10.1.4.3.0 [Release 10gR3]
Information in this document applies to any platform.

Goal

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

EXAMPLE

  • 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:
    telephonenumber
    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
    return

    def outbound():
    #code here for handling outbound mapping
    addAttributeValue('tel',getAttributeValue('telephoneNumber'))
    return
    #-----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 (10.1.4.0.1), 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.

Solution

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
Goal
Solution
References

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