LDAP (OID) integration with java appilcation

OID issue Urgent
Currently we are using the OID-LDAP as the repository for storing username, passwds
and other attributes. All applications that need authentication will essentially
be using the OID.
In our effort to do the same we are encountering the following problems
- Creation of an identity corresponding the application
- Giving this identity certain LDAP authorizations (Which authorizations are these)
We have been successful creating LDAP entries for users and getting the initial
JNDI contexts to do the lookups.
When we are creating the user lookup from java code using oracle.ldap.util.User pakage ,
at the run time it's throwing error(no classfound oracle/net/config/ConfigException ).
why and where this is needed and how to resolve that. is that because we haven't added
the application in oid and configured authorizations for it.
Need an urgent answer to this since all applications will be using LDAP(OID).
here is code of java which tries to connect to OID.
================================================================================================
import oracle.ldap.util.*;
import oracle.ldap.util.jndi.*;
import java.io.*;
import java.util.*;
import javax.naming.*;
import java.Exception.*;
import javax.naming.directory.*;
public class hello {
public static void main(String argv[])
throws NamingException {
// Create InitialDirContext
     System.out.println("INSIDE SERVLET");
InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx( "hire11.kmfl.kg","4032","cn=orcladmin", "ias123" );
// Create Subscriber object
     System.out.println("GOT CONTEXT" +ctx);
Subscriber mysub = null;
/* commented for time being -----------------------------
try {
// Creation using DN
System.out.println("CREATING subscriber");
     mysub = new Subscriber( ctx, Util.IDTYPE_DN, "o=oracle,dc=com", false
     System.out.println("GOT subscriber");
catch (UtilException e) {
          System.out.println("error");
// Create User Objects
User myuser = null, myuser1 = null;
try {
// Create User using a subscriber DN and the User DN
     System.out.println("CREATING USERl");
myuser = new User ( ctx,Util.IDTYPE_DN,           "cn=abhishek,cn=users,dc=kmfl,dc=kg",Util.IDTYPE_DN,"dc=kmfl,dc=kg", true );
     System.out.println("GOT USER");
// Create User using a subscriber object and the User
// simple name
// commented for time being -----------------------------
myuser1 = new User ( ctx, Util.IDTYPE_SIMPLE, "abhishek", mysub, true );
catch ( UtilException e ) {
System.out.println("COUDN'T GET USER"+e.toString());
// Authenticate User
try {
     System.out.println("gOING FOR AUTHENTICATION");     
myuser.authenticateUser(ctx,User.CREDTYPE_PASSWD,"abhi123");
     System.out.println("AUTHENTICATION SuccessFull");
     System.out.println("AUTHENTICATION SUCCESSfULL");
     System.out.println("AUTHENTICATION sUCCESSfULL");
catch ( UtilException e ) {
System.out.println("AUTHENTICATION FAILED");
// Perform User operations
/* commented for time being -----------------------------
try {
PropertySetCollection result = null;
// Get telephonenumber of user
String[] userAttrList = {"telephonenumber"};
result = myuser1.getProperties(ctx,userAttrList);
Util.printResults(result);
// Set telephonenumber of user
// Create JNDI ModificationItem
ModificationItem[] mods = new ModificationItem[1];
mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,
new BasicAttribute("telephonenumber", "444-6789"));
// Perform modification using User object
myuser.setProperties(ctx, mods);
catch ( UtilException e ) {
} // End of SampleUser.java
==============================================================================================================

What about SSL or LDAPS !
Can't seem to find any java examples which would support services of type:
ldapbind -U 1,2 for java API !

Similar Messages

  • LDAP (OID) integration with java appilcation( Urgent imp.)

    Currently we are using the OID-LDAP as the repository for storing username, passwds
    and other attributes. All applications that need authentication will essentially
    be using the OID.
    In our effort to do the same we are encountering the following problems
    - Creation of an identity corresponding the application
    - Giving this identity certain LDAP authorizations (Which authorizations are these)
    We have been successful creating LDAP entries for users and getting the initial
    JNDI contexts to do the lookups.
    When we are creating the user lookup from java code using oracle.ldap.util.User pakage ,
    at the run time it's throwing error(no classfound oracle/net/config/ConfigException ).
    why and where this is needed and how to resolve that. is that because we haven't added
    the application in oid and configured authorizations for it.
    Need an urgent answer to this since all applications will be using LDAP(OID).
    here is code of java which tries to connect to OID.
    ================================================================================================
    import oracle.ldap.util.*;
    import oracle.ldap.util.jndi.*;
    import java.io.*;
    import java.util.*;
    import javax.naming.*;
    import java.Exception.*;
    import javax.naming.directory.*;
    public class hello {
    public static void main(String argv[])
    throws NamingException {
    // Create InitialDirContext
    System.out.println("INSIDE SERVLET");
    InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx( "hire11.kmfl.kg","4032","cn=orcladmin", "ias123" );
    // Create Subscriber object
    System.out.println("GOT CONTEXT" +ctx);
    Subscriber mysub = null;
    /* commented for time being -----------------------------
    try {
    // Creation using DN
    System.out.println("CREATING subscriber");
    mysub = new Subscriber( ctx, Util.IDTYPE_DN, "o=oracle,dc=com", false
    System.out.println("GOT subscriber");
    catch (UtilException e) {
    System.out.println("error");
    // Create User Objects
    User myuser = null, myuser1 = null;
    try {
    // Create User using a subscriber DN and the User DN
    System.out.println("CREATING USERl");
    myuser = new User ( ctx,Util.IDTYPE_DN, "cn=abhishek,cn=users,dc=kmfl,dc=kg",Util.IDTYPE_DN,"dc=kmfl,dc=kg", true );
    System.out.println("GOT USER");
    // Create User using a subscriber object and the User
    // simple name
    // commented for time being -----------------------------
    myuser1 = new User ( ctx, Util.IDTYPE_SIMPLE, "abhishek", mysub, true );
    catch ( UtilException e ) {
    System.out.println("COUDN'T GET USER"+e.toString());
    // Authenticate User
    try {
    System.out.println("gOING FOR AUTHENTICATION");
    myuser.authenticateUser(ctx,User.CREDTYPE_PASSWD,"abhi123");
    System.out.println("AUTHENTICATION SuccessFull");
    System.out.println("AUTHENTICATION SUCCESSfULL");
    System.out.println("AUTHENTICATION sUCCESSfULL");
    catch ( UtilException e ) {
    System.out.println("AUTHENTICATION FAILED");
    // Perform User operations
    /* commented for time being -----------------------------
    try {
    PropertySetCollection result = null;
    // Get telephonenumber of user
    String[] userAttrList = {"telephonenumber"};
    result = myuser1.getProperties(ctx,userAttrList);
    Util.printResults(result);
    // Set telephonenumber of user
    // Create JNDI ModificationItem
    ModificationItem[] mods = new ModificationItem[1];
    mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,
    new BasicAttribute("telephonenumber", "444-6789"));
    // Perform modification using User object
    myuser.setProperties(ctx, mods);
    catch ( UtilException e ) {
    } // End of SampleUser.java
    ==============================================================================================================

    Hi,
    Make sure you have the netcfg.jar in the same directory as that of ldapjclnt9.jar (in $ORACLE_HOME/jlib).
    Regards
    Radhika

  • Image not showing in Abobe integrated with Java WebDynPro

    Hi All,
    Image is not showing in Abobe integrated with Java WebDynPro.
    I did the following:
    Added the image field in adobe form. in URL value set the value of context node binding. Binding set to none and size set to Use Original Size.
    Then in script editor i wrote
    this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    at innitialize , javascript and client.
    I can see the image from the same url context value if image field is created directly in WebDynPro View.
    Can anyone suggest what is missing?
    Thanks and Regards,
    Nuzhat

    Try changing your line of code for this one
    this.value.image.href = xfa.record.Images.URL;
    Check that the url passed by scripting is correct with a messageBox for example.
    You can also try assigning a hardcoded url at scripting level to check if its works.
    Best regards, Aldo.

  • Portal Integration with JAVA ?

    Hello All,
           I've been working in the Portal for the past 1 Year.
    The work which I've done is :
    1. Creation of BSP's in SAP
    2. Create iViews in Portal accessing these BSP Applications.( BSP , IAC, URL,BW etc )
    3. Create Roles.
    Now I'm moved to one more Project which does the Portal Integration with JAVA.
    Can any one tell me what is it and how it can be done ?
    Regards,
    Deepu.K

    Hi Deepu
    You can achieve the same,please visit the following links:-
    http://help.sap.com/saphelp_nw04s/helpdata/en/d8/6ee03fc2269615e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d8/6ee03fc2269615e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/771fa290-0201-0010-3d93-865e66cc6d7e
    Regards
    Navneet
    Please revert incase of doubt.

  • Crystal Report Server 2008 integration with java application

    Hi All,
    Any of you having complete document about Crystal Report Server 2008 integration with java application....like source code and what are all the jar files needed? Or tell me that the implementation is same as Crystal Report Server XI R2?
    Thanks

    Have you looked at the BusinessObjects Enterprise XI 3.x Java Developer Guide?
    [http://www.sdn.sap.com/irj/boc/sdklibrary]
    Sincerely,
    Ted Ueda

  • Webcenter dicussion forum - Ldap Group Integration with JSSO

    Hi,
    We want to implement LDAP Group integration for the authorization purposes in
    webcenter Jive Disucussions deployed in our IAS 10.1.3.2 application server.
    Though jive provides support for the same, yet the JIve documentation says
    that we need to implement the JIve's LDAP User authentication steps in order
    to leverage LDAP Groups integration. In case of Webcenter if we use Java SSO
    for the authentication purpose, we need opt for the 'Default' in the Jive
    Admin's authentication page instead of LDAP settings. Opting for 'Default'
    scheme doesn't allow us to configure the LDAP group settings. We are not able
    find any documentation for LDAP Group Integration along with Java SSO. Could
    provide us the steps required for the same? Or has anyone tried the same?
    Thanks and Regards,
    ABhijit

    Hi Abhijit,
    You can ignore 'Default', and implement your own user authentication mechanism, which can include LDAP group settings. You will have to follow:
    - OC4J security documentation for using Java SSO in your own implementation (I think this is the right link - confirm the version numbers - http://download.oracle.com/docs/cd/B32110_01/web.1013/b28957/javasso.htm#BABEJFDI)
    - Jive documentation for implementing user authentication
    Navneet.

  • OID integration with Kronos for implementing Single Sign On

    We are looking at integrating our existing Kronos system on single sign on.
    OID is our LDAP for integrating all the systems on SSO.
    It would be of great help if anyone has done this kinda of integration before and can provide me some leads for this project.
    Thank you,
    Sangita

    My understanding is that this web application will be deployed on some application server and you need to implement the SSO using OpenSSO for it. For this purpose, you will need to have folliwng modules:
    - Idenitity Provider (IdP) that will provide SSO service to your application.
    - Service Provider (SP) module that will interact with IdP and your application.
    OpenSSO can be used to define both IdP and SP. While configuring IdP is easy but the SP part is a bit complicated as you will have to also use the Policy Agent to protect your application and interface with the SP part of OpenSSO. Once you configure the IdP and SP, you will need to configure the Policy Agent specific for the application server on which your application is deployed. For WebLogic, here is the link:
    http://docs.sun.com/app/docs/doc/820-4580/6ng1lok82?a=view
    There may be other easier solutions (in terms of architecture) which I'm not aware of. And maybe this is why I was destined to follow up on one of the issues at http://forums.sun.com/thread.jspa?threadID=5436607
    Cheers

  • Siebel new LDAP adapter integration with BI Publisher

    Hi All!!
    We have configured our Siebel (8.1.1.3) security adapter with LDAP. BI Publisher is using Siebel security model.
    We had to clone our AOM (fins_esn which is using the security adapter LDAP) to finsxx_esn because we are migrating the AD 2000 to 2008 (we are also changing the domain). The roll out will last 2 month, users will be migrated by branch, it wont be a big bang.
    We have to generate a new LDAP security adapter to authenticate users who are logging to finsxx_esn to the AD 2008 (AD 2008 is on a diferent domain than AD 2000. This is working for application autehtication, no problems found here)
    On a standalone environment report generation is working. But for a distributed environment (1 AOM, 1 NAOM, 1 Web Server) is not working.
    Does anyone knows how to integrate to BI Publisher when you have two LDAP security adapters on Siebel Application? Or is there any authentication method to use instead of "Siebel Security" so as to achieve this?
    Regards

    We actually ran into a similar problem where I work. I created a support web ticket for our issue and the response is that BIP 11G is not supported for integration with Siebel 8.1, or any other version for that matter. Oracle is currently working on a fix to integrated the latest version of Siebel with BIP.
    There advice to me was to downgrade to BIP 10G for the time being.

  • Does Seagate Crystal Report Be Integrated with Java Swing

    Hello All
    We are developing java programs for quiet some time now, But what we are trying to do now is can we do the things what VB can do , Thatis the reports from the Database Query can be formatted into Crystal reports
    I use Forte For java Sun One Studio 4 For developing Swing Applicatioon
    If Any of U can give me idea, ie a report not in HTML format But Crystal Report, PLease Le me know
    Regds

    Are you developing an Applet or a standalone application?
    The way I'd handle this is to install the Crystal Reports web server and then call these reports from the web simply by specifying an appropriate URL.
    By the way: the Crytsal reports server also handles report requests in Netscape with JAVA (IE with ActiveX)
    so perhaps this is the right corner to look for answers
    Regards

  • OID integration with BI Publisher

    Hi All,
    We are using BI Publisher version 10.1.3.4.We have to integrate BI publisher with OID i followed steps given in Oracle® Business Intelligence Publisher
    Administrator's and Developer's Guide Release 10.1.3.4 Part No. E12188-01 for integrating OID with BI publisher using OID WEB UI.
    We have creted users and role (GROUPS) in OID as per instructions.We also done security configurations in admin tab for this ldap. When we try to log in through
    OID user into BI publisher we are getting error **The server can not be used due to a configuration error, please contact the administrator. If you are the administrator, please consult BI Publisher user guide for proper configuration.** oracle.apps.xdo.security.ValidateException
    Any help please....

    Hi Tim, I have the same problem, I configurate correct LDAP in Administrator and I can enter in Answer with roles and folders but when I try to go Products/Publisher or when I try to access via URL http://192......:7780/XMLPSERVER, said me:
    The server can not be used due to a configuration error, please contact the administrator. If you are the administrator, please consult BI Publisher user guide for proper configuration.* oracle.apps.xdo.security.ValidateException
    Any Suggestions?
    Thanks in advance.

  • BPM Integration with Java webdynpro

    Hi All,
       I am new in BPM forum . I want to integrate one JWD DC to anather JWD (Java webdynpro) so i need to pass one value to anather Dc using BPM .
    My Scenario is..
      I want to pass one unique value from one component (person who is created the  unique value l) to anther component (to fetch that value from second level in portal ) and showing in Portal work flow  task as LEAVE Request or approval scenario .
    Thanks
    Sudhir

    Hi Sudhir,
    from your explanations it is not completely clear which of the following scenarios applies to you:
    1) Both WebDynpro Components are connected to each other via WebDynpro Component dependencies. This would mean that a user is able to directly navigate from one to the other. A BPM process is not involved at all. In this case, you might consider to use WebDynpro context mapping or passing an URL parameter.
    2) Each WebDynpro Component is assigned to a dedicated BPM Task which again is integrated into a BPM process. Users would open the WebDynpro Components as Tasks from the UWL without a direct navigation between the components. In this case, you have to use a process context and context mapping in BPM to transfer the value between the WebDynpro components.
    Best regards,
    Stefan

  • Integrating Excel with Java

    Hi,
    How can Excel be integrated with Java such that if a user is working on an Excel , my Java application should be able to capture all the events from Excel Sheet.
    I have looked into POI, but it seems to me , it can read and wriite to Excel from Java, but i would like that if a user is making changes to a spredsheet then my Java Application should be notified about those changes
    In short, i would like to expose front end of a web application in Execl!
    Is there any open source package that can help in doing the integration
    Kindly share your views/ suggestions

    jschell wrote:
    If you just want most of what is occuring in Excel only then there are probably events in the Excel API (OLE >probably) that allow you to modify and react to changes. In my experience figuring out how to do that is very >difficult even for small bits of functionality.Can u please explain a little more on this.
    Can i use JNI to listen to COM server, probaly if i create some proxies for Excel that use JNI to listen to COM Server.
    I found a link on the internet http://www.ibm.com/developerworks/java/library/j-bridge/
    This Java bridge can integrate COM objects into their applications. But i am not sure if i can capture the live stuff from an Excel file when somebody is editing it.
    Also i would like to know, what should be the best stratergy when i would like to expose the Front end of an application in Excel , since the application involves a lot of numbers and users are more comfortable with Excel interface, and the rest of the application you want in Java.
    Kindly share your views on this!

  • How to create the integration with webmethods from portals

    Hi Experts,
    I got a requirement to integrate the webmethods system from my portal server.....
    If anybody have documents kindly circulate the same to [email protected]
    Higher points will be rewarded for the each useful inputs....
    Thanks In Advance,
    Jasmine

    HI jasmine,
    For integrating webmethods you can use application integrator iViews.
    For Step-By-Step Guide to implement Application Integrator
    refre this weblog.
    Re: Integration with Java applications
    And for Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator
    refre this weblog
    Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator
    And for refrence use this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/70/5a3842134bad04e10000000a1550b0/frameset.htm
    PS: If helpful award points
    --Deepak.

  • BIP Advanced install (AS 10.1.3) for SSO/OID integration

    Hi all,
    We need to install BIP on 10.1.3.1 or later middle tier to take advantage of SSO/OID integration with parter applications(Oracle Forms in our case).
    We already have Oracle Forms and SSO middle tiers in place(not 10.1.3 but lower)... so my question is which 10.1.3 TOPOLOGY(middle tier) as described on Oracle SOA Suite 10g (10.1.3.1.0) installation guide, would give us the required 10.1.3 technology to do an advance install of BI Publisher as described in chapter 1 and 2 of [BIP 10.1.3.4 Installation Guide|http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12690.pdf] ?
    In another word... what technology portions of a 10gR3 are REQUIRED to allow us to install and associate BIP 10.1.3.4 on that middle tier and associate it with EXISTING OID/SSO and Forms middle tiers as parter applications?
    I just like to install "the smallest" 10.1.3 middle tier we need for this purpose. I am just not sure which 10.1.3 topology would give us all that BIP needs. I am hoping it's either "a standalone OC4J instance" or "an integrated Web Server and OC4J Middle Tier". These both are outlined on page 15 of OAS 10g R3(10.1.3.1.0) for [AS10gR3 10.1.3.1.0 Windows Installation Guide|http://download.oracle.com/docs/cd/B31017_01/win.1013/install/topo.htm#CHDFCAAB].
    Your thoughts/previous experinces are much appreciated.
    Yahya
    Edited by: yahfal on Dec 16, 2008 2:27 PM

    Hi Yahya,
    You can install the BI Publisher Stanadalone on the exisiting oracle application server 10.1.3.1.0 installation. To do so while running the installation of BI Publisher opt for advanced installation and on prompting enter the OAS installation directory. That will get your BI Pub up n running.
    Now for the other part of integrating the same with SSO do the following:
    1) Register BI publisher as a partner application in the Oracle SSO admin console which will generate a single sign-off url.
    2) Make the required modifications in the mod_osso.xml config file (refer to http://download.oracle.com/docs/cd/B40078_02/doc/bi.1013/b40017/T421739T475591.htm#T434806).
    3) On the BI publisher admin page go to the securities tab and opt the SSO security and enter the single sign-off url generated in the previous step.
    4) Restart the Oracle ID mgt infrastructure and the BI pub server.
    Hope this information is of some help.
    Thanks,
    Vish

  • LDAP Integration with CUCM 9.0

    We would like to use LDAP to sync all of our users from Active Directory.  All of our current CM Users are local, the problem is that they have the same user names as our Active Directory users.  From what I understand this is going to be a problem because:
    "If accounts from LDAP match an existing Unified CM account that is not marked as an LDAP synchronized account, then these accounts are ignored."
    Does that mean we will have to delete all our existing CM users in order to sync the LDAP users correctly?  Is there a best practice for this?  Once we syncronize the LDAP users how to I ensure that the user gets associated with the proper phone?  Or do I have to visit each user individually? 

    I just did a quick test for this, my lab CUCM 9 is already LDAP integrated, but I created a local user, then I created that same local user in my LDAP OU, and performed a full sync.
    The user is no longer showing as a local active user, but as an active LDAP synchronized user.
    Which was my thought, there's only one conversion, from LDAP to local.
    The behavior is just as with any previous release, local users who match an LDAP user after you enable it, are just updated, and kept with all their configurations.
    I checked the option to turn it back again into a local user, did a full sync, and it's again an active LDAP user.
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

Maybe you are looking for

  • Extra blank space in formula and summary fields

    I have a report that gives text output. In that I have 3 fields which are numeric. One of them has source as summary column- numeric 3 digits(format mask 000) and other 2 has source as formula column- numeric format mask (0000.00) Here is my problem-

  • Frustration with Pages to ePub page breaks

    Hi. I am losing my mind and hoping someone can help... I am creating a non-traditional book (a catalog) in Pages, for use in both PDF and ePub formats (for iBooks on iPad). I CANNOT get the page breaks in Pages retained when exported to ePub and view

  • Displaying Query filters on a report to print

    I would like to display the query filters that I have used in my query filters display on the report, is there any way to do this? Are you able to create a variable and populate it with the query filters?

  • Help with a password field

    I have a Flash site I'm working on that has a private login area. The login is not meant to be high security, we just want to limit access to current and potential clients who we give a password to. Here is the site in progress. What I need help with

  • Upgraded to FF 15.0 lost all my bookmarks, how can I restore them?

    running Vista and FF desktop