Tool

anonymous's picture
tool
Reads:

2119

Score:
0
0
 
Comments:

0

Oracle Agent

Author Info

7 January 2004 - 4:53am
Submitted by: anonymous (not verified)

license: 
Free

This driver is based on the example coming with JDBC 1.6 driver for Oracle, which uses some Oracle side tables(EMP, EVENTLOG, etc). It works with DirXML 2.0. Some minor modifications would allow it to run on DirXML 1.1a, since no DirXML 2.0 specific features are leveraged.

It is required to obtain classes12.zip and nls_charset12.zip from http://otn.oracle.com as specified in the documentation for the driver.

The goal behind this driver is to provide a way to assign a period of validity for a Group Membership for a given user, something that is not supported out of the box by eDirectory. In the example an Oracle application is used because it provides some self-polling for the validity interval. I could have use Microsoft SQL Server or DB2, or another database.

Schema extensions(Single Value, Sync Immediate):
User: AgentRole(Case Ignore String), AgentStart and AgentEnd (Time) and AgentStatus (Case Ignore String)

N.B. Dynamic Group and Group have been tested.

What the connector does.

Subscriber:

  • USER CREATE EVENT: Updates dirxmlagent.agent, Required attributes = AgentRole, AgentStart and Agent End
  • USER DELETE EVENT: Updates dirxmlagent.agent on User delete
  • USER Modify EVENT: Updates dirxmlagent.agent
  • N.B. MUST add values for the 3 required attributes(e.g. iManager plug-in studio task).

Publisher:

  • Using a DBMS_Job queue, the agent tables is polled and the status is updated(active/inactive).

Installation:

  • Extend the schema for User
  • Import the driver into eDirectory, Oracle. Enter the selected password for system account(or another account that has access to the dirxml agent Schema, e.g. dirxml), IP address for Oracle server, and instance name(e.g. O9ir2).
  • Login as System(default password is manager) against Oracle with SQL+ or iSQL+. Create user dirxmlagent and dirxml, and grant all privileges:
    • CREATE USER dirxmlagent identified by dirxml;
    • GRANT ALL PRIVILEGES TO dirxmlagent;
    • CREATE USER DIRXML identified by dirxml;
    • GRANT ALL PRIVILEGES TO DIRXML;
  • Login with dirxmlagent with SQL+ or iSQL+ and execute the following SQL scripts:
  • Agent_Oracle.SQL ; Creates the Agent table and other related objects.
  • DBMS_Job.txt ; Jobs polling agent for the validity period of an eDirectory membership. Execute then issue COMMIT;. The script also includes code for removing Jobs from queues, listing jobs in queues, etc. The polling interval is a fraction of 24 hours, so 1/8640 corresponds to 10 seconds. Make sure that Job queues are being monitored by setting the startup parameter JOB_QUEUE_PROCESSES . The code for dynamically activating the Job queues is included in the file.
AttachmentSize
oracle_agent.zip12.45 KB




User Comments

Post new comment

Anonymous
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <i> <cite> <code> <img> <ul> <ol> <li> <div> <dl> <dt> <dd> <b> <strong> <h1> <h2> <h3> <pre> <table> <td> <tr> <th> <blockquote>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
7 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

© 2012 Novell