LDAP authentication in a rich client application

Hi,
Our application runs ona WLS 8.1 environment. It has a Flash client side. On WLS side, we created an IPlanetAuthenticator and now are able to see the LDAP users in myrealm / users. I went through some weblogic docs. There were info about FORM based authentication and some similar methods. Since the client side of out apps. is a rich one (FLASH) and not using form submission process, we need some different way of authentication like calling a method in my model class from a controller servlet and receive a true / false reply.
I don't know if this can be done?. Any idea, samle code etc. highly appreciated :-)
Thanks in advance and regards

You seem to be having a problem with creating an Eclipse plugin. You don't seem to be having any problem at all with Java and XML that I can see. I think you would have more chance of getting an answer if you looked over on the Eclipse site for a forum for plugin writers.

Similar Messages

  • Adding a Formview in a rich client application---urgent

    Hello,
    I am developing an XML editor as an eclipse plugin as a rich client application
    I want to add a form view to it...
    I have followed every instruction of this tutorial
    http://www.eclipse.org/articles/Article-Forms/article.html
    But the project does not run and flashes the following error
    Missing required bundle org.eclipse.ui.views_0.0.0.
    java.lang.RuntimeException: Application "test.application" could not be found in the registry. The applications available are: <NONE>.
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:68)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    java.lang.RuntimeException: Application "test.application" could not be found in the registry. The applications available are: <NONE>.
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:68)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    Application error
    java.lang.RuntimeException: Application "test.application" could not be found in the registry. The applications available are: <NONE>.
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:68)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    The application does not start once the code is added and al its references are commented
    Pl help me out...thanks...<img class="emoticon" src="images/emoticons/confused.gif" border="0" alt="" />

    You seem to be having a problem with creating an Eclipse plugin. You don't seem to be having any problem at all with Java and XML that I can see. I think you would have more chance of getting an answer if you looked over on the Eclipse site for a forum for plugin writers.

  • Ldap authentication on solaris 8 client

    I have directory server 6.0 set up on solaris 9 system. I convert a Solaris 8 system to be a ldap client. However, I can use ssh to authentication against LDAP server. Here is the output I got:
    # ssh -v user@localhost
    SSH Version 1.2.27 [sparc-sun-solaris2.8], protocol version 1.5.
    Standard version. Does not use RSAREF.
    host: Reading configuration data /etc/ssh_config
    host: ssh_connect: getuid 0 geteuid 0 anon 0
    host: Allocated local port 1023.
    host: Connecting to 127.0.0.1 port 22.
    host: Connection established.
    host: Remote protocol version 1.5, remote software version 1.2.27
    host: Waiting for server public key.
    host: Received server public key (768 bits) and host key (1024 bits).
    host: Forcing accepting of host key for localhost.
    host: Host '127.0.0.1' is known and matches the host key.
    host: Initializing random; seed file /root/.ssh/random_seed
    host: Encryption type: idea
    host: Sent encrypted session key.
    host: Installing crc compensation attack detector.
    host: Received encrypted confirmation.
    host: Trying rhosts or /etc/hosts.equiv with RSA host authentication.
    host: Server refused our rhosts authentication or host key.
    host: No agent.
    host: Doing password authentication.
    [email protected]'s password:
    Permission denied.
    This is the pam.conf I use:
    login auth requisite pam_authtok_get.so.1
    login auth required pam_dhkeys.so.1
    login auth required pam_dial_auth.so.1
    login auth binding pam_unix_auth.so.1 server_policy
    login auth required pam_ldap.so.1
    rlogin auth sufficient pam_rhosts_auth.so.1
    rlogin auth requisite pam_authtok_get.so.1
    rlogin auth required pam_dhkeys.so.1
    rlogin auth binding pam_unix_auth.so.1 server_policy
    rlogin auth required pam_ldap.so.1
    rsh auth sufficient pam_rhosts_auth.so.1
    rsh auth binding pam_unix_auth.so.1 server_policy
    rsh auth required pam_ldap.so.1
    ppp auth requisite pam_authtok_get.so.1
    ppp auth required pam_dhkeys.so.1
    ppp auth required pam_dial_auth.so.1
    ppp auth binding pam_unix_auth.so.1 server_policy
    ppp auth required pam_ldap.so.1
    other auth requisite pam_authtok_get.so.1
    other auth required pam_dhkeys.so.1
    other auth binding pam_unix_auth.so.1 server_policy
    other auth required pam_ldap.so.1
    passwd auth binding pam_passwd_auth.so.1 server_policy
    passwd auth required pam_ldap.so.1
    cron account required pam_unix_account.so.1
    other account requisite pam_roles.so.1
    other account binding pam_unix_account.so.1 server_policy
    other account required pam_ldap.so.1
    other session required pam_unix_session.so.1
    other password required pam_dhkeys.so.1
    other password requisite pam_authtok_get.so.1
    other password requisite pam_authtok_check.so.1
    other password required pam_authtok_store.so.1 server_policy
    ppp auth required pam_unix_auth.so.1
    Not sure why Solaris 8 can't authentication with LDAP server. I have applied the patch 108993-67. Also, su and telnet can work with LDAP but not 'ftp' and 'ssh'.
    Any ideas?

    No, my problem seems different.
    The authentication between ldap client and server is through tls:simple. Also, exact same configuration can work with Solaris 9 client, but not Solaris 8 client. Furthur checks on ssh on Solaris 8, the ssh is 'SSH Version 1.2.27 [sparc-sun-solaris2.8], protocol version 1.5.
    Standard version. Does not use RSAREF.'. But on a Solaris 9 client, the ssh is 'SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.' Not sure why the Solaris 8 ssh can't work with ldap authentication.
    Thanks,
    --xinhuan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • XI 3.1 Client Tools and LDAP Authentication

    I have Business Objects XI 3.1 SP2 installed.  For the web clients (InfoView) single sign on and LDAP authentication are working correctly.  However when a user tries to log in using LDAP authentication to one of the client tools (Universe Designer, Webi Rich Client, etc) the error "Cannot access the repository (USR0013)" occurs with the following details:
    [repo_proxy 13] SessionFacade::openSessionLogon with user info has failed(Security plugin error: Failed to set parameters on plugin.(hr=#0x80042a01)
    Are there troubleshooting or setup guides dealing specifically with LDAP authentication with the various client tools?

    Make sure that the File and Printer Sharing for Microsoft Networks component is installed and enabled on your clients.
    Take a look at note 1272536 (http://service.sap.com/notes)
    Regards,
    Stratos

  • Rich Internet Applications and PL/SQL

    I am developing a database framework, specifically designed to
    run on Oracle databases, to render rich client applications
    similar to what the HTP/HTF packages offer. In this case I render
    Java Swing interfaces based on stored procedures and packages.
    What I want with this is to have a Rich Internet Application (RIA)
    totally centralized on the database. Maybe something similar to
    HTMLDB but not using HTML interfaces. I am also thinking the
    possibility to create migration routines to convert our Oracle
    Forms modules to stored procedures using this framework. The only
    requirement to run this framework is to have a database and Apache
    with MOD_PLSQL. The main objectives I want to achieve are:
    - To render "rich client" interfaces.
    - To be able to dynamically create objects.
    - Low network usage, small messages.
    - Fast user interaction.
    - Small memory footprint on the client side.
    - Must use HTTP/HTTPS.
    - Run inside any standard Browser or standalone.
    - Stateless execution based on client events.
    - Events can be conditionally triggered to avoid round trips.
    - Oracle 8.1.7+ compatibility.
    - MDI/SDI capability.
    I already have a prototype working. The renderer Applet is just
    12Kb and all objects are created dynamically using "Reflection".
    The framework has an option to establish conditions for events using
    regular expressions to avoid unnecessary round trips. Performance so
    far is good even in slow networks. Of course I still have room for
    improvement in this area. The protocol was implemented in a way that
    it can be optimized by removing redundant messages. I also implemented
    a simple dictionary compression algorithm which further reduces the
    message size. We can also use HTTP compression in Apache with MOD_GZIP
    which has a very good compression factor. The renderer Applet runs with
    Java Web Start either so the user has the option to completely ignore
    the Browser. The framework will be composed of layers, from
    communication to application. In the highest layer I will offer
    functionalities available in 4GL languages like "maintain_table(x)"
    to automatically render a maintenance form of the passed table (very
    simple example). Even in this layer the developer will also be able to
    customize all aspects of the form like colors, fonts, layout managers,
    panels, etc. I am doing this in principle as a learning, private
    project. I am still thinking about best ways to organize the APIs,
    performance, security, etc. I was wondering if there is anyone
    interested in helping me, take a look in what I have done so far,
    opinions (good or bad), etc. The code I have so far can be accessed below.
    Thanks in advance for any comment.
    https://jgr.dev.java.net/

    Your links are broken. This is not a good demonstration of your web-based development skills. Obviously this means I have not been able to look at your examples. However, I will offer three comments.
    (1) Dynamic rendering of objects is liable to translate into a slow experience for the user. Anyone who's migrated client/server Oracle Forms to web-deployed Forms will know what I mean. And Oracle have put person-years of effort into optimising the rendering of their Forms applet.
    (2) Doing a GUI in Java Swing is the easy bit. The hard stuff resides in the transaction management that Forms does for us. Again the amount of effort Oracle have put into JDeveloper's ADF packages is a testament (and a warning).
    (3) I suppose you will say that are going to put all that stuff into database stored procedures. But that merely relocates the complexity rather than answering it. Furthermore a lot of the benefit users derive from rich client applications (as opposed to HTML forms) is not due to the superior aesthetic experience of using Windows widgets. Rather it is the embedded business logic (complex data validation, event triggers, etc.) which means the gets instantaneous responses to their input. That's a lot of complexity to render on the fly.
    I am also thinking the possibility to create migration routines to
    convert our Oracle Forms modules to stored procedures using this framework. Good luck!
    Cheers, APC

  • No business layer sent back from server in Rich Client

    Hi,
    Whenever user tries to open a universe from Rich Client, he gets this error while webi works fine for him. What could be the issue?
    Hi Rich Client version is SAP 4.0.6.02 same as mine and mine is working fine.
    Only this particular user is affected. What could be the issue?
    Thanks for your time.

    There are several cases for this issue to occur, as per your discussion it appears to be a user/machine specific issue
    If the issue is machine specific:
    Cause: SAP Business Objects BI Platform client tools was unable to make changes in the Windows Operating system registry due to insufficient access rights of a Windows user who used to perform the installation
    Resolution:
    Log on to the host with SAP BusinessObjects BI Platform SP04 Client tools as Windows Administrator (or a member of Administrators group)
    Launch Web Intelligence Rich Client application
    This will make entries in windows registry, further you will not get the error
    It the issue is user specific: That is this user will get the specified error across all client machines for the give scenario
    Cause:
    Insufficient rights to the user/group on Universe Connection
    Resolution:
    Login to Central Management Console (CMC) using Enterprise Administrator.
    Navigate to Connections.
    Grant User/Group 'View on Demand' Access level to the Connection on which the Universe is to be created.
    Login to the BI Launchpad with the user and create New Webi report.

  • Bachelor thesis in Rich Internet Applications

    Hi,
    First of all, sorry for my engIish.
    I don't know if this is the right section of the forum, anyway I'm going to explain my problem:
    I'm writing down a thesis about RIAs: in my intentions i want to "speak" in particoular about Java
    tecnologies in RIAs development. Before starting, I need a hand in creating an index of the topics.
    Here comes my draft:
    INTRO
    Web 2.0
    Web Infrastructure (like old style sync request, AJAX, COMET)
    Tools (donno the right name to give them, talking about XHTML, CSS, XML, JSON, and all that supports RIAs and the previuos section in general)
    SERVER SIDE
    Server (Tomcat, Glassfish)
    Servlet, JSP, JSF
    Database (JavaDB, JDBC)
    Web Services (REST, SOAP, WDSL and so on)
    CLIENT SIDE
    JavaFX
    Applet
    Java Web Start
    APPLICATION EXAMPLE
    CONCLUSION
    It is just what I have in my mind right now, it's confused and obfuscated, but still gives the idea of my organization. Or not?
    What you think about it? Anything I'm missin'? Anything out of topic, or in the wrong section?
    Thank you for any answer.

    Your links are broken. This is not a good demonstration of your web-based development skills. Obviously this means I have not been able to look at your examples. However, I will offer three comments.
    (1) Dynamic rendering of objects is liable to translate into a slow experience for the user. Anyone who's migrated client/server Oracle Forms to web-deployed Forms will know what I mean. And Oracle have put person-years of effort into optimising the rendering of their Forms applet.
    (2) Doing a GUI in Java Swing is the easy bit. The hard stuff resides in the transaction management that Forms does for us. Again the amount of effort Oracle have put into JDeveloper's ADF packages is a testament (and a warning).
    (3) I suppose you will say that are going to put all that stuff into database stored procedures. But that merely relocates the complexity rather than answering it. Furthermore a lot of the benefit users derive from rich client applications (as opposed to HTML forms) is not due to the superior aesthetic experience of using Windows widgets. Rather it is the embedded business logic (complex data validation, event triggers, etc.) which means the gets instantaneous responses to their input. That's a lot of complexity to render on the fly.
    I am also thinking the possibility to create migration routines to
    convert our Oracle Forms modules to stored procedures using this framework. Good luck!
    Cheers, APC

  • Rich client frameworks

    Hello,
    I am looking for a framework to develop rich client application quickly or easily. I have found the following frameworks:
    1. TikeSwing: I have read it is a good choice, but it has not enough documentation.
    2. SpringRCP: It can be another choice, but I think It is not matured.
    3. With EclipseRCP or NetbeansRCp.
    Anybody knows something about them? Any opinion?
    Thanks in advance.

    I also want to develop a rich client application and I decided to use NetBeans platform. The reason why I did this decision is that NetBeans IDE has a very nice templates which will guide you through the creation of your first RCP application. However, the documentation is not very good, but getting better each day...
    Hope this opinion helps.
    Miso

  • Rich client access server for data

    Hi
    I have a Rich client application and it need to access a web server via http protocol to access large amount of data.
    Any idea what is the best way to do this?
    im think of writing some server side code to generate the data object into XML files and then the client can retrieve the file. (either that or a plain text file...)
    Please advise me what is the best/common practice because this is the first time im doing this.
    thx

    XML can be a good idea, but remember that XML can bloat your data because of all the added tag information. so if you are working with large amounts of data, it can become a huge amount of data. Still you can use SAX to parse the XML on the fly in stead of parsing it into one large DOM tree structure first, which at least is efficient in the resources.
    If you can access the data in small parts, a webservice system might be a better, cleaner and more portable solution.

  • Can Eclipse Rich Client Platform embedded javaFX script?

    My application is based on Eclipse Rich Platform Application (RCP), and rcp includes the SWT_AWT bridge,
    which allows RCPs to integrate Swing components as:
    Composite swtAwtComponent = new Composite(parent, SWT.EMBEDDED);
    java.awt.Frame frame = SWT_AWT.new_Frame( swtAwtComponent );
    javax.swing.JPanel panel = new javax.swing.JPanel( );
    frame.add(panel)
    First, I create a JavaFX project, where a subclass of the Scene creates, let's look at the code:
    * Rect.fx
    public class Rect extends Scene {
    init {
    content = [
    Rectangle { width: 200 height: 200 fill: Color.BLUE },
    Text { x: 20 y: 20 content: "Greetings Earthling!" fill: Color.WHITE }
    public function run(args : String[]) {
         Rect {}
    Then, another Plug-in Project has been created a rich client application, and rcp includes the SWT_AWT bridge,
    which allows RCPs to integrate Swing components as:
    Composite swtAwtComponent = new Composite(parent, SWT.EMBEDDED);
    java.awt.Frame frame = SWT_AWT.new_Frame( swtAwtComponent );
    javax.swing.JPanel panel = new javax.swing.JPanel( );
    frame.add(panel)
    There are two lines to create the JavaFX scene to be loaded into a JFrame:
    String sceneClass = "test.Rect";
    JComponent myScene = SceneToJComponent.loadScene(sceneClass);
    The SceneToJComponent class comes from the JFXtras project.
    Its loadScene() method loads a JavaFX Scene class and returns a JComponent object,
    which can be used as a normal Swing JComponent.
    String sceneClass = "test.Rect"; // the main class of the javafx script
    JComponent theScene = SceneToJComponent.loadScene(sceneClass);
    In Rcp application, when try the load the class, this code compiling,
    running and trowing exceptionon console I have the following error:
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jfxtras/scene/SceneToJComponent
    also if this class is present in the classpath of the java project.
    Then I've tried to place this code in simple java application (not eclipse rcp) and all went ok.
    Has anyone tried to include this code in eclipse rich client platform (rcp)?
    Thanks in advance, Best regards
    Shanti

    I have download Java FX2.0 to emebed a scene in a Swing component inside a view of a rcp application, setting the classpath with jfxrt.jar.
    See the following code:
         public void createPartControl(final Composite parent) {
    SwingUtilities.invokeLater(new Runnable() { 
              public void run() { 
    jfxPanel = new JFXPanel();
    createScene();
    but my problem is unresolved, the eclipse console shows the following error:
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
         at test2zero.FxView$1.run(FxView.java:59)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at java.awt.EventQueue.access$000(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(Unknown Source)
    Has anyone ever tried to integrate javafx in eclipse rcp application ?
    Thanks
    Shanti

  • What's required to use the built-in LDAP authentication scheme

    In order to use the built-in LDAP authentication scheme in my ApEx application, do I have to have anything more installed in my oracle environment or available to us than accessible LDAP addressing? Our environment is a 10.2 database instance (Enterprise Edition) with ApEx and Microsoft Active Directory that has LDAP setup. It looks like all the DBMS.LDAP packages are in place in my database.
    I'm using something similar to the below for built-in prompts but all LDAP tests fail:
    host=ourdc1.ourdc2.ourdc3.edu
    Port=389
    cn=%LDAP_USER%,OU=Users, OU=Department,DC=ourdc1,DC=ourdc2,DC=ourdc3,DC=edu

    Hello,
    What is your name?
    I know this sounds funny but when I was starting with AD LDAP authentication I seem to remember the user name being the key. Instead of "username" I had to use "[email protected]".
    Ultimately, I created a custom package built on DBMS_LDAP as the ApEx package is really targeted for OID.
    Regards,
    Dan

  • How to use two different LDAP authentication for my Apex application login

    Hi,
    I have 2 user groups defined in the LDAP directory and I provided the DN string for apex authentication something like the below
    cn=%LDAP_USER%,ou=usergrp1,dc=oracle,dc=com
    cn=%LDAP_USER%,ou=usergrp2,dc=oracle,dc=com
    The problem is I couln't pointout both the groups in DN string, I am trying to allow both usergroups to access the application.
    Does anyone know how to define both the group in LDAP DN String ?.
    Thanx in advance
    Vijay.

    Vijay,
    I don't think you'll be able to use the built-in LDAP authentication scheme. Just create a new authentication scheme that has its own authentication function. In that function code your calls to dbms_ldap however you need. Search the forum for dbms_ldap.simple_bind_s to find examples.
    Scott

  • LDAP Authentication for Application APEX 3.2

    Dear All,
    I have created an application in APEX 3.2 for that i am using the below code for authentication all my domain users
    create or replace
    FUNCTION              "ADS_LDAP_AUTHENTICATE"
    (p_username IN VARCHAR2, p_password IN VARCHAR2) RETURN BOOLEAN AS
      c_Directory   VARCHAR2(50) ;
      c_Port        NUMBER(4);
      c_BaseDN      VARCHAR2(200);
      c_InitUser    VARCHAR2(200);
      c_InitPass    VARCHAR2(32);
      l_session     DBMS_LDAP.SESSION;
      l_success     PLS_INTEGER;
      l_attributes  DBMS_LDAP.STRING_COLLECTION;
      l_result      DBMS_LDAP.MESSAGE;
      l_userdn      VARCHAR2(2000);
      CURSOR get_authentication_dtls
      IS
      SELECT  domain_name,server_port,server_base_dn,server_principal,server_credentials
      FROM    PS_TB_SYSTEM_ADS_CONFIG_DICT;
    BEGIN
      OPEN get_authentication_dtls;
      LOOP
      FETCH get_authentication_dtls INTO c_Directory,c_port,c_baseDN,c_InitUser,c_InitPass;
      EXIT WHEN get_authentication_dtls%NOTFOUND;
      --Open initial lookup session.
      l_session := DBMS_LDAP.INIT(c_Directory,c_Port);
      l_success := DBMS_LDAP.SIMPLE_BIND_S(l_session, c_InitUser,c_InitPass);
      IF l_success = DBMS_LDAP.SUCCESS THEN
        l_attributes(1) := NULL;
        l_success := NULL;
        l_success := DBMS_LDAP.SEARCH_S(ld => l_session,
                                       base => c_BaseDN,
                                       scope => dbms_ldap.scope_subtree,
                                       filter => '(|(sAMAccountName=' ||p_Username || ')(mailNickname=' || p_Username || '))',
                                       attrs => l_attributes,
                                       attronly => 0,
                                       res => l_result);
        IF l_success = DBMS_LDAP.SUCCESS THEN
          l_userdn := dbms_ldap.get_dn(l_session,dbms_ldap.first_entry(l_session,l_result));
          IF l_userdn IS NOT NULL THEN
            l_success := dbms_ldap.unbind_s(l_session);
            l_session := dbms_ldap.init(c_Directory,c_Port);
            l_success := dbms_ldap.simple_bind_s(l_session, l_userdn,NVL(p_password, 'QWERTASDFZXC'));
          END IF;
        END IF;
      else
        return FALSE;
      END IF;
      IF l_success = DBMS_LDAP.SUCCESS THEN
      CLOSE get_authentication_dtls; /* Close cursor before returning */
        RETURN TRUE;
      END IF;
      END LOOP;
      CLOSE get_authentication_dtls;
       RETURN FALSE; /* if the success has not happened till all servers processed, then return FALSE */
    EXCEPTION
      WHEN OTHERS THEN
        RETURN FALSE;
    END;
    Now i dont want to allow all the domain user to access my application. So we planned to create a user group in active directory.
    Can anyone suggest me how to allow only a set of users to access my application using LDAP.
    Thanks in Advance.
    Cheers,
    San.

    Use the below link for Ldap Authentication
    LDAP (MS AD) Group Authentication

  • Client Side Rich Internet Applications in Java. Do we have support for it ?

    What about the use of Java EE technologies on client-side ? The Java EE 5 specification lists different technologies: servlet, JSP, JSF, EJB, JTA, JDBC, JPA, JMS, JNDI, JavaMail, XML processing, JCA, JAAS, web services, JMX...
    Almost all of them are used on the server side. What about building applications on the client side ?
    Is Sun thinking too much hardware these days ? Why is that most of the products come out of 3rd party vendors like apache for instance ?

    There's your fundamental problem... We KNOW from bitter experience that rich client app are NOT scalable. The world simply doesn't work that way.
    Architecture starts from the foundations and works up. Computer systems achitectures start from the server and work out... We're just not out there yet dude.
    My crystal ball says that within 20 years computers will be sooooo freeken fast that "scalable" really won't be an issue any longer, except for worldwide realtime massive transaction rate systems (like VR role playing games)... so enterprise solutions will naturally migrate back towards the desktop.
    In the meantime the kids are having fun on the desktop and us "boring backend people" collect $40 million dollars in twenty minutes with rock-solid server-side solutions. Horses for courses. Watch for pitch reports.

  • Rich-client Java application that is client to WLS6.1 but behind corporate proxy server

    We have a rich-client Java application that is a client to WLS6.1 that can't
    connect to the WLS6.1 server when the client is behind a corporate proxy
    server. What is a remedy for this?
    Thanks,
    Jim Weavere

    Found solution. Followed Part 2 of the solution as explained in http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=wlw/S-19283.htm
    What surprises me is that this solution to a common problem is hidden and hard
    to find. If I am correct, no part of WLS 8.1 documentation suggests this. Rather
    the doc says, set the system properties for the standard JDK 1.4 network properties
    and it should work fine. If it is actually supposed to work like this, is it a
    bug then?
    "Naveen Kumar" <[email protected]> wrote:
    >
    Hi,
    I have a web application deployed on WebLogic server 8.1 sp1. And my
    server is
    behind a http proxy server. Now one of the components in the application
    makes
    a web service call to a service located external to the system, and it
    always
    throws "java.net.UnknownHostException". I have set the Java system properties
    http.proxyHost = my proxy server, http.proxySet = true and http.proxyPort
    = 80
    and it still does not help.
    If I try to evaluate the web service component as a stand alone client
    using WebLogic's
    webserviceclient.jar, everything works fine. I can't figure what I have
    to do
    to get this component working from within the WebLogic server. Can anybody
    provide
    me with inputs, comments or suggestions.
    Naveen.

Maybe you are looking for

  • Optical Drive reads some DVD's, but also ejects some - help

    I just had a DVD made from an old video tape, put it in my MBP superdrive, it played just fine. I left it in the drive and the next morning when I woke up the computer, the DVD spun and then ejected. Since then it won't load at all. I've tried other

  • Embedded audio in PDF doesn't work

    Hello, I have a PDF-file with embedded MP3-files. I am up-to date with the latest versions of adobe reader and flash player. I just updated the software, even restarted the computer. But the audio in my PDF doesn't play..nothing clickable... I am usi

  • Plug-in without Menuitem/Tool-button

    Hi, I want to implement a plug-in for which i don't want to add any Menu/toolbutton, but when the acrobat is launched it has to perform the operation which i assign to the plug-in(say, if i set a different action to a mouseclick for a link). Is it po

  • NW 7.01 SR1 SP3 ABAP Trial Version W/ EHP1 for NW  CE7.1 Preview Version

    Hi, I see the software components for BI Java (BIWEBAPP, BIREPPLAN, BIIBC etc...) are NOT available under CE7.11 Whether BI Queries are not supposed to be available through CE7.11? Thanks, Siva Edited by: Sivarama krishna Reddy on Jul 1, 2009 9:14 AM

  • Macbook Air 11" 2012 screen failure?

    Wondering how many others have had problems with screen failure on this particular model?  I purchased march of 2012.  I read elswhere that they were having issues with displays that were not Samsung brand.  I just had to pay to replace at 16 months;