How to use External GSSAPI implementation? (SAP's gsskrb5.dll)

Hi all,
This is a request for help and/or tips (or any information that might bring me closer to a solution).
Java has a standards compliant implementation of Kerberos for the GSS (Generic Security Services) API. However, Windows is not standards compliant out of the box, and requires a Registry setting to work ("allowtgtsessionkey"). That Registry setting degrades security.
Instead of Java's default Kerberos implementation, I am looking into using an Open Source implementation of GSSAPI that talks to Windows in the way Windows expects, through Windows SSPI (Security Support Provider Interface). That implementation is called gsskrb5.dll and is a native Windows library: ftp://ftp.sap.com/pub/ietf-work/gssapi/gsskrb5/
Does anyone have any tips on how I need to go about getting Java to use the external GSSAPI implementation (gsskrb5.dll) instead of its own internal one?
So far, I have concluded the following:
* I create a mechanism like this: Oid mechanism = new Oid("1.2.840.113554.1.2.2"); //specifies Kerberos, and is what gsskrb5.dll's author says is the correct Oid.
* I call org.ietf.jgss.GSSManager.getInstance().createCredentials() with the above mechanism, but that fails for different reasons.
* I beleive there is a problem with gsskrb5.dll not being used at all.
* Just loading gsskrb5.dll with System.load() or System.loadLibrary() is not enough.
* I think I need to either use one of the following, or create an alternative implementation that wraps gsskrb5.dll:
** sun.security.jgss.SunProvider
** sun.security.jgss.wrapper.SunNativeProvider
It would be nice if I don't have to implement a JNI wrapper for gsskrb5.dll (even using JNA which seems good enough). If there is any way I can just "plug in" the correct configuration if Sun's classes are prepared for using an external implementation, would make me happy :))
What do you guys think??
Hugo Josefson
+46 706 902 228
www.jayway.com/opensource
Founders of Öredev and Qi4J

Hi Maurizio,
i do it in this way:
CONSTANTS: CMD_LS(50)   VALUE 'ls -al /transfer/sap'.
  DATA: BEGIN OF ITAB_LS OCCURS 0,
          LINE(200),
        END   OF ITAB_LS.
  CALL 'SYSTEM'
    ID 'COMMAND' FIELD CMD_LS
    ID 'TAB'     FIELD ITAB_LS-SYS.
How do you write the file, via an UNIX-COMMAND than try the above call
with your command.
Another way is to write the file via OPEN DATASET ..., TRANSFER ... TO ..., CLOSE DATASET.
If you mean this i can give you an example.
Hope it helps.
Regards, Dieter

Similar Messages

  • How to use IF Conditon in SAP Scripts?

    Hi Guys,
                   I am having adoubt how to use IF conditon with multiple variables in SAp Scripts
    for ex If a>b and a>c and a>d
             Elseif b>a and b>c and b> d.
             Elseif .....
              endif.
              How to use above example in SAP Scripts.
    thanks,
    Gopi.

    hi Gopi,
    it is almost the same as normal ABAP, you only have to use & before and after the variable and the variable has to be in capitals and you have to make the line as command ( /: before the line )
    IF &A& > &B& AND ...
    text to print
    ELSEIF ...
    text to print
    ENDIF.
    hope this helps
    ec

  • How to use the Variants in SAP Transportation and what is its use ?

    Hi experts,
    How to use the Variants in SAP Transportation and what is its use & How to create a variant in SAP ?
    Can anybody answer this ?
    Regards,
    Shakti

    Hi,
    If you are asking about "slection vairants" in SPRO settings of "shipment cost document" then
    When it is activated,
    each user can have his own slecetion  and list criteria for
    1. List shippment costs:calculation
    2. List shippment costs: settlement
    This can be directly saved from VI01 screen by the user.
    from environment> lists
    This is user specific only.
    Hope this helps.
    Regards,
    Sharan

  • How to use perform statements in sap scripts

    how to use perform statements in sap scripts . and pls send me one progam for this
    thnaks
    raja

    Hi Raja,
    <b>PERFORM</b> key work is used to include subroutine in sapscript form...
    But the processing is lttle bit different form the one we use in ABAP.
    Here the paramters passed to form is stored in internal table of name-value table. there are two table one for inbound parameter and other for outbound parameters.
    Check out the example below to see how this is used..
    <b>Definition in the SAPscript form:</b>
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    <b>Coding of the calling ABAP program:</b>
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY ‘PAGE’.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY ‘NEXTPAGE’.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY ‘BARCODE’.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = ‘|’. "First page
    ELSE.
    OUT_PAR-VALUE = ‘||’. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = ‘L’. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Hope this is clear to understand...
    Enjoy SAP.
    Pankaj Singh.

  • How to use external hard drive and iTunes together?

    how to use external hard drive and iTunes together?

    Yes I did get to that part.... I went trough external to retrive itunes folder... When I selected the folder, it said that it was locked, choose another folder... I then went to my external again to my itunes folder and and used command I to see if folder was locked and it wasn't.... it was suggested on another forum to reboot.. which I did and still same problem... All I want to do is link my external hard drive that has my itunes playlist from another Mac to my new one.. and to also use the external as the main source for adding new songs to my playlist...

  • How to use external Java API in Java Embedd inside BPEL

    How to use external classes inside the BPEL in Java Embed Activity ? Any sample code availble ? Like i want to use log4j API inside BPEL.

    No you dont have to change your startManagedServer.cmd/.sh everytime you need to have a Java Embedding activity. You only need it in case of using Log4J. As log4j requires a configuration xml viz log4j.debug.xml and log4j.dtd you need to let the soa managed server know about it. The best way to load this configuration files is using the JAVA_OPTIONS command during server startup.
    Hope the explanation helps.

  • How to use external library(in .jar format) in netbeans project?

    How to use external library(in .jar format) in netbeans project?
    Thanks!

    How to use external library(in .jar format) in netbeans project?
    Thanks!

  • How to send External mail in sap HR workflow

    Hi experts,
         Anybody con tell me how  to send External mail in sap HR workflow ?
    Regards,
    Umesh.

    Hello,
    Check the workflow builder. There is a step type of "Send mail". Just put that into your workflow definition, and your workflow will send mail.
    Regards,
    Karri

  • How to use external jars in NW2004

    Hello Experts,
    can i use the same approach mentioned in the below Weblog for using the external jars in NW2004.
    /people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
    and if not then what will be the best way to achieve it in  NW2004.
    Please provide your inputs on above.
    Regards,
    Siddharth

    Hi Sidharth,
    If you are using web dynpro DC perspective then you need to follow the following points to use the external jar files in it.
    1. Create a external library project.
    2. copy the external jars in the library folder os the projects.
    3.) Select all the jars from the u201CLibrariesu201D folder, Right click and then select Development Component and click on Add to Public Part
    4.Select the first Radio Button (Provides an API)and give some nameto it.
    5. Repeat the step no 3 but now select the second radio button other than as selected in step no 4.
    6. Now build your lirary DC.
    7. Now create a j2ee DC project.
    8. ) Expand the node DC Definition and Right Click on Used DC. Select Add Used DC.
    9. Select the External Library DC with build time dependency.
    10.Right click on the J2EE DC and then select Development Component followed by Build
    11. Right click on the J2EE DC and then select Development Component followed by Deploy
    now you can use both the libary DC and the j2ee DC in your web dynpro DC as used DC.
    But if you have created a web dynpro project only(but not DC) than you can directly add the external jars in java build path
    hope this will help
    regards
    Narendra
    Edited by: Narendra Singh on Oct 27, 2009 11:22 AM

  • How to use External Tables

    Hi, I want to know how to use external tables? The procedure i follow for SQL*Loader in my shell script is:
    Call the sqlldr
    Check return code
    If return code = 2. get count of records from bad file and exit.
    If return code != 0 and != 2 then exit as fatal error
    If return code = 0 then continue.
    But i don't understand how to use external table as it is not invoked and does not have a return code.

    Hello,
    What do you mean alogrithim, do you mean to invoke external table as you invoke sqlldr? You can generate external table script from sqlldr and use it to load data but you might have to modify the table name and datafile name . You can see if any bad file generated from sqlldr and if yes then you can generate external table (using sqlldr) or based on your bad file. May be if you can list what exactly you want in bullet points, then it will be easier to suggest you.
    Regards

  • How to use external libraries jar files in the composite application?

    Hi,
    I have some external jars files (which consists of java classes) that I would like to use in my composite application. 
    I have created a DC with type as external library for the jars.  However, I don't know how to specify the DC to be used in my caf application.
    Can anyone help?
    Thanks.
    Regards,
    Fui Voon

    Hi,
    My jar files consists only java classes and a manifest.mf. The files are compiled using jdk 1.4.2-b28.  Will this be any issue?
    It seems that if I ignore the error and continue step 7 which is to do deployment of the ear, the error given is
    Cannot update it.
    Caused by: com.sap.engine.library.bytecode.cf.CFException: Invalid constant pool tag, 60 at index 41.
    Does anyone know what that mean?
    Is there any sample that teach how to deploy external libraries as bundled library?
    Thanks.
    Regards,
    Fui Voon

  • How to use external workcentre in pm order operations?

    Dear experts,
    i would like to use external workcenter in pm order operations using PM01 control key. Can any body explain about how to create external work centres for using in PM orders. similarly can anybody explain about how would we settle the amounts for external work centre activities? how it differs from normal in-house work centres?
    regards,
    Varsha

    Hi ,
    You can check the below link related to
    (http://help.sap.com/saphelp_47x200/helpdata/en/b0/df293581dc1f79e10000009b38f889/frameset.htm)
    The link is related to Maintenance Order processing with an External Company as Work Center ..
    regards
    pushpa

  • How to use print control in Sap script

    I would like to use print control in Sap script.Actualy my problem I have security font Troy ECF. Using this font I would like to print amount field in Check printing.
    we count download this font with sap .we talked to customer care they told we should hard code in sapscript. pls can any1 help on this how to do and how to use print control for this fonts.

    call this funcation. crate_text.
    CALL FUNCTION 'CREATE_TEXT'
             EXPORTING
               FID               =
               FLANGUAGE         =
               FNAME             =
               FOBJECT           =
             SAVE_DIRECT       = 'X'
             FFORMAT           = '*'
             TABLES
               FLINES            =
           EXCEPTIONS
             NO_INIT           = 1
             NO_SAVE           = 2
             OTHERS            = 3
           IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.

  • How to load external data to SAP BW?

    Hi All,
    I try to load data from external application to SAP ware house using RFC, as i am new to SAP BW, I would like describe my question as below.
    1. I have run RFC server in my local machine and resister in the SAP system successfully.
    2. In the source system, i click check, connection OK.
    3. Create DataSource in the Data Sources.
    4. Create InfoSources, it contain two rows. but when i try to create transformation, it always give the message "Source doese not exists".
    I am not sure why this happened, could you please give some advices. Besides, where can i get some tutorial document of this operation on SDN?
    Thanks.

    Hi,
    This is such a vast topic. There are multiple ways to load data into BI. It could be through Flat Files, or through Web Services, from R/3 etc..
    For XML Services:
    http://help.sap.com/saphelp_nw70/helpdata/EN/fe/65d03b3f34d172e10000000a11402f/frameset.htm
    For Flat File loading:
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/03450525ee517be10000000a1553f6/frameset.htm
    General:
    http://help.sap.com/saphelp_nw70/helpdata/DE/44/b734ed352056a3e10000000a1553f6/frameset.htm
    Transfromations:
    http://help.sap.com/saphelp_nw70/helpdata/EN/f8/7913426e48db2ce10000000a1550b0/frameset.htm
    Pls search the forum for more details.

  • How to use external table - creating NFS mount -the details involved

    Hi,
    We are using Oracle 10.2.0.3 on Solaris 10. I want to use external tables to load huge csv data into the database. This concept was tested and also found to be working fine. But my doubt that : since ours is a J2EE application, the csv files have to come from the front end- from the app server. So in this case how to move them to the db server?
    For my testing I just used putty to transfer the file to db server, than ran the dos2unix command to strip off the control character at the end of file. but since this is to be done from the app server, putty can not be used. In this case how can this be done? Are there any risks or security issues involved in this process?
    Regards

    orausern wrote:
    For my testing I just used putty to transfer the file to db server, than ran the dos2unix command to strip off the control character at the end of file. but since this is to be done from the app server, putty can not be used. In this case how can this be done? Are there any risks or security issues involved in this process? Not sure why "putty" cannot be used. This s/w uses the standard telnet and ssh protocols. Why would it not work?
    As for getting the files from the app server to the db server. There are a number of options.
    You can look at it from an o/s replication level. The command rdist is common on most (if not all) Unix/Linux flavours and used for remote distribution and sync'ing of files and directories. It also supports scp as the underlying protocol (instead of the older rcp protocol).
    You can use file sharing - the typical Unix approach would be to use NFS. Samba is also an option if NTLM (Windows) is already used in the organisation and you want to hook this into your existing security infrastructure (e.g. using Microsoft's Active Directory).
    You can use a cluster file system - a file system that resides on shared storage and can be used by by both app and db servers as a mounted/cooked file system. Cluster file systems like ACFS, OCFS2 and GFS exist for Linux.
    You can go for a pull method - where the db server on client instruction (that provides the file details), connects to the app server (using scp/sftp/ftp), copy that file from the app server, and then proceed to load it. You can even add a compression feature to this - so that the db server copies a zipped file from the app server and then unzip it for loading.
    Security issues. Well, if the internals is not exposed then security will not be a problem. For example, defining a trusted connection between app server ad db server - so the client instruction does not have to contain any authentication data. Letting the client instruction only specify the filename and have the internal code use a standard and fixed directory structure. That way the client cannot instruct something like +/etc/shadow+ be copied from the app server and loaded into the db sever as a data file. Etc.

Maybe you are looking for

  • How do i add more memory to my imac

    I need to add more memory to my imac and how do i go about it.

  • Looking for an email discussion lists script.

    HI! I am looking for a email discussion lists script that works on a windows platform. I have looked on Google but only found Mailman which is good but only works on UNIX/Linux. The other I found has to be installed via a setup.exe which is only good

  • Data Migration techniques

    Hi Experts, I want to know about data migration techniques and how we can best use MDM while migrating old version of R/3 to new version of R/3.... I have implemented SAP MDM in cases where we have number of SAP R/3 instances across different region

  • Dynamic Columns Generation in Bex

    Hi Gurus, I have a requirement to create a BEX report where user will enter a starting month/fiscal period and number of months/periods on a variable screen and the Bex will generate columns dynamically. If the user does not enter anything on the var

  • Material group field selection

    Hi, We configure the material group to be optional field in Material master (for some reasons) but when we create the purchasing view the system always ask for Fill up the Material group field. Is that mandatory field control for material group is ha