Authenticate BSP application using LDAP

Hi,
Thanks to Durai Raja for his earlier inputs in setting up LDAP connector in SAP. We were able to connect to our LDAP from SAP ( We use Novell eDirectory 8.5).
I also wrote a small program as below and I am getting back results from LDAP. We want to build BSP application where users would enter LDAP User ID and password and we want to Authenticate BSP application based on this input. My questions are
1) Is it possible to Authenticate BSP application based on LDAP user ID and password.
2) IF so, what is the function module to use. I searched LDAP_* but did not find anything.
3) If we authenticate using LDAP user ID and password, do we have to provide SAP User id and password in SICF and allow all users to log in using same SAP user ID and password ?
Niranjan
data: dns_out type table of ldap_dnii,
      ldapinfo type ldap_dnii,
      attrs_io type table of ldap_atii.
call function 'LDAP_SIMPLEBIND'
  exporting
    serverid = 'HQLDAP'.   " Logical Server ID set in LDAP tcode
if sy-subrc eq 0.
  call function 'LDAP_SEARCH'
    exporting
      base     = 'o=xxxxxxxx'  " Company's Base
      filter   = 'uid=xxxxxxxx'  " Novell User ID or LDAP user ID
    tables
      dns_out  = dns_out
      attrs_io = attrs_io.
  if sy-subrc eq 0.
    loop at dns_out into ldapinfo.
    endloop.
  endif.
endif.

Thanks Raja for your inputs. This is our requirement.
We have about 350 SAP Users and about 700 Novell Users (computers). We want to provide Employee Personnel Information like Vacation details, Savings/Insurance details in BSP application. But half of them cannot access because they don't have access to SAP. We cannot give access to all of them since we have only 400 licenses. So, we were thinking to Authenticate against Novell Used ID and password and show them their personnel details. We have a mapping between Novell Used ID and SAP HR Empl # and so we can easily get their information. So, we want users to authenticate using Novell Used ID and password (each Novell user ID is mapped as LDAP ID) and, if it is successful, show their personnel details.
How can we achieve this ?
Niranjan

Similar Messages

  • New BSP Application using BOL Entities!..

    Hi All,
    Is it possible to create a new (Custom) BSP application using standard BOL entities, used in ICWC?.
    I have a requirement to create a BSP application which maintain service tickets (Transactions). If I can use the BOL entities it will be more convenient for the developement. When I tried to develope a sample application using standard BOL entitity(BTOrder, BTAdminH, etc), it failed!.
    Anyone did similar developments ?. Please Help!.
    Thanks, Sudeep..

    Requirement ruled out

  • Authenticate ADF application using adf security wizard against LDAP OID

    I have an adf application which i intend to authorise using LDAP. For now , i have actually hand coded in java for authenticating the users of my application. Using JNDI I directly connect to LDAP and authenticate users. However , recently it came to my notice that i can also do that using ADF sercurity wizard , but i am unable to do so. which securing the ADF application ,no where in the wizard LDAP configuration is mentioned. do i have to change some file manually ? i have no idea on how to proceed on that.

    i have setup wls , making th OIDAuthentication as Sufficient. but i dont know how to configure from ADF side so that it can authenticate against LDAP. when i try the ADF sercurity wizard option , it tells me to create new Roles . Is there any way where i can import the ldap credentials to the security wizard ..?

  • Handling events in BSP application using WML tag Extensions

    Hello Everyone  ,
                            We are developing a BSP applications for Mobile handheld using WML tag library. I am looking for some code samples to know how we can handle evevents inside the BSP using the WML tag library.
    Can any one of  you plesae help us by placing a code snippet for handling onInputprocessing() methods (BSP Using WML Tag extensions).
    I mean to ask how we can handle events inside the BSP applications that uses the WML tag library.
    I know about how to handle BSP events using HTMLB and XHTMLB tags frameworks.
    Thanks for your help in advance.
    Thanks,
    Greetson

    Is this WML tag library something that is supplied by SAP u2013 as a BSP Extension Element?  Or are you just using WML tags directly in your layout?  I can tell you in general that if you want to generate HTMLB events from regular HTML code you can generate the JavaScript calls using the htmlbEvent tag of the BSP extension library.  However your tags have to be running within an HTMLB Content tag for this to work.
    If you want to work totally without HTMLB then you need to use the simple HTTP Post but format the input name as OnInputProcessing(<function code>) like this:
    <input type="submit" name="OnInputProcessing(ok)" value="OK">
    This will cause the OnInputProcessing event handler to trigger without needing any HTMLB tags (this is how it was done in WebAS 6.10 before we BSP Extensions).

  • E-recuitment-BSP Applications used

    Dear Experts,
    I am trying to understand the use of BSP's in E-recruitement. I am looking for materials that details the BSP's used in E-recruitment and how they are applied in E-recuitment. Any input on this would be of much help to me.
    Thanks and Regards,
    Pavithra

    Hello Pavithra,
    E-Recruiting uses the BSP technology for user interface. For E-Recruiting 300 BSP was the only user interface, with E-Recruiting 600 SAP introduced WebDynpro for candidate as an option, while for recruiters, managers and admin pages stayed with BSP. With EhP 4 WebDynpro replaces BSP for all E-recruiting applications.
    You will find all BSP applications relevant for E-Recruting in Package PAOC_RCF_UI.
    For the general structure. The very most applications are grouped on startpages for the different roles in the recruiting process (ext. candidate, int. candidate, recrutier, decision maker, ...). To get the links of these standard startpages just run report RCF_GENERATE_URLS. You can then logon to the different startpages but be sure to generate a candiate for your user first, using report RCF_CREATE_USER.
    To learn more about how the different applications are linked within the startpage check the startpage and perhaps the container sequence customizing. Keep in mind that in the IMG only the customer entries are fond. To see the sap standard delivery you will have to use SE11/SE16. E-Recruiting customizing is stored in T77RCF* tables, startpage customizing is T77RCF_SP and container sequence customizing is T77RCF_CS. If you do not get along with the table descriptions just check the technical info of the tables/views behind the IMG nodes, then look for an table named without the C at the end. also check table T77RCF_LOG_APPL.
    I hope that helps for a start.
    Kind Regards
    Roman

  • Development of BSP application using BSP_WD_CMPWB in CRM 2007

    Hi
    I am  to develop an BSP application in web client UI ( using BSP_WD_CMPWB transaction code)
    in CRM 2007could any one suggest me the tutorial i need to go through for this?
    Ajay

    Hi Ajay,
    this is the link that u can visit for BSP application
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/a7/881e3aa03ddb0fe10000000a11402f/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/7a/b86041397211d5992200508b6b8b11/frameset.htm
    If u want to enhance any component of the BSP application then these documents would be helpful
    http://help.sap.com/saphelp_crm60/helpdata/en/df/92fd2caf844d8daf890224d9761cbd/content.htm
    http://help.sap.com/saphelp_crm60/helpdata/en/51/dfdf460f464db1b483d9c2a1bcd488/content.htm
    http://help.sap.com/saphelp_crm60/helpdata/en/31/33591017f24cb68ef6ebf2ff575c2d/content.htm
    Regards
    Mayank

  • Problems with BSP application using HTTPS in EP6.0

    We developed a custom BSP which uses HTTPS protocol and HTMLB tags.  The BSP page has a date field (htmlb inputfield of type date..which allows the user to pick a date).  If I run this BSP in its own browser window, clicking on the date field will display a calendar.  However, if I run this BSP as an iView in the portal (we use EP6.0) and click on the date, I see a Javascript error message (in the browser status area) that says "access is denied" and the calendar isn't displayed.                           
    Also, this BSP is a stateful application with the portal integration flag checked.  However the DSM terminator is not invoked when I close the iView.                                                                 
    If I change the BSP settings to use HTTP, I can run it as a portal iView without any such problems.  Has anyone experienced this and/or know how to resolve it?  Any feedback would be greatly appreciated? Thanks,                         
    Pradeep

    Hi Pradeep,
    You replied that you have "I fixed the date dropdown issue by specifying the theme in iView definition", could you please let us know where to specify the theme because when i ty to create the BSP iView i never get the option for specifying the theme,your assistance would be highly appreciated,do we have any Note on this issue.
    Regards,
    Rohit Pathak

  • Loggin intp BSP applications using SAP Dialog user

    Hi,
    I used SAP - service type user to log into my BSP applications in the following way:
    ========================================
    data: usr type bapialias,
    pwd type bapipwd.
    data: return type table of bapiret2,
    wa_return type bapiret2,
    bname type USUSERNAME.
    usr = request->get_form_field( 'username' ).
    pwd = request->get_form_field( 'password' ).
    CALL FUNCTION 'SUSR_INTERNET_USERSWITCH'
    EXPORTING
    ALIAS = usr
    PASSWORD = pwd
    IMPORTING
    BNAME_AFTER_SWITCH = bname
    TABLES
    RETURN = return.
    loop at return into wa_return.
    err_msg = wa_return-message.
    endloop.
    if bname is not initial.
    navigation->goto_page( 'main.htm' ).
    endif.
    ===========================================
    From the above, i am able to log in successfully. INow i need to log in as SAP Dialog user. Is there any way where i can log into BSP where the sap users are dialog types..
    Thx,
    Rajesh

    Hey Raja,
    Thanks for ur timely suggestions.
    Now its working fine.
    I am closing this issue.

  • BSP application using classification data

    Hi, I haven't found the answer anywhere yet, so here is my question:
    I have to change a standard SAP 4.7 sales transaction VA01 using the configurator into its Web version, using BSPs.
    If I try to make it as simple as possible, will it be easy to keep the standard interaction between the classification data in the web screens ? ("if charactéristic C1 = A, then char C2 = B...")
    Thanks very much for any help !
    Jean

    Hi Dezso,
    Sorry I wasn't totally clear...
    In VA01, you can use sell a configurable product. In this case, you call up a configuration screen, which is basically a list of characteristics (from the classification system), and you assign values.
    When you do that, you can have interaction between the characteristics values.
    Now in my new project, the customer wants to do the sales on a web screen, which means using the BSPs to 'translate' VA01 to a web page.
    And I was wondering if I could keep all the behavior from the SAPGUI screen (matchcode, authorization check, interaction between the characteristics...) on the web version.
    I hope this is more clear ?
    Regards
    Jean

  • Calling a custom BSP application in CRM2007  ICWC using transaction launche

    Hi Experts,
    I created a Z BSP application in se80 which is a statefull application.Now I created a direct link in ICWC for this Bsp application using transaction launcher.
    Now my problem is that the session of this BSP remains active even if I click on some other link in the navigation bar.
    I need a way to end the session as soon as we navigate to some other link on the navigation bar.
    It would also be helpful if I just know the code for killing the session programatically.
    Helpful Answers will be rewarded!!
    Thanks,
    Ashish.

    Hi,
    I am not sure, but according to my understanding u can use CL_BSP_SERVER_SIDE_COOKIE class in ur BSP application to get refrence of ur BSP page.
    When u r in Web UI by the help of this class u can check whether u r in BSP related view or in other then view. If u r in other view then u can set runtime->keep_context = 0.
    Take help from this link for the class related info.
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
    Regards
    Gaurav

  • Enhancing standard BSP application by using WebDynpro components

    Hi all,
    We have standard BSP application delivered by SAP; we need to enhance the functionality and some new views to meet our requirement. We have planned to develop new things in WebDynpro ABAP and attach those to BSP.
    Is it good practice to use WebDynpro component instead customizing BSP application?
    If any body has fair knowledge on BSP and WDA, please let me know.
    Regards,
    Rajesh

    hi
    good
    BSP->
    It is a set of pages that represent a user interface (layout and page flow definition). The layout part of a page normally contains ABAP or JavaScript code which is inserted into the HTML structure. They can contain server-side scripting code in either JavaScript or ABAP. BSP applications use all the conventional ABAP technologies, such as Open SQL and internal tables, allowing developers to create Web pages quickly. This enables existing SAP logic, data structures, and interfaces to be directly used in Web applications.
    http://www.thespot4sap.com/Articles/SAP_WAS_BSP_Apps.asp
    WDA->
    Web Dynpro for ABAP or Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web applications in the ABAP environment. It consists of a runtime environment and a graphical development environment with special Web Dynpro tools that are integrated in the ABAP Workbench (SE80).
    Web Dynpro offers the following advantages for application developers:
    &#9679;      The use of declarative and graphical tools significantly reduces the implementation effort
    &#9679;      Web Dynpro supports a structured design process
    &#9679;      Strict separation between layout and business data
    &#9679;      Reuse and better maintainability by using components
    &#9679;      The layout and navigation is easily changed using the Web Dynpro tools
    &#9679;      Stateful applications are supported – that is, if the page is changed and the required data remains intact so that you can access it at any time throughout the entire application context.
    Note that stateless applications are not possible.
    &#9679;      Automatic data transport using data binding
    &#9679;      Automatic input check
    &#9679;      Automatic operation of the Web Dynpro application using the keyboard
    &#9679;      User interface accessibility is supported
    &#9679;      Full integration in the reliable ABAP development environment
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/content.htm
    thanks
    mrutyun^

  • Why to use htmlb elements in bsp applications

    Hi All,
       I have a doubt that why to use htmlb elements for implementing user interface in bsp applications .Implementing bsp application using htmlb is difficult than html because we have handle event triggering in oninputprocessing but this is not required in html.Can anybody help me out in understanding the advantages of htmlb over html. 
    Thanks in Advance......

    Dear Srilalitha
    Re: Why htmlb is prefered to normal html code ?
    Please go thorught this. This will surely help.
    Regards
    Vijay.M

  • How to create custom BSP application in SAP CRM?

    Hi Experts,
    I would like to seek help from you. I am new in developing CRM objects. My first requirement is to create a custom program that will generate a PDF report.
    First thing I would like to know is the transaction code where I need to create a BSP application that will be able to run in crm webclient. Please clarify if it is in BSP_WD_CMPWB or in SE80 because it is said that I should create BSP application using MVC.
    Second thing is how will I be able to call a smartforms in a BSP application. The scenario for my custom program would be, I should have a two input fields in the selection-screen which are Business Partner ID and Product Lines. together with a button that will trigger the form when ticked.
    Hope to hear from all of you. Your help will be very much appreciated.
    Thanks and Regards,
    Monica

    Hello MonicAnna,
    You can find some information on this page.
    (http://help.sap.com/saphelp_nw70/helpdata/en/59/cd7daa07d711d5b66f006094192fe3/content.htm)
    And also you dont have to use se80 to create new Bsp appliaction. You can create new application by this transaction BSP_WD_CMPWB.
    Zafer,
    Edited by: Zafer Kuru on Dec 5, 2011 10:12 AM

  • How to create downloadable pdf report as hyperlink within BSP application

    Hi,
    I'm developing a BSP application using MVC and htmlb extensions on a WAS 6.40. One of the requirements of my webapplication is:
    - the ability to generate a report in pdf format at runtime, using data retrieved from a backend SAP CRM 3.0 system
    and
    - make this report available/downloadable via a hyperlink in the application.
    I am aware of tools like Smartforms and Adobe interactive forms but need some help to get started and choose the right tool.
    regards, Roelof Jan

    Hi,
    we've done that by firstly building a RFC which prints the report to sap-spool:
    call function 'GET_PRINT_PARAMETERS'
          exporting
            expiration     = 1
            immediately    = ' '
            new_list_id    = 'X'
            line_count     = 65
            line_size      = 132
            report         = sy-repid
            no_dialog      = 'X'
          importing
            out_parameters = wf_params
            valid          = valid_flag.
        if sy-subrc ne 0 or valid_flag eq false.
        endif.
        new-page no-heading no-title print on parameters wf_params
                          no dialog .
    ... list processing ...
    new-page print off.
      concatenate programname sy-uname+0(3) into lc_rq2name separated by '_'.
      select * from tsp01 into tsp01_wa
                          where rq2name = lc_rq2name
                          and rqowner   = sy-uname
                          order by rqcretime descending.
        wf_spono = tsp01_wa-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear wf_spono.
      endif.
    Then convert the spooljob:
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid              = wf_spono
          no_dialog                = 'X'
        tables
          pdf                      = witab
        exceptions
          err_no_abap_spooljob     = 1
          err_no_spooljob          = 2
          err_no_permission        = 3
          err_conv_not_possible    = 4
          err_bad_destdevice       = 5
          user_cancelled           = 6
          err_spoolerror           = 7
          err_temseerror           = 8
          err_btcjob_open_failed   = 8
          err_btcjob_submit_failed = 9
          err_btcjob_close_failed  = 10
          others                   = 11.
      if sy-subrc ne 0.
        return.
      endif.
    Delete Spooljob and generate cached response:
      data del_spono type  tsp01_sp0r-rqid_char.
      del_spono = wf_spono.
      call function 'RSPO_R_RDELETE_SPOOLREQ'
        exporting
          spoolid = del_spono.
      if witab is not initial.
        loop at witab into itab .
          translate itab using ' ~'.
          concatenate output itab into output in character mode.
        endloop.
        translate output using '~ ' .
        create object cached_response
               type cl_http_response
               exporting add_c_msg = 1.
        l_pdf_len = strlen( output ).
        cached_response->set_cdata( data   = output
                                    length = l_pdf_len ).
        cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                           value = 'application/pdf' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        data: guid type guid_32,
              display_url type string.
        call function 'GUID_CREATE'
          importing
            ev_guid_32 = guid.
        concatenate runtime->application_url '/' guid '.pdf'
                    into display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
        app ?= application.
        app->print_url = display_url.
      endif .
    The display_url has to be used in the normal response-view:
    <script type="text/javascript">
    var param = 'width=700'
          + ',height=550'
          + ',left=0'
          + ',top=0'
          + ',menubar=no'
          + ',location=no'
          + ',resizable=yes'
          + ',status=no';
      window.open('<%= application->print_url%>', 'DRUCK', param ).focus();
    </script>

  • User validation for the BSP application

    I wanted a user to access the bsp application.
    I already have the user names maintained in the database who will be using the application.
    i am using the application class for my application.
    where should i do the user validation and how.
    i know tst if i would had used the model class then i can do it in the request method of the model class.
    but where to do it when using the application class.
    Thanks

    Hi Din,
    I assume that the usernames that are present in your Database also exists in the WAS Server.
    i.e. The database has a part of users that are present in the WAS Server.
    Your need is to allow only those users in the database to access your bsp application and not others correct!
    If your first BSP Page is a ...
    <b>View</b>
    1.In the DO_INIT method of the Corresponding Controller Class populate the internal table that is present in the Application Class with the usernames that are present in the database.
    2. In the DO_REQUEST method of the Corresponding Controller Class check for the username who runs your BSP Application is present in the Database.
    You can get the username who run the bsp application using the system field...
    data: username type string.
    username = sy-uname.
    So if the <i>username</i> is in the database show your bsp page else show an error page.
    <b>You can directly check for the sy-uname is present in the database.</b>
    <b>Page with Flow Logic</b>
    It is same as MVC only thing is that method name changes...
    Place the code in the DO_INIT of MVC in onCreate of Page with Flow logic.(Populate the internal table of the application class with the usernames from the database)
    Place the code in the DO_REQUEST of MVC in onRequest of Page with Flow logic.(Check whether the sy-uname is present in the itab or directly in the database).
    Hope it solves your problem
    Regards,
    Maheswaran.B

Maybe you are looking for