LDAP Connection and simple search (Portlet)

Hi,
Is there a simple example for a portlet that does a simple bind to LDAP and does a LDAP-lookup
I know about JAAS-example, but any more barebone examples?

http://forum.sun.com/jive/thread.jspa?threadID=96963&tstart=0 ...
you will find similar question in here.

Similar Messages

  • Simple Search Portlet

    I am working in Portal 3.0. I want to create a small portlet on a page that returns one record. I want the user to input a bind variable and have the result returned to the same window with a reset button that will refresh to a new form...all within the same portlet window. What component should I use?

    You will create a page and place on the page two portlets. This example will only work if you place the portlets on a page. One portlet will be a simple form that will ask a user for some input that will be sent to the report through the URL. Once the user clicks the button, the portlet will call the page that it's on and append to the URL the information typed by the user. The report on the page will read the url and output the results on the same page.
    One way to create the simple input portlet:
    1. Create a form against a table.
    2. Create the form against the dual table
    3. The next screen will be the typical buttons and one field called dummy. Delete all buttons and the field until you have nothing. Create one input field, "Search Criteria" and one button called, "View Results", or something like that.
    4. One you have one field and one button, finish the page to save the results. Then edit the page.
    5. The input field can be anything like a combo box or a straight input field.
    6. The button's onclick event include callWindow(); //
    7. Do not forget the "//" this comments out the doSubmit. You don't want to have the page sent to the server.
    9. In the form text header section include the javascript function:
    function callWindow()
    var form = document.forms[0];
    var search_criteria = form.elements["FORM_PT_PACKAGE_SEARCH.DEFAULT.SEARCH_CRITERIA.01"].value;
    window.location = ("http://faweb.oraclecorp.com/servlet/page?_pageid=485,1051,497&_dad=faweb&_schema=FAWEB&a.search="+search_criteria);
    </script>
    The JavaScript will need to be tweaked for your specifics. But window.location calls intself with the appended &a.search="+search_criteria.
    The report:
    The SQL statement like usual in the where section here is an example:
    lower(a.tracking_num||a.name_loc||a.sender) like lower('%'||(decode(faweb.wwpro_api_parameters.get_value('search','a'), null,'zzzzz',faweb.wwpro_api_parameters.get_value('search','a')))||'%')
    What is important is:
    wwpro_api_parameters.get_value('search','a')
    This procedure (probably in portal schema) will read the URL and find anything that is a.search. If found, it will return the value assigned to a.seach. This value will then influence your select statement to give you the desired results. Lookup wwpro_api_parameters on google and you'll find http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/wwpro_api_parameters.html
    This documentation is great.
    Hope this helps.
    Tom

  • My new tablet will not connect to my Wi-fi from the jetpack. It says it has poor connection and constantly searches for IP address. Even though my signal strength is excellent and all other devices I own have no trouble connecting to the Wi-fi. How do I f

    @

    Want to try asking your question again?  It looks like you posted your entire question to the "title" area by accident.  Titles are supposed to be short and sweet, they also come with a character limitation.  Now we cannot see your entire problem

  • Difference between connection pooling and simple connection

    Anybody please tell me what is the Difference between connection pooling and simple connection and also where we define connection pooling and how.
    Thanks
    Please reply soon
    amitindia

    Creating and closing connection to the database is a relatively slow process. Equally connections use database resources so you can't just open as many as you want.
    A connection pool maintains a number of open connections throughout the lifetime of the application. Instead of opening and closing the connections your application just "borrows" them from the pool when they're needed.
    If the pool runs out of connections it will usually create new ones as needed until you reach some predefined upper limit.
    A good connection pool will also manage connections which have failed for any reason, and report code which fails to return connections to the pool (ie connection leaks).
    The number of connections created at startup is referred to as the "low water mark" and the maximum number that the pool will allow to be opened at any given time is the "high water mark". If no connections are available client code will generally block until one is released.
    If by "defined" you mean where can you get a working implementation then your database or application server vendor is likely to provide one. Also the Apache Jakarta Commons includes [url http://jakarta.apache.org/commons/dbcp/]an implementation which you can use with any JDBC driver.
    Dave.

  • I have a Mac notebook and it says it's connected to wifi, but when I try to connect to any search engine it does not.  What is causing it to not actually connect.  My pc connects no problem.

    It seems that all apple products used in my house at times will not connect to our wifi.  It's hit and miss.  It says I am connected, but when you try to connect to any search engine it does not.  I have disconnected and reconnected the power to the dsl provider and to our wifi units.  I have rebooted the computers.  I have reentered the password.  Still no connection.   We do not have connectivity issues with our PC products.  Anyone have any answers for me?

    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    I'm afraid you'll have to get the phone serviced, dropping the phone must have damaged additional parts inside the phone.
    But Apple will not service the phone anymore, opening the phone and replacing the battery should only be done by authorized personal, not by users.
    You'll have to look for a 3rd party repair shop and see if they can fix this, sorry.

  • How to disable SSLv3 and keep only TLS for LDAP connection.

    Hi,
    I'm planning to keep only TLSv1.2 for LDAP connections.
    I tried to set LDAP_OPT_SSL_INFO in LDAP Session Options using a SecPkgContext_ConnectionInfo Structure with dwProtocol SP_PROT_TLS1_2_CLIENT(as described here -  https://social.msdn.microsoft.com/Forums/en-US/7544226d-97e1-4dae-a377-e382c2281e91/how-to-set-up-tls-in-ldap-connection?forum=vcgeneral),
    but it returns LDAP_PARAM_ERROR.
    I tried to call this function directly after ldap_sslinit/ldap_init and before ldap_connect() - without success, I tried to use other parameters with default values, I tried to initialize them by 0/other possible values - and also no success.
    How I can do this?
    Thanks for your advices.

    LDAP_PARAM_ERROR
    https://msdn.microsoft.com/en-us/library/aa367026(v=vs.85).aspx

  • Simple Examples of data connectivity and transfer of data from an .asp.vb to javascript in an .aspx file

    What forum might be useful in solving this issue:
    Simple Examples of data connectivity and transfer of data from an .asp.vb to javascript in an .aspx file

    They'll help you here in the Microsoft ASP.net forums.
    http://forums.asp.net/
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Hide and Display submit button on the Simple search page.

    Heading 1: h1 Hide and Display submit button on the Simple search page.
    I'm trying to set the enabled property of the submit button on the simple search page. The business case is to disable the button if the VO has not returned any rows.
    The Submit button is on the page button bar.
    regards
    Abhi

    Hi,
    I have already added this in my ProcessRequest, the issue I am facing is it the submit button is disabled while I load >the page which is fine. but when I do a search and the query returns rows still the submit button is disabled.---Will nt reuired SPEL here..
    ---On go button click setsession value.
    Follow below steps:
    CO PR:*
    OASubmitButtonBean continueBtn=(OASubmitButtonBean)flowLayout.findChildRecursive("continueBtn");
    if(continueBtn != null && "D".equals(oapagecontext.getSessionValue("Flag"))
    continueBtn.setDisabled(false);
    else if(continueBtn != null )
    continueBtn.setDisabled(true);
    CO PFR:_
    if(pageContext.getParameter("Go") != null)
    oapagecontext.putSessionValue("Flag","D");
    Regards
    Meher Irk
    Edited by: Meher Irk on Mar 22, 2011 7:48 PM
    Edited by: Meher Irk on Mar 22, 2011 7:48 PM

  • Connect with ldap.ora and sqlnet.ora

    Hi
    I am trying to connect Raptor to 9i oracle server. Our server connects using ldap.ora and sqlnet.ora files. I looked at some threads about this issue but do not understand how to connect. Is there a step by step instruction for connecting this way?
    Thanks
    DH

    Hi VRamirez,
    That's a pretty cool workaround. I'm sorry to hear it didn't work perfectly.
    Here is the "low tech" workaround anyone can use -
    From the %ORACLE_HOME% where your sqlnet.ora is, run %ORACLE_HOME%\bin\tnsping eg.
    C:\> tnsping oracle.world
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-APR-2006 22:56:31
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    c:\oracle\oracli92\network\admin\sqlnet.ora
    Used LDAP adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(SOURCE_ROUTE=OFF)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.xxxx.xx)(
    PORT=xxxx)))(CONNECT_DATA=(SID=ORCL))(SRVR=SHARED))
    OK (200 msec)
    C:\>
    Now copy the (DESCRIPTION=...) and paste it into the advanced TNS info tab in the Connections dialog. This works for me for everything but RAC TNS aliases which have load balancing and failover configured -- the advanced TNS info tab chokes on those. For such connections, I was able to use the JDBC string.
    -Natalka
    http://toolkit.rdbms-insight.com

  • I can't download the latest update and my phone loses WIFI all the time.  When I try to connect and put in my password,  It just keep searching and searching.

    I can't download the latest update and my phone loses WIFI all the time.  when I try to connect and put in my password, it just keep searching and searching.

    You can download the latest iTunes (version 11) here:
    http://www.apple.com/itunes/download/
    If you just want to stay with version 10, you can get 10.7 here:
    http://support.apple.com/kb/DL1576

  • I renewed my battery and now can't get signal its constantly searching and antenna is connected and getting wifi told to factory reset my phone but can't as find my iPhone won't turn off even with my password any help pls

    i renewed my battery and now cant get signal its constantly searching antenna is connected and getting wifi told to factory reset my phone but cant turn off find my iphone to reset even with my password pls help

    If you need to restore your phone but can't turn off Find My iPhone, you'll have to force it into recovery mode in order to restore it, as explained here: http://support.apple.com/kb/ht1808.

  • My TV was broken after cable connect and TV channel searching

    My Thoshiba 40U TV does not turn on after I received from 1st owner and repair shop. 
    I checked many possible causions ( Overcurrent, damage during delivery, etc.)
    I found that My TV was broken after cable connect and TV channel searching.
    The repair shop gave up and suggested to refund money.
    Maybe I have to buy new one.
    I want to know why the TV is broken. Have you heard that TV is broken after TV channel searching?

    My Thoshiba 40U TV does not turn on after I received from 1st owner and repair shop. 
    I checked many possible causions ( Overcurrent, damage during delivery, etc.)
    I found that My TV was broken after cable connect and TV channel searching.
    The repair shop gave up and suggested to refund money.
    Maybe I have to buy new one.
    I want to know why the TV is broken. Have you heard that TV is broken after TV channel searching?

  • Ldap connection with weblogic console and authentification with java

    Hello,
    I want that my web application use ldap authentification for users and that all parameters (host, port, base, ...) are configured by weblogic console.
    I managed to do it by security-->realms-->.... , but now, I want to perform authentification in my java code.
    I don't know how realized it because I don't know how use my ldap connection in java code without redefine parameters into my code...
    can anyone help me please?
    thanks a lot for your help.

    Hey,
    on a windows server system you have to put the target system CA Certificate in the local Trusted System Certificate Store of Microsoft Server. Then the connection should work.
    On a Java System you have to put the CA in the Key Storage of the SAP System.
    I think on Unix you could use the SAPCRYPTOLIB to place the CA in  the abap system.
    Kind regards,
    Sven Walter

  • Firefox on Shaw Cable Internet cannot connect to google services such as gmail and google search.

    Called two associates and tried on two different Shaw connections at two different locations. No one can connect to Google searches on Shaw Cable internet in the Surrey, BC area using Firefox. It works with internet explorer and chrome.
    Is Google doing this on purpose to get more chrome users?
    Receiving following error:
    Secure Connection Failed
    An error occurred during a connection to www.google.ca. SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long)
    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.

    Hi GaryGS, that change limits Firefox to using the SSLv3 protocol, when normally Firefox would upgrade to TLSv1 if the site supports it. I recommend trying to switch it back tomorrow or the next day for stronger secure connections once Shaw's issue is resolved.

Maybe you are looking for