Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2004, 10:38 AM
aas aas is offline
Authorized User
 
Join Date: Mar 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to aas
Default Need help to SSO&LDAP (Oracle 10g)

Hi all!

Who can help me:
1. how I can to get of any LDAP context from DB after connect?
2. how I can to identify of LDAP user and his LDAP-context?

We use are Oracle Application Server 10g and Oracle DB 10g.

thanks.



 
Old September 27th, 2004, 06:22 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

https://cwisdb.cc.kuleuven.ac.be/ora.../jm_create.htm

Location and Naming of Files
tells you where to find the various files used in the directory integration profile and during synchronization.

Location and Names of Files

File File Name
Import DataFile $ORACLE_HOME/ldap/odi/data/import/Profile_Name.dat
Export Data File $ORACLE_HOME/ldap/odi/data/export/Profile_Name.dat
Additional Configuration Info $ORACLE_HOME/ldap/odi/conf /Profile_Name.cfg
Mapping Rules $ORACLE_HOME/ldap/odi/conf /Profile_Name.map

For example, the datafile name of the Oracle Human Resources connector is oraclehrprofile.dat.



Gokulan Ethiraj
 
Old September 28th, 2004, 05:43 AM
aas aas is offline
Authorized User
 
Join Date: Mar 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to aas
Default

2 gokul_blr

Thanks.
But We don't use a Java. We use PL/SQL and I want to get context with command SYS_CONTEXT().

 
Old November 5th, 2004, 05:02 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chensoft
Default

Hello,I can use LDAP control user account log on,

CREATE OR REPLACE FUNCTION Checkcred (username VARCHAR2, passwd VARCHAR2)
RETURN PLS_INTEGER
AS
  hr_session dbms_ldap.SESSION;
  retval PLS_INTEGER;
  unbind PLS_INTEGER;
  userdn VARCHAR2(256);
  userpasswd VARCHAR2(256);

BEGIN

  IF passwd IS NULL THEN
    RETURN 1;
  END IF;

  retval := 10;
  DBMS_LDAP.USE_EXCEPTION := TRUE;
----LDAP Server IP,Port
  hr_session := dbms_ldap.init('10.1.6.20','389');

  userdn := 'uid=' || username || ',ou=sinomosaccounts,ou=people,dc=sinomos,dc=com';

  retval := DBMS_LDAP.simple_bind_s(hr_session,userdn,passwd);
  unbind := dbms_ldap.unbind_s(hr_session);
  RETURN retval;
EXCEPTION
  WHEN OTHERS THEN

   DBMS_OUTPUT.PUT_LINE(' Error code : ' || TO_CHAR(SQLCODE));
   DBMS_OUTPUT.PUT_LINE(' Error Message : ' || SQLERRM);
   RETURN 1;
END Checkcred;
/





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect to ORACLE 10g Express Edition using matrixbegins Struts 1 June 22nd, 2009 05:38 AM
Java Class in Oracle Form 10g mmrz Oracle 0 August 19th, 2007 12:35 AM
Oracle 10g and ASP.NET Krishnakant Oracle ASP 1 February 20th, 2006 09:06 AM
C#, Negative Infinity, and Oracle 10g lost C# 0 January 17th, 2006 06:45 PM
Conectivity with oracle 10g Database mistry_bhavin ASP.NET 1.x and 2.0 Application Design 0 August 2nd, 2005 12:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.