Setting an Authentication Level for a WS using Deployment Descriptor Files

Hi
I'm developing WS with authentication level BASIC but I have some problem deploying it.
I read from https://cw.sdn.sap.com/cw/docs/DOC-106319  how to setting authentication level using annotation, but I cannot use annotation because my WS are cross-platform (they can be executed on SAP NetWeaver AS, JBoss, IBM WebSphere).
My WS is based on a stateless EJB Session 2.1.
My ejb-jar contains security-role-ref.
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar id="ejb-jar_ID" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
     <enterprise-beans>
          <session id="AsyncOrd10">
               <description>AsyncOrd10</description>
               <ejb-name>AsyncOrd10</ejb-name>
               <local-home>com.dat.now.ws.ord.AsyncOrd10Home</local-home>
               <local>com.dat.now.ws.ord.AsyncOrd10</local>
               <service-endpoint>com.dat.now.ws.ord.AsyncOrd10WS</service-endpoint>
               <ejb-class>com.dat.now.ws.ord.AsyncOrd10EJB</ejb-class>
               <session-type>Stateless</session-type>
               <transaction-type>Container</transaction-type>
               <resource-ref id="AsyncOrd10Ref">
                    <description>Reference to the DataSource used by AsyncOrd10</description>
                    <res-ref-name>jdbc/AsyncOrd10</res-ref-name>
                    <res-type>javax.sql.DataSource</res-type>
                    <res-auth>Container</res-auth>
               </resource-ref>
               <security-role-ref id="SecurityRoleRef_AsyncOrd10">
                    <role-name>everyone</role-name>
                    <role-link>everyone</role-link>
               </security-role-ref>
          </session>
     </enterprise-beans>
     <assembly-descriptor id="assembly-descriptor_ID">
          <security-role id="SecurityRole_everyone">
               <role-name>everyone</role-name>
          </security-role>
          <security-role id="SecurityRole_sysadm">
               <role-name>sysadm</role-name>
          </security-role>
          <method-permission id="MethodPermission_AsyncOrd10">
               <role-name>everyone</role-name>
               <method id="MethodElement_AsyncOrd10">
                    <ejb-name>AsyncOrd10</ejb-name>
                    <method-name>*</method-name>
               </method>
          </method-permission>
          <container-transaction id="container-transaction_AsyncOrd10">
               <method id="AsyncOrd10_methods">
                    <ejb-name>AsyncOrd10</ejb-name>
                    <method-name>*</method-name>
               </method>
               <trans-attribute>Required</trans-attribute>
          </container-transaction>
     </assembly-descriptor>
</ejb-jar>

for JBoss I can set in the jboss.xml the auth-method (under the port-component)
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
     <security-domain>java:/jaas/absolut</security-domain>
     <enterprise-beans>
          <session>
               <ejb-name>AsyncOrd10</ejb-name>
               <local-jndi-name>com.dat.now.ws.ord.AsyncOrd10</local-jndi-name>
               <port-component>
               <port-component-name>AsyncOrd10WSPort</port-component-name>
                    <port-component-uri>AsyncOrd10</port-component-uri>
                    <auth-method>BASIC</auth-method>
               </port-component>
               <resource-ref>
                    <res-ref-name>jdbc/AsyncOrd10</res-ref-name>
                    <res-type>javax.sql.DataSource</res-type>
                    <jndi-name>java:/now</jndi-name>
               </resource-ref>
          </session>
     </enterprise-beans>
</jboss>
For IBM WebSphere I should use an additional step in the deploy
Maybe I missing something in the ejb-j2ee-engine.xml ?
this is it :
<?xml version="1.0" encoding="UTF-8"?>
<ejb-j2ee-engine>
     <enterprise-beans>
          <enterprise-bean>
               <ejb-name>AsyncOrd10</ejb-name>
               <jndi-name>com.dat.now.ws.ord.AsyncOrd10</jndi-name>
               <resource-ref>
                    <res-ref-name>jdbc/AsyncOrd10</res-ref-name>
                    <res-link>now</res-link>
               </resource-ref>
          </enterprise-bean>
     </enterprise-beans>
<security-permission>
<security-role-map>
<role-name>everyone</role-name>
<server-role-name>all</server-role-name>
</security-role-map>
<security-role-map>
<role-name>sysadm</role-name>
<server-role-name>administrators</server-role-name>
</security-role-map>
</security-permission>
</ejb-j2ee-engine>
Thanks

Similar Messages

  • Set different authentication mode for OWA (without 2 ip address)

    hi
    http://social.technet.microsoft.com/Forums/office/en-US/fda18a29-a484-4ed5-903b-aa06e8f7a032/set-different-authentication-mode-for-owa?forum=exchangesvrclients
    Step 1: IP Address
    Obtain a second IP address and add it to the NIC of your server.
    Step 2: DNS
    Add a DNS entry for That secondary IP address for the name we will want to use in the new FBA OWA Web site. I have chosen "testwebmail." Be sure there is a valid SSL certificate (recommended to have UC or SAN SSL certs) on the server Which has the
    new name "testwebmail" that will be used in the certificate.
    Step 3: New Web Site
    Create a new web site in IIS on the Client Access Server and bind it to the new IP address used in step 1.
    Step 4: Adding Exchange Virtual Directories
    The web site has been created and bound to the secondary IP address of our server. Also the DNS record That will be used to access the OWA FBA new page was added to DNS. The next step is to go into EMS and begin adding our virtual directories for OWA and ECP.
    Login to the Exchange server and open the Exchange Management Shell. Then run Get-Get-OWAVirtualDirectory and ECPVirtualDirectory to see the default OWA and ECP directories.
    New-OWAVirtualDirectory -WebSiteName FBA -InternalUrl https://url/owa
    New-ECPVirtualDirectory -WebSiteName FBA -InternalUrl https://url/ecp
    Step 5: Configure the Virtual Directories
    To configure the virtual directories we will disable FBA on the Default Web Site OWA and ECP virtual directories
    New-OWAVirtualDirectory -WebSiteName "FBA"
    Enable the Basic authentication via running the following command:
    Set-OWAVirtualDirectory -Identity "yourservername\owa (FBA)" -BasicAuthentication $true
    Set-OWAVirtualDirectory -Identity "OWA (Default Web Site)" -WindowsAuthentication $true -BasicAuthentication $false  -FormsBasedAuthentication $true
    Step 6: iisreset
    I want to set this settings; but I don't have 2 ip address and I want to set whit one ip address.
    can please tell me how can set this settings with one ip address?
    and please tell me about publishing whit tmg.
    thanks

    Hi,
    Based on my research on Host Header, it seems using Host Header can achive your goal.
    More details on Host Headers:
    1. Host headers let you assign more than one site to a
    single IP address on a Web server.
    2. To host more than one Web site on a Web server, you can assign a unique IP address to each Web site, designate a non-standard TCP port number for a Web site,
    or use host headers. Of the three methods, it is more common to use host headers than to assign unique IP addresses to Web sites or to use non-standard TCP port numbers.
    Configure a Host Header for a Web Site (IIS 7)
    http://technet.microsoft.com/en-us/library/cc753195(v=ws.10).aspx
    Please correct me if there is anything misunderstand.
    However, Microsoft recommends creating the second OWA/ECP virtual directories in a new IIS web site with a different IP address, and using it for internal client access.
    Thanks
    Mavis Huang
    TechNet Community Support

  • How to set transaction isolation level for a method in a Local Interface

              By reference at:
              http://e-docs.bea.com/wls/docs61/ejb/reference.html#1071267,
              the value for method-intf can only be "Remote" or "Home".
              My question is--
              How to set transaction isolation level for a method inside a Local Interface or
              Local_Home Interface?
              Thanks.
              Xing
              

    I'd try 6.1SP2. I'm pretty sure this works now.
              -- Rob
              Xing wrote:
              > I tried "Local", but got an error when deploying the EJB jar, saying that only
              > "Remote" or "Home" is allowed.
              >
              > Any idea?
              >
              > Xing
              >
              > Rob Woollen <[email protected]> wrote:
              > >
              > >
              > >Use LocalHome or Local.
              > >
              > >-- Rob
              > >
              > >Xing wrote:
              > >
              > >> By reference at:
              > >> http://e-docs.bea.com/wls/docs61/ejb/reference.html#1071267,
              > >> the value for method-intf can only be "Remote" or "Home".
              > >>
              > >> My question is--
              > >>
              > >> How to set transaction isolation level for a method inside a Local
              > >Interface or
              > >> Local_Home Interface?
              > >>
              > >> Thanks.
              > >>
              > >> Xing
              > >
              > >--
              > >
              > >----------------------------------------------------------------------
              > >
              > >AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
              > >
              > >by Michael Girdley, Rob Woollen, and Sandra Emerson
              > >
              > >http://learnWebLogic.com
              > >
              > >
              > >
              > >
              > ><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
              > ><html>
              > >Use LocalHome or Local.
              > ><p>-- Rob
              > ><p>Xing wrote:
              > ><blockquote TYPE=CITE>By reference at:
              > ><br>http://e-docs.bea.com/wls/docs61/ejb/reference.html#1071267,
              > ><br>the value for method-intf can only be "Remote" or "Home".
              > ><p>My question is--
              > ><p>How to set transaction isolation level for a method inside a Local
              > >Interface
              > >or
              > ><br>Local_Home Interface?
              > ><p>Thanks.
              > ><p>Xing</blockquote>
              > >
              > ><pre>--
              > >
              > >----------------------------------------------------------------------
              > >
              > >AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
              > >
              > >by Michael Girdley, Rob Woollen, and Sandra Emerson
              > >
              > >http://learnWebLogic.com</pre>
              > > </html>
              > >
              > >
              AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
              by Michael Girdley, Rob Woollen, and Sandra Emerson
              http://learnWebLogic.com
              [att1.html]
              

  • Where can I set the log level for the "Inbox log file" ?

    From the Siebel 8 Bookshelf, it says :
    "To set the level of the Inbox log file for troubleshooting
    *In Siebel Tools, set the Log Level for the Inbox log file (Alias = InboxLog) to 5*."
    But where exactly in Siebel Tools can I find that Log Level ? Which object does the Siebel bookshelf talk about ?

    Hi,
    Loglevels are not configured in Siebel Tools. You have to configure them with the siebel client. You can find a parameter at "Administration - Server Configuration / Server / Events"
    Search for "Inbox General Log Events". Set this parameter to 5. It think this should help you.
    Cheers Andreas

  • To set a dropdown list for one column in the excel file before downloading

    Hi all,
    I am downloading an excel file which has the format of an internal table with a number of fields. I want to set a dropdown list for one column in the excel file. How can i do this?
    Thanks

    HI ,
    U can use function module " QINT_GET_EXCEL_DATA " ....
    and modify the excel sheet based on ur requirement ......
    Try this ...
    Hope it works
    Thanks
    Shambhu

  • How to specify the security policy "Allow access to everyone" for security role in Deployment descriptor

    Hi,
    I am migrating a web application from Websphere to Weblogic. The web application has a security role defined in web.xml (Use LDAP for authentication).
    security-role>
            <description>Authenticated</description>
            <role-name>Authenticated</role-name>
        </security-role>
    This role is mapped to a special subject "All authenticated user in appliation realm" in WAS.
    In weblogic, I have the following setting in weblogic.xml
    <wls:security-role-assignment>
            <wls:role-name>Authenticated</wls:role-name>
            <wls:externally-defined />
        </wls:security-role-assignment>
    And after deploy the application, have to manually add a security role and add the security policy "Allow access to everyone" to this role.
    I am wondering if this setting can be specified in  for example weblogic.xml so just deploy web applicaiton using deployment descriptor, and I don't need write script to do that .
    Thanks

    Hi,
    You need to have Back End support to achieve this. In Back End you need to create two groups . You need to know what joins has to be made for which group (which is more important) and also make session variable for the userrole (with SQL supporting it). In the BMM layer, we need to put the security join conditions in the 'where clause'.
    And make a common report. User loggin in with the respective userid will have userrole and joins assigned in the Back end. And they will be viewing the report according to their access.
    Hope this will solve your problem.
    Regards
    MuRam

  • Hi, with mix16 pro app, can anyone tell me when you set different audio levels for different tracks, does the app remember the level set the next time you use it?  Or does it default to the original setting when you power down after a show?  Thanks!

    Hi
    I use backing tracks for some songs with a live band and we are having some issues with levels.  Some are higher than others etc.  I use i pad to run the tracks.  I am looking for an app that where I can control the levels better.  Ideally, an app where I can set the level of each track to a desired level and leave it at that level for good.  Mix16 Pro  seems to do that but I wonder does it save the setting as I do not want to set the levels every time I use it.
    Thanks

    Hi
    I use backing tracks for some songs with a live band and we are having some issues with levels.  Some are higher than others etc.  I use i pad to run the tracks.  I am looking for an app that where I can control the levels better.  Ideally, an app where I can set the level of each track to a desired level and leave it at that level for good.  Mix16 Pro  seems to do that but I wonder does it save the setting as I do not want to set the levels every time I use it.
    Thanks

  • Setting transaction isolation level for jDriver Oracle/XA

    edocs (http://e-docs.bea.com/wls/docs70/oracle/trxjdbcx.html#1080746) states that,
    if using jDriver for Oracle/XA you can not set the transaction isolation level
    for a
    transaction and that 'Transactions use the transaction isolation level set on
    the connection
    or the default transaction isolation level for the database'. Does this mean that
    you shouldn't try to set it programatically (fair enough) or that you can't set
    it in the weblogic deployment descriptor either? Also anybody got any idea what
    the default is likely to be if you are using
    an Oracle 9iR2 database?

    Ian,
    The default for Oracle (any version) is ReadCommitted. The only other
    isolation level Oracle supports is Serializable but it's implemented in
    such a way that you will be allowed to continue until commit time and
    only then you might get an exception stating the the access for that
    transaction could not be serialized.
    I don't know for the jDriver but if you use the Oracle Thin XA driver
    even if you set the isolation level in your descriptor you will get an
    exception from Weblogic. It is a Weblogic bug and you can contact
    [email protected] to get a patch.
    Regards,
    Dejan
    IJ wrote:
    edocs (http://e-docs.bea.com/wls/docs70/oracle/trxjdbcx.html#1080746) states that,
    if using jDriver for Oracle/XA you can not set the transaction isolation level
    for a
    transaction and that 'Transactions use the transaction isolation level set on
    the connection
    or the default transaction isolation level for the database'. Does this mean that
    you shouldn't try to set it programatically (fair enough) or that you can't set
    it in the weblogic deployment descriptor either? Also anybody got any idea what
    the default is likely to be if you are using
    an Oracle 9iR2 database?

  • Set Windows Integrity Level for Application at startup

    Hi,
    Yesterday I found a problem in my application that it had not have the same integrity level as Outlook. Therefore someone from microsoft adviced me to look at the integrity level and make them both the same. I managed to find a CommandPrompt command for
    setting the integrity level, but what I really want is setting the integrity level at startup of my application.
    How can I set the integrity level of my application to the desired level using C#?
    Best regards,
    Jouke

    Hello Jouke,
    I am not a Microsoft employee, just a regular developer as you are.
    Anyway, the forum is for Outlook related dev questions. I'd suggest asking common C# programming questions on the Visual C# forum instead.
    I believe you can use the
    /runas command line argument.

  • Set frame delay time for animated gif using ImageIO

    I'm trying to change the delay time of each frame for an animated gif by changing the metadata for each frame as following but it doesn't change anything.
    static private IIOMetadata setMetadata(IIOMetadata metadata, int delayMS) throws IOException
              Node root = metadata.getAsTree("javax_imageio_gif_image_1.0");
              for (Node c = root.getFirstChild(); c != null; c = c.getNextSibling())
                   String name = c.getNodeName();
                   if (c instanceof IIOMetadataNode)
                        IIOMetadataNode metaNode = (IIOMetadataNode) c;
                        if ("GraphicControlExtension".equals(name))
                             metaNode.setAttribute("delayTime", Integer.toString(delayMS));
         }Does anyone know how to set delay time for animated gif using ImageIO ?

    I'm trying to change the delay time of each frame for an animated gif by changing the metadata for each frame as following but it doesn't change anything.
    static private IIOMetadata setMetadata(IIOMetadata metadata, int delayMS) throws IOException
              Node root = metadata.getAsTree("javax_imageio_gif_image_1.0");
              for (Node c = root.getFirstChild(); c != null; c = c.getNextSibling())
                   String name = c.getNodeName();
                   if (c instanceof IIOMetadataNode)
                        IIOMetadataNode metaNode = (IIOMetadataNode) c;
                        if ("GraphicControlExtension".equals(name))
                             metaNode.setAttribute("delayTime", Integer.toString(delayMS));
         }Does anyone know how to set delay time for animated gif using ImageIO ?

  • Setting default zoom level for creating bookmarks

    I am creating a PDF file in a couple of steps.  The main text is created from Word, which gives me bookmarks automatically set to "Inherit Zoom."  I also create subsets of tables and figures by "combining files in Acrobat" from Windows Explorer.  That step creates bookmarks automatically that are set to "Fit Width."  I then add the pages from the tables and figures into the PDF created from the Word document.  The bookmarks come in the proper location, but the zoom level stays "Fit Width."  I'd like it to be either "Inherit Zoom" or "Fit Page."  Is there a way to set the default zoom for bookmark creation so I don't have to manually change each bookmark?

    It seems like the DVT by default zooms to fit the available real estate. But is it possible to set a fixed zoom level (say 75%) even if the node does have 100% zoom level. We would like to show the 100% zoom level only on hover to the node. But by default, wanted to to set the viewer to always show 75% or 50% zoom level.

  • Setting default volume level for Java Desktop

    Hello,
    I am running Sol 10 11/06 for sparc. How do I permanently set the default volume level for the Java desktop? If I change the volume manually and "save settings" on logoff, the saved setting is not saved after a reboot, after which I have to set it again.
    Thank you......

    Annoying, isn't it?
    Unfortunately the only thing you can do is lower your system volume before opening those pages. The volume could be controlled by the Web page author but most are clueless.

  • CMDLET commands regarding setting a default font for all users using OWA on an exchange 2010 platform

    HI,
    We are running Exchange 2010 and are migrating users from 2003 to 2010 with no problems.  The client has asked me to set OWA font to LuidaSans which I can do for individuals with no problems.  However, when I try and run the following command
    Get-Mailbox -Resultsize Unlimited | Set-MailboxMessageConfiguration -LucidaSans but then got a message to state
    "property composefontname can't be set on this object becuase it requires the object to have version 0.1 <8.0.535.0> or later.  The object's currant version is 0.0 <6.5.6500.0>"
    What object is this reffered to?  Can anyone help please?
    Thanks
    Paul

    Hi,
    To set a default font for all users, you can use this command: -
    Get-Mailbox | Set-MailboxMessageConfiguration -DefaultFontName "Trebuchet"
    You can use any font style in place of “Trebuchet”.
    I hope this information will be helpful for you.
    Thanks and regards
    Ashish@S 
    Ashish@V

  • How do i set up and ipad for my children using my Itunes account without synching my data from my Iphone? (contacts, calendar, etc

    I do not want or need my contacts and calendar on their ipad, but I would like to use my Itunes account...

    It's easy enough to do. You can share one Apple ID and have your own content on each iPad. You do not have to have the same apps, music, books and so on. Set up the iPad with your Apple ID for purchases. If you want the kids to have their own iCloud accounts so that they can FaceTime and Message you can do that as well. However you do not have to setup additional Apple ID's in order to do that, it just makes it a little easier,
    Anyway, after you set up their iPad - when you go so to sync your devices, you can set your sync preferences for each device any way that you like. Using apps as an example ... This is how you can select the unique content for you own device. You can do this in every tab in iTunes .... Apps, music, photos, movies, books, etc.
    Connect the iPad to the PC and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Apps Tab on the right.
    Click on all of the apps in the apps list that you want to sync to your iPad..
    Click on the Sync Apps Heading.
    Click on Apply in the lower right corner of iTunes
    In the Info tab of iTunes, just don't sync your contacts or calendar to the kids iPad.
    This will be helpful.
    iOS: Syncing with iTunes

  • Set logging severity level for clustered servers

    How can I set the logging severity level for clustered servers just once at the cluster level rather than one at a time at the server level?

    I know the logging is server by server, but surely there is a way to configure the multiple servers with one change rather than one by one. We have 40 some servers in the cluster.

Maybe you are looking for