I got problems using oc4j basic security, anybody can help me?

hi guys
i was trying the Orion security Primer (site www.jollem.com) i'm quite
sure to have done all the "Setting up access
restrictions"correctly here is the principals.xml (included in the
addressbook.ear META-INF) , the
orion-application.xml file (included in the addressbook.ear META-INF) ,
the application.xml (included in the
addressbook.ear META-INF), and the web.xml(included in the
addressbook-web.war WEB-INF) about "Applying
Basic Authentication" i added the lines :
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
the web.xml file.
then i deployed the .ear file and it worked fine.
the problem is: when i try to access the bookstore application the web
container ask me for username and pwd (BASIC
auth), i give him the username/pwd set in the principals.xml and i got
back :Authorization failed.
am i missing some basic step?
thanks
bye
Paol

Further to my previous posting... I've achieved some success.
There is a file under home/application-deployments/addressbook/addressbook-web called orion-web.xml, which I assume is auto-generated when an application is deployed. Within this file are a set of <security-role-mapping> entries as per my settings in orion-application.xml, but without the <group-name> subtags.
On a whim, I added the <group-name> entries to orion-web.xml and now the bloody thing works. I made the same changes to my own application (which was exhibiting the same problem, which is why I tried the addressbook) and now it works as well.
I should be content, but... why weren't the <group-name> tags added to the file? Can someone shed some light on this?
cheers,
randall

Similar Messages

  • HT201066 I have problem with recently with playing DVDs on my iMac. the problem only with DVDs, please anybody can help me solve this problem?

    I have problem with recently with playing DVDs on my iMac. the problem only with DVDs, please anybody can help me solve this problem?

    Get a lens cleaner disc. One with brushes and try that. CDs and DVDs use different lenses, so since CDs load and play, I strongly suspect a dirty lens.

  • Hi, I am using macbook pro 2009 model.In that, there is wifi hardware is not installed. I am not able to use wireless networks. Anybody can help me out.

    Hello,
    I am using Macbook pro 2009 model. In that, when I tried to connect wireless network and wifi. I am not able to do. I have done R & D regarding this issue. Some them advice to do some below steps.
    Restart your Mac.
    upon start-up, hold down the Opt key until you see your drives.
    click on the recovery drive (note: this will not affect or delete any files you currently have).
    login if needed.
    in the top right hand corner you will see the Wi-Fi icon (hopefully). Click the icon and then click "turn wifi Off" and then again click "turn wifi ON"
    restart your Mac again and start it up normally.
    recover from your near-heart attack.
    I've followed your 1 to 4 steps & then after clicking on the wifi icon, I found Wi-Fi: No hardware installed just beneath the icon. That means no Wifi hardware is installed in this machine. Do you have any suggestion about installing it? I mean how can I get that hardware? Is it available on internet? Thanks a lot again.

    Apparently you have tried everything except - take the monitor in question to the Apple Store along with your computer.  If it works there, the mystery continues.

  • Until recently I was able to send images in the body of my Yahoo emails. Now, I am getting the message "This message has been truncated", and the email does not go through. I do not have this problem using IE. Could you please help? Thank you.

    Until recently I was able to send images in the body of my Yahoo emails. Now, I am getting the message "This message has been truncated", and the email does not go through. I do not have this problem using IE. Could you please help? Thank you.

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • Anybody can help me understand if the Ipads becomes ready to be used in all world regions with 3G and or 4G infrastructure? I mean, are all of them released or when I buy one in the US to be used in Argentina I need to ask for a released one, less cheaper

    anybody can help me understand if the Ipads becomes ready to be used in all world regions with 3G and or 4G infrastructure? I mean, are all of them released or when I buy one in the US to be used in Argentina I need to ask for a released one, with add costs?

    There are two versions of the current iPad, the WiFi only (which will work anywhere in the world, but only connect to WiFi networks) and the 3G/4G model. The latter will connect to 3G networks worldwide, as I understand it, but the only 4G networks it can connect to are in the US and Canada.

  • Hi..i just finish installed OS x maverick, it seems that my ITunes having problem..an error occured (-45054)...is there anybody can help me on this..thanks

    Hi..i just finish installed OS x maverick, it seems that my ITunes having problem..an error occured (-45054)...is there anybody can help me on this..thanks

    Hi plugking,
    Welcome to the Support Communities!
    Repairing disk permissions is the first step in resolving this error message:
    Troubleshooting permissions issues in Mac OS X
    http://support.apple.com/kb/HT2963
    Open Disk Utility (/Applications/Utilities/). Select your Mac OS X startup volume in the column on the left of the Disk Utility window, then click the First Aid tab. Click the Repair Disk Permissions
    Also, make sure you have the latest version of iTunes installed:
    Apple - iTunes - Download iTunes Now
    http://www.apple.com/itunes/download/
    Cheers,
    - Judy

  • Anybody can help with this SQL?

    The table is simple, only 2 columns:
    create table personpay(
    id integer primary key,
    pay number(8,2) not null);
    So the original talbe looks like this:
    ID PAY
    1 800
    2 400
    3 1200
    4 500
    5 600
    6 1900
    The requirement is to use one single query(no pl/sql) to show something lile the following, in other words, for each ID, the pay is the sum of all before itself and itself. So the query result looks like this:
    ID PAY
    1 800
    2 1200
    3 2400
    4 2900
    5 3500
    6 5400
    Again, just use one sql. No pl/sql. Anybody can help with this? I really appreciate that.
    thanks,

    Eh, people are so "analytically minded" that can't even notice a simple join?
    Counting Ordered Rows
    Let’s start with a basic counting problem. Suppose we are given a list of integers, for example:
    x
    2
    3
    4
    6
    9
    and want to enumerate all of them sequentially like this:
    x      #
    2      1
    3      2
    4      3
    6      4
    9      5
    Enumerating rows in the increasing order is the same as counting how many rows precede a given row.
    SQL enjoys success unparalleled by any rival query language. Not the last reason for such popularity might be credited to its proximity to English . Let examine the informal idea
    Enumerating rows in increasing order is counting how many rows precede a given row.
    carefully. Perhaps the most important is that we referred to the rows in the source table twice: first, to a given row, second, to a preceding row. Therefore, we need to join our number list with itself (fig 1.1).
    Cartesian Product
    Surprisingly, not many basic SQL tutorials, which are so abundant on the web today, mention Cartesian product. Cartesian product is a join operator with no join condition
    select A.*, B.* from A, B
    Figure 1.1: Cartesian product of the set A = {2,3,4,6,9} by itself. Counting all the elements x that are no greater than y produces the sequence number of y in the set A.
    Carrying over this idea into formal SQL query is straightforward. As it is our first query in this book, let’s do it step by step. The Cartesian product itself is
    select t.x x, tt.x y
    from T t, T tt
    Next, the triangle area below the main diagonal is
    select t.x x, tt.x y
    from T t, T tt
    where tt.x <= t.x
    Finally, we need only one column – t.x – which we group the previous result by and count
    select t.x, count(*) seqNum
    from T t, T tt
    where tt.x <= t.x
    group by t.x
    What if we modify the problem slightly and ask for a list of pairs where each number is coupled with its predecessor?
    x      predecessor
    2      
    3      2
    4      3
    6      4
    9      6
    Let me provide a typical mathematician’s answer, first -- it is remarkable in a certain way. Given that we already know how to number list elements successively, it might be tempted to reduce the current problem to the previous one:
    Enumerate all the numbers in the increasing order and match each sequence number seq# with predecessor seq#-1. Next!
    This attitude is, undoubtedly, the most economical way of thinking, although not necessarily producing the most efficient SQL. Therefore, let’s revisit our original approach, as illustrated on fig 1.2.
    Figure 1.2: Cartesian product of the set A = {2,3,4,6,9} by itself. The predecessor of y is the maximal number in a set of x that are less than y. There is no predecessor for y = 2.
    This translates into the following SQL query
    select t.x, max(tt.x) predecessor
    from T t, T tt
    where tt.x < t.x
    group by t.x
    Both solutions are expressed in standard SQL leveraging join and grouping with aggregation. Alternatively, instead of joining and grouping why don’t we calculate the count or max just in place as a correlated scalar subquery:
    select t.x,
    (select count(*) from T tt where tt.x <= t.x) seq#
    from T t
    group by t.x
    The subquery always returns a single value; this is why it is called scalar. The tt.x <= t.x predicate connects it to the outer query; this is why it is called correlated. Arguably, leveraging correlated scalar subqueries is one the most intuitive techniques to write SQL queries.
    How about counting rows that are not necessarily distinct? This is where our method breaks. It is challenging to distinguish duplicate rows by purely logical means, so that various less “pure” counting methods were devised. They all, however, require extending the SQL syntactically, which was the beginning of slipping along the ever increasing language complexity slope.
    Here is how analytic SQL extension counts rows
    select x, rank() over(order by x) seq# from T; -- first problem
    select x, lag() over(order by x) seq# from T; -- second problem
    Many people suggest that it’s not only more efficient, but more intuitive. The idea that “analytics rocks” can be challenged in many ways. The syntactic clarity has its cost: SQL programmer has to remember (or, at least, lookup) the list of analytic functions. The performance argument is not evident, since non-analytical queries are simpler construction from optimizer perspective. A shorter list of physical execution operators implies fewer query transformation rules, and less dramatic combinatorial explosion of the optimizer search space.
    It might even be argued that the syntax could be better. The partition by and order by clauses have similar functionality to the group by and order by clauses in the main query block. Yet one name was reused, and the other had been chosen to have a new name. Unlike other scalar expressions, which can be placed anywhere in SQL query where scalar values are accepted, the analytics clause lives in the scope of the select clause only. I have never been able to suppress an impression that analytic extension could be designed in more natural way.

  • My iphone 4's backlight turns off ocassionally.,some say update it and it will be ok..,anybody can help me?

    my iphone 4's backlight turns off ocassionally.,some say update it and it will be ok..,anybody can help me?

    yes the phone is already on..,autolock is set to 1 min..,what i mean is that whenever im using my iphone the backlight turns off and i got a black sceen but i can  see the icons on my iphone if i put it on a bright light..,even if i press the wake up botton the backlight just lit at little and it turns off again,,,and after about 30 mins on sleep mode and press the wake up button it will function as a normal again,few minutes after backlights turns off again..thanks!

  • How long I shall wait? anybody can help?

    my ipod nano was in Windows format, but now I bought a new computer using the Mac OS X sysstem, then I have to restore my ipod nano. But it's been already two hours that I'm waiting it to restore, I'm worry, it is something wrong? How long time it takes to restore my ipod nano? anybody can help?

    thanks, i did restart my Mac, at least it doesn't always showing that "restoring". But the problem still there, I managered to turn the ipod nano to disk modo and recconcted with the computer, but my Mac doesn't recognize at all my nano, and ipod shows nowhere in my computer. How can I restore my nano with this situation? any suggestion?

  • Anybody can help me for RTF conversion?

    Anybody can help me for RTF conversion for selected text frames only in Indesign by script

    ID has no built-in way to export a story as RTF with style labeling in a column next to the text, similar to what you would see in Story Editor view, but there is a remote possibility that this could be scripted (ask in InDesign Scripting) or perhaps you can make InDesign Tagged Text work for you. Try exporting a few paragraphs to tagged text and see if it would be useful.

  • Need  Bookmark creation script for Paragraph style. Anybody can help me pl?

    Need  Bookmark creation script for Paragraph style. Anybody can help me pl?

    Hi hasvi,
    I wrote a similar script which creates a bookmark on each page in the "main" text frame at the begining of the frame (the 1st insertion point). Here I attached the script and a couple of sample documents: before and after. It's more complex than what you want but you can use it as a starting point. In fact, you have to find a certain paragraph style, loop through every found item and insert a bookmark, say, at the beginning of the found text.
    The dialog box
    Bookmarks added
    Regards,
    Kas

  • The speaker of my brand new mac book pro are not working and I cannot plug in the earphones, the hole looks smaller than the pin or with an obstruction. anybody can help? thanks

    the speakers of my brand new mac book pro are not working and I cannot plug in the earphones, the hole looks smaller than the pin or with an obstruction. anybody can help? thanks

    Hi talero,
    Contact AppleCare or bring it into an Apple Store or AASP.

  • HT1212 i have a iphone 8g and the lock button doesnt work and i forgot my password and i was wondering if anybody can help me??

    i have a iphone 8g and the lock button doesnt work and i forgot my password and i was wondering if anybody can help me??

    You will need to restore your iPhone, take a look at this link, http://support.apple.com/kb/HT1212

  • Anybody can help me? I'm trying to start my computer and it shows this question mark. Then i restart it holding the option key and it shows this padlock with a password field. What should password should i put?

    Anybody can help me? I'm trying to start my computer and it shows this question mark. Then i restart it holding the option key and it shows a padlock with a password field. What password should i put? I would appreciate any help

    Contact Apple, or if you bought the computer secondhand, the previous owner.
    (118258)

  • I saw a message "cannot get mail. The connection to the server failed". Anybody can help pls?

    I saw a message "cannot get mail. The connection to the server failed". Anybody can help pls? I did try to delete the account and add back. Also tried to reset/ reboot the iPad but still effortless.

    Hi all, I finally solved the issue. Here I wish to share with you all. First, I delete my hotmail account from mail account. Secondly I reboot my ipad2 with holding sleep and home button at once untill the apple logo is appeared. Then I add back the hotmail account. Done. Hope it helps. Thank you.

Maybe you are looking for