How to get user information from ldap - bpm11g

hi all,
i need know how to do get information from ldap, but using adf bean for show user data in adf form.
anyone knows about this ?
tks.

Neal wrote:
>
Hi,
I am using WLS default authentication to protect my JSP pages. Can someone tell
me if it is possible to add more fields to the default login box (in addition
to login and password boxes, I want to ask user the department name). In additional,
can WLS propogate this information (department name) along with other security
credentails to other J2EE components such as EJBs? In my EJBs I want to be able
to get the department name that user provided during login and then use that for
conditional business logic.
Any insights on this subject will be greatly appreciated.
TIA,
-NealYou can't do this with the default simple authentication. That can only handle a
username / password combination.
You should be able to do this with JAAS. You could write a LoginModule that
populates the department as a Principal or public Credential on the Subject in
addition to the normal authentication. You would have to do a callback handler
that passed through the department info to it.
This link has more on WLS's stab at JAAS:
http://e-docs.bea.com/wls/docs61/security/prog.html#1039659
Once you have associated the Subject with the access control context by invoking
a doAs() you should be able to get it back at any point with
Subject.getSubject(AccessController.getContext()) to get access to the
department info.
It will all be a bit of a chore, mind.

Similar Messages

  • How i get user info from ldap using java after authenticating user with SSO

    Hi
    I have one jsp/bean application as a partner application with SSO.
    It works fine.
    Now i need to get other attributes of user from LDAP who has logged into the application through SSO.
    using SSO java APIs i only get username, userDN, subscriber info.
    To get user's other attribute i have to user LDAP APIs for that i have to create on Directory Context, for the same i need userpassword.
    so here i my question, how do i get user password after he has logged in thro SSO.
    regards..
    and thanking u in advance
    samir

    Valentina,
    there's no way to get the password value from the directory (it's one way). Of course you can get the hashed (MD4,MD5,SHA-1) base64 encoded value (i.e. the value you see in OiD) but not the 'password'.
    --Olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to get user attributes from LDAP authenticator

    I am using an LDAP authenticator and identity asserter to get user / group information.
    I would like to access LDAP attributes for the user in my ADF Taskflow (Deployed into webcenter spaces).
    Is there an available api to get all the user attributes through the established weblogic authenticator provider or do i have to directly connect to the LDAP server again?
    Any help would be appreciated

    Hi Julián,
    in fact, I've never worked with BSP iViews and so I don't know if there is a direct way to achieve what you want. Maybe you should ask within BSP forum...
    A possibility would be to create a proxy iView around the BSP iView (in fact: before the BSP AppIntegrator component) which reads the user names and passes this as application params to the BSP component. But this is
    Beginner
    Medium
    Advanced
    Also see http://help.sap.com/saphelp_nw04/helpdata/en/16/1e0541a407f06fe10000000a1550b0/frameset.htm
    Hope it helps
    Detlev

  • I am new to Mac Pro but am purchasing one online.  can anyone tell me how to get the information from my Toshiba onto the Mac.  there are no stores in the state I live in.  Do I need to find a location and will they do a transfer from my I Tunes etc?

    I am new to Mac Pro and am purchasing one online  tonight.  Can anyone tell me how to get my information - Itunes, photos, and videos transferred onto the Mac from my Toshiba.  the state I live in doesn't have an Apple store but I could take it to Minneapolis when I go.  Any ideas where to begin?

    You might profit from a visit to a Minneapolis Apple store. With a brand new Mac, I think they will be most helpful - not just with transferring files, but with other advice as well. And I strongly recommend you invest in a back up drive. The Apple folk can help with that as well.

  • How do get the role from ldap session.

    i am using the follwing getting the role from the request in openldap and j_security_check:
    f(request.isUserInRole("manager")){
    how can i use this in the session:

    You might wanna change permissions for that attribute ...
    Change it from Admin to OWNER and you should be able to then get it for any user ...
    HTH ..

  • How to Get Additional Info from LDAP

    I have an application that is using LDAP authentication. Its working great but I would like to know if its possible to extract additional information about the user at the the point of authentication. For example when the user logs in and is authenticated it would be nice to be able to get their email address, phone, etc. at that time. Is this possible with the existing authentication scheme? I didn't see anything mentioned in the Help text.
    Thanks.
    David

    Tom,
    Have a look at the code I posted in this thread -
    Re: help with htmldb_ldap.is_member function
    Whilst that thread is more related to using the is_member function, the code I posted shows how you can query the attributes for a particular DN in an LDAP server.
    So....I don't want to put the cart before the horse, but if it helps your case to make Apex (as it's known now rather than HTMLDB) "the winner", then I would stress that this feature is definitely achievable (but how difficult it is will depend on your exact requirements).
    In short....definitely do-able....

  • Lost all data. How to get back information from iCloud.

    Hello everyone! My iPhone updated itself and deleted all my messages, mailbox, what's app. I guess it happened because I had got a new iOS7  before. How can I get back all information using iCloud? Would be great if you help to find a solution! Thank you!

    Did you try ...
    Settings - iCloud - login to your account ?
    by default it should get back all your info saved there.

  • How to get user information in a standalone java class

    Is there a way to retrieve it in a stand alone java class (with no access to request object)? If so how do I get it?
    Thanks,
    Deepak

    Hi
    use this
    IWDClientUser currentUsers[]=WDClientUser.getClientUsers();
              //Displaying the count of logged on users
              wdComponentAPI.getMessageManager().reportSuccess("Number of logged on Users in the portal - "+(currentUsers.length-1));
              for(int i=0;i<currentUsers.length;i++){
                 if(currentUsers<i>!=null){
                     // Displaying the logged on users;
                     if(!currentUsers<i>.getLastName().equals("Guest")){
                          String first= currentUsers<i>.getFirstName();
                          wdComponentAPI.getMessageManager().reportSuccess("User - "currentUsers<i>.getFirstName()" "+currentUsers<i>.getLastName());
        //@@end

  • How to get the information from the previous JSP

    Hi,
    I have two jsp files, first.jsp and second.jsp, I get a value of fileName from first.jsp, how can I get the value of fileName in second.jsp??
    <%
    String fileName = null;
    MultipartRequest multi = new MultipartRequest(request , saveDirectory , maxPostSize );
    Enumeration upLoadFiles = multi.getFileNames();
    while (upLoadFiles.hasMoreElements()) {
    String name = (String)upLoadFiles.nextElement();
    fileName = multi.getFilesystemName(name);
    String contentType = multi.getContentType(name);
    if (fileName != null) {
    out.println("<font color='red'></font><br><br>");
    out.println("Filename "+fileName+"<br>");
    out.println("content type "+contentType+"<br>");
    out.println("content "+fileDescription+"<br><br>");
    response.sendRedirect("second.jsp");
    %>
    Thanks,
    ED

    Put the parameter in the url itself like:
    String url = "second.jsp?filename="+fileName;
    and then
    response.sendRedirect(url);
    Hi,
    I have two jsp files, first.jsp and second.jsp, I get
    a value of fileName from first.jsp, how can I get the
    value of fileName in second.jsp??
    <%
    String fileName = null;
    MultipartRequest multi = new MultipartRequest(request
    , saveDirectory , maxPostSize );
    Enumeration upLoadFiles = multi.getFileNames();
    while (upLoadFiles.hasMoreElements()) {
    String name = (String)upLoadFiles.nextElement();
    fileName = multi.getFilesystemName(name);
    String contentType = multi.getContentType(name);
    if (fileName != null) {
    out.println("<font color='red'></font><br><br>");
    out.println("Filename "+fileName+"<br>");
    out.println("content type "+contentType+"<br>");
    out.println("content
    nt "+fileDescription+"<br><br>");
    response.sendRedirect("second.jsp");
    %>
    Thanks,
    ED

  • How to get log information from database server?

    Oracle 9.2 in Unix
    we got blocking error in the production database last midnight for 40 min and nothing was being processed during that time which delayed our production night batch process. Then it was gone after 40min. I like to know what was happening during that time in the database. My question is where I can find error in the database server? In bdump? Appreciate any ideas.
    Thanks
    S.

    If you have jobs regularly collect statspack report, then it will be easier to troubleshoot. You can just pull the report from the time period.
    A couple of things you can check if there's any storage issue during the time, like some backup or other jobs running taken all OS storage, so Oracle hung because no space to archive logs. Usually this will log errors in alert.log but if bdump destination also full, the error will not be logged.
    Check OS activity during the time frame, what's CPU and IO activity. See if you have sar installed and configured
    check OS message file.

  • Is there a link that demonstrates how to get the information from the forms into a database?

    I have set up a form for a client's web site and I don't want the client to have to deal with a vast quantity of emails each with the form entries. I want the information to go directly into my client's database and I didn't want to use Business Catalyst. Let me know which database program would be the best for them to use. Preferably Mac.

    Hi David,
    There is a similar thread live with us , you can follow the Database of Form Entries
    Hope that works
    Thanks
    Prabhakar Kumar

  • Getting user name from sopa header

    How should get user name from soap header in my udf...?i searched in sdn,but not get exact solution...

    I din't get this with SRemoteUser
    1. i've enabled " Do Not Use SOAP Envolope"
    2.Enabled ASMA
    3.Variable Transport Binding .
    used the following code as well:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey user = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
    conf.get(user);
    But not value in it.. Correct me if iam wrong..

  • How to get a formula from the user from a text box in a webpage

    Hi. I would like to know how to get the formula from the user who enters in a textbox. This formula can have any number of variables starting with a and goes on.
    The complexity of the formula can go upto sin, cos, ln, exp. Also user enters the minimum and maximum values of these variables. Based on a specific algorithm (which I use) I would calculate a *set of values, say 10, for each of these variables, substitute in the formula and based on the result of this formula, I select ONE suitable  value for each of the variables.
    I don't know how to get this formula (which most likely to be different each time) and substitute the values *which I found earlier.
    Kindly help me out in this issue.
    Thanks

    The textbox is the easy part. It's no different than getting a String parameter out of an HTTP request.
    The hard part is parsing the String into a "formula" for evaluation. You'll have to write a parser or find one.
    Google for "Java math expression parser" and see what you get.
    Or write your own with JavaCC.
    %

  • My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    https://discussions.apple.com/message/16371308#16371308

  • I need reset my security information, I offered my user name and password is correct bout I can't get the information from your website in my email. So that I can't buy new app pay my money.

    I need reset my security information, I offered my user name and password is correct bout I can't get the information from your website in my email. So that I can't buy new app pay my money.

    Hi,
    Which website your are using to update the Adobe Flash player? No Adobe website ever ask for any id and password to update the flash player.
    If you are using MAC machine and its the password prompt while installing update that you are talking about then please follow What userid & password do I need to install Flash Player?
    -Varun

Maybe you are looking for

  • Calculo de Lucro Bruto

    Acabamos de iniciar a utilização do SAP B1 e acreditamos que as funcionalidades que permitem ter o lucro bruto dos pedidos de venda e cotação imediatamente é bastante interessante. Todavia, no nosso caso, o cálculo do sistema não abate os impostos in

  • Fi-sl totals and line items

    dear experts, i have timestamp generated for actuals line items table for fi-sl. i also have the totals summary table but it has no timestamp. i like to find out how can i compare records for the 2 tables given that timestamp is not present in totals

  • Creation of PO using BAPI_PO_CREATE1 without info record

    Hi, I am making a  progrma to create the PO using BAPI_PO_CREATE1 but for the materials for which info record is create din the system it is creating the PO properly but for the materials for which info record is no there even I am giving the Price a

  • I need to download page maker 7.0

    I need to download page maker 7.0.  I was told to go to https://www.adobe.com/support/products/pagemaker.html but it is not the.  I have gone to your ftp site and downloaded pm07eng.exe but it will not execute.  We are trying to uninstall Page Maker

  • How to capture frames in Premier Pro to edit in Photoshop with correct aspect ratio.

    I am using Premier Pro and Photoshop CS5 in Creative Studio CS5.  I have read and understand several help articles on square and rectangular pixels used for various video aspect ratios.  I am using the camera button on the bottom right of the Program