p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Oracle (http://p2p.wrox.com/forumdisplay.php?f=105)
-   -   Need help to SSO&LDAP (Oracle 10g) (http://p2p.wrox.com/showthread.php?t=18312)

aas September 13th, 2004 10:38 AM

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.




gokul_blr September 27th, 2004 06:22 AM

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

aas September 28th, 2004 05:43 AM

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().


chensoft November 5th, 2004 05:02 AM

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;
/


All times are GMT -4. The time now is 05:13 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.