JAAS/Tomcat - providing more login information than just username/password

Sorry if this is a vague question or that I seem lazy, but I have been asked to say if an easy solution is available by the end of the day so I thought I would ask some of the experts!
I currently have a tomcat application which is protected by basic FORM protection with user name and password held within the database.
This application is to be rolled out and accessed by multiple clients, non of which should have access to each others data.
All of this is in place and a username is currently associated with a client. However we have been asked if the login can be changed so that the user logs in as
client-name/user-name/password for two reasons - firstly to avoid the possibility of the same username existing for more than one client and secondly as we now have a user who will be able to log in to more than one of the clients and creating two separate user names is not seen as the answer.
My guess is that this may be possible using JAAS though I have found no example showing this yet (and as always have not had much time to do so!)
Could anyone tell me if they think this is possible?
Many thanks in advance

ToddTobin wrote:
We are developing a custom SSPI module for our weblogic servers, and i have a concern
with remote logins for remote ejb calls.
The documentation statest that the UsernamePasswordLoginModule is a good way to
remotely log into a different BEA server so that ejb calls can be made from the
Security.runAs context. However, i need to have more information passed than
just the username password combination. e.g. applicationId that is making the
call, in addition to the userid.
The docs recommend creating your own login module, which is fine, but if i am
correct the UsernamePasswordLoginModule uses the environment object and Authenticate.athenticate,
to perform the login to my sspi. in that case the name is somehow translated
into a NameCallback and (credential) Password to a PasswordCallback. If i want
to add a different callback, "CallingAppCallback" where is that set in the environment
object? In the properties? and if so, how is that then accessed by my LoginModule
or AuthenticationProviderImpl?
I just dont see how to extend the functionality of UsernamePasswordLoginModule,
for remote-server logins?Yes, this is a major limitation. I had a similar limitation when I
implemented a kerberos client. If you can't fit what you want into two
string fields, you are stuffed. BEA really need to open up the API for
client-side login modules. To be fair to BEA, JAAS is useless so they
weren't working with something that was designed for distributed systems
in the first place.
Anyway I worked around it by base 64 encoding my data (which was binary
obviously). I suggest you come up with some way of encoding the
application id in the username, e.g user@id or something along those lines.
If you do come up with a better solution I'd be very interested to know!
Robert

Similar Messages

  • Entourage error "The server for my email acount returned the error "Login Failed". Your username/password or security settings may be incorrect. Would you like to try re-entering your password?"

    I have 1 user on a Mac who just started having a pop up message when opening entourage "The server for my email acount returned the error "Login Failed".
    Your username/password or security settings may be incorrect. Would
    you like to try re-entering your password?" I know the settings are right because the users mail works on iPhone,iPad,an windows machine. I have deleted entourage plist and also tried a new user same message appears in new user.

    See thread here:
    https://discussions.apple.com/message/23175721#23175721
    It worked for me.

  • HT1414 I want to have a greater number of phone numbers saved under the "recent" category.  Under the "all" tab, it looks like I am only getting calls from the previous week and not prior to that.  What can I do to retain more phone calls than just for a

    How do you set up the phone to save more "recent" phone calls than just for one week?  I am only able to see recent phone calls under "all" tab for just one week.  Is there a way to do it for a month?

    You cannot do that on your iPhone -- however, you can go to your cellular carrier's site and see your recent calls.  They go back to the beginning of your current billing period.  For calls older than that, you can also look on your carrier's website and access your previous billing statements.

  • How can i receive more error warnings than just the first error warning?

    is there any way to receive more than just the first error. i want to report all errors in my application...

    Just use the simple error dialog at the output of each VI that can return an error. After that pass a "no error" cluster to all following VI's and re-use the error dialog as before.
    Do you really want all those errors?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • More hardware controls than just a mouse

    Hi,
    I'm fairly new to STP. I'm looking to have more control over my tracks than to be always using my mouse to point/click/drag.
    I have an audio interface for 5.1 monitor, but beyond that I don't have much experience with mixing boards or any other additional hardware for STP.
    In fact, I'm not even sure if that's what I need is a mixing board or if it is called a control surface or etc.
    Very appreciative if someone can push me in the right direction and maybe at least put a proper name on the piece of hardware that I'm trying to describe.
    Thanks!
    Jeff
    p.s.
    My main use for STP will be to use on FCP projects.

    Soundtrack Pro supports the Mackie Control and Logic Control protocols.
    The current Mackie controllers that support Soundtrack Pro are the Mackie MCU Pro
    - a HUI would also work, you can probably find used ones or still in stock items at some dealers.
    Also the Eucon supports the Mackie/HUI protocol.
    There may be others. Here's some more information on controllers.

  • Why does Verizion care more about $30 than keeping customers?

    My wireless contract is up on July 28, 2013.  I went to the store to upgrade our phones and renew our contract.  I received an email congratulating me on being such a great customer and I have worked hard to earn a free phone upgrade.  I go to the store, pick out our phones, the agent takes an hour to program the new phones and then tells me that we owe $150.00.  I ask why - he says it's the upgrade fee. The email I received didn't mention an upgrade fee, the sales person at the store never mentioned or advised us of a $30 fee for our free upgrade until after we picked out and he programmed our new phones.  When I called customer service and asked the supervisor "Is it more important to Verizon to collect the $150 upgrade fee than to keep me as a customer and earn monthly revenue from my wireless and Fios contracts?"  He gave a lame long winded response that started with "everyone else is doing it" and ended with yes.  So I asked him again "Is it more important to Verizon to collect the $150 upgrade fee than to  keep me as a customer and earn monthly revenue from my wireless and  Fios contracts?" - He said " yes.  It is more important to collect the fee than keep you as our customer."  I think this says it all...Verizon cares more about cares charging it's customer's extra fees than keeping us as customers.  And... Verizon...is "Everyone else charges" really a good reason for you to charge?  Remember when you were young asking your mom to do something and saying "Please everyone else is doing it" or getting into trouble and saying "Everyone Else is doing it"...what was the response?  The response was always.."What if everyone else were jumping off a bridge?"  Maybe if your customer service and sales people were less rude and you gave your customers more value for their dollar instead of more crap your long time customers would be looking elsewhere.  You want loyalty from your customers...you should try giving your customers a little bit of loyalty.  I will be moving our business elsewhere.

    Firstly, the upgrade fee has been around since April of last year. Sorry you didn't know about it, but frankly it's old news by now.
    Secondly, Verizon is actually charging you LESS than any other carrier would for an upgrade. AT&T's upgrade fee is $36, and Sprint's is all kinds of messed up and involves some sort of extra activation fee. So I wouldn't get all upset over the upgrade fee if I were you since leaving the company will cost you much more over time than just sticking with 'em.
    Thirdly, there's no real excuse for how that CSR acted towards you, imho no CSR should ever tell you that their company values money more than their customers. That in particular I would file a formal complaint against that rep specifically because that behavior is inexcusable

  • Unable to enter login information to a password protected ebook on my Nook HD+ using adobe reader.

    Unable to enter login information to a password protected ebook on my Nook HD+ using adobe reader.  Would anyone be able to assist me as I am unable to get any help elsewhere and I need to be able to access this ebook for school.
    Thanks

    Yes, I have contacted my school and they stated they do not support Nook.  I called Nook and they said I would have to deregister, etc. as they are unable to determine what is wrong.  I tried to pull the document on my phone now and have not been able to do so.  I read the "Getting Started" and it states I should be able to fill out the form, which would be to provide my login information, but am not able to do so.  Maybe this has to do with the android part.  Thank you for providing that information as I did not even think about trying my phone too.  So as this did not work on there, my last conclusion is that it would now be the Adobe issue.  Hopefully this can be fixed as I need to read my document for school and would hate to have to sit behind my computer and not able to take my Nook or phone to read elsewhere. 

  • Login page user name and password for Oracle Database

    Hi,
    I created a login.jsp page with username,password and a submit button. How can I validate this username and password from my Oracle database username and password?
    I am using NetBeans5.5 with Tomcat5.5.17. Right now I have hardcoded username and password in my persistence.xml.
    Anyhelp?

    Thnx BalusC for ur reply. Let me explain my issue.
    I have created a login page. and user is able to enter user name and passowrd on this page. User is supposed to press a 'submit' button when user enters username and password to connect to database. What should I write in 'submit' button's action to let user allow to proceed if username and password are correct i.e. username and password of my oracle database. (usename=scott and passowrd=tiger).
    plz help.

  • After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous peopl

    After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous people call and ask why I didn't reply to their texts...and I look, but have not received any new texts. YES, I have restarted phone. I have cleared data as well as cache on all apps. I have downloaded the vzw messaging app, which seems silly, since it happens with several different processes and apps, but all to no avail. I am missing texts from my employer, from my family. This did happen, but rarely, before this "soak test". It is now Kitkat version 19.6.3.obake_verizon.en.US. THIS is when I started having problems...like 50 times a day kind of problems! I have seen hundreds of posts all over the internet over the past 3 days. Does no one know how to fix this??? Shouldn't there be a way to revert phone to a pre-update state? and no, hard reset did NOT work!!!! I have been with verizon for well over 15 years, but I have not upgraded my lines and will not in July either. This is ridiculous. It's not like my games aren't working, it is my messaging and "android os"...my lifeline at work!

    kristinaf333,
    Oh no, I am sorry to hear your messages are not working since the software update. I greatlly appreciate doing all that troubleshooting to try and get the messaging application back in business. I know how much I rely on my messages so I can understand the urgency to get this resolved. Have you had a resolution ticket opened since you started experiencing issues with your messages? Does this happen with all contacts or just some? Please provide additional information to ensure we get to the bottom of this for you.
    KarenC_VZW
    Follow us on Twitter @VZWSupport

  • [svn] 2706: Improve the information given during parse errors by providing more context about which parent token is not expecting a particular child token to follow .

    Revision: 2706<br />Author:   [email protected]<br />Date:     2008-08-01 10:10:58 -0700 (Fri, 01 Aug 2008)<br /><br />Log Message:<br />-----------<br />Improve the information given during parse errors by providing more context about which parent token is not expecting a particular child token to follow.<br /><br />QA: Yes<br />Doc: No<br />Checkintests: Pass<br />Reviewer: Paul<br /><br />Bugs:<br /> SDK-15791 - [MXML Namespaces] Provide better error message when language tags are added as child of Declarations tag<br /> SDK-15659 - [MXML Namespaces] Error message not descriptive when Private tag is not immediate child of mxml document<br /> SDK-15669 - [MXML Namespaces] Error message not descriptive when incorrect <Library> and <Definition> tags are defined<br /><br />Ticket Links:<br />------------<br />    http://bugs.adobe.com/jira/browse/SDK-15791<br />    http://bugs.adobe.com/jira/browse/SDK-15659<br />    http://bugs.adobe.com/jira/browse/SDK-15669<br /><br />Modified Paths:<br />--------------<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties

    Thank you for the sympathy and the information about the Adobe.com forum Michael.
    I posted here because, to be honest, for a company that's acknowledged their installers and updaters and support needs some work, they seem very determined to obfuscate the means by which users can provide direct feedback to the company. Much like you, I've also noticed a trend in CS5 installations that mirrors the issues that were present in CS4. it's a sad state of affairs.
    As for my installation, you are also quite right to say that a clean install would have been a lot faster than what I went through with TS and it was actually my first idea. Before calling TS I'd actually read through the forums and noticed that a large number of users who were faced with my situation had no other choice but to reformat. I was just giving Adobe the benefit of the doubt and wasted 2 and a half weeks through that course of action...
    What makes this situation even more frustrating is that the installer failed on a fresh system. It was a custom-built design machine, assembled and configured by myself. The only software that had been installed on it prior to Design Premium was Firefox, an FTP client and the start of my problems, trial versions of various CS4 programs. I used trials just long enough to retire the previous design computer so that I wouldn't contravene the EULA's stipulation of not running more than one instance of software at the same time on different machines.  Turns out being honest once again penalised a legal customer.
    If there is just thing users should learn from my far from unique tale of failed tech support it's that if you ever run into a problem with the installation, don't bother calling TS, just reformat and start from scratch.  It might seem like it'll take longer to get going again, but in actuality, it's the opposite. Reformatting means you'll be up and running in about 1 or 2 days rather than 2 weeks.
    Marc

  • Trying to subscribe to a secure podcast, but I am never prompted for login information, instead I just get the gray "i". Is there something in iTunes 10.4 i can change to fix this?

    Trying to subscribe to a secure podcast, but I am never prompted for login information, instead I just get the gray "i". Is there something in iTunes 10.4 i can change to fix this?
    Notes: The RSS feed of the podcast works just fine. When I enter the podcast URL into the firefox bar, I am prompted and am able to access the page. The problem is with iTunes not giving me the prompt.

    Mountain Lion Supported Machines
    Supported
    Models
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    Xserve (Early 2009)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Requirements
    General Requirements
    OS X v10.6.8 or later
    2GB of memory
    8GB of available space
    Some features require an Apple ID; terms apply.
    Some features require a compatible Internet service provider; fees may apply.

  • How To Provide More Informative Undo Presentation Names for Document Edits

    Hello,
    Hopefully, I can state this clearly enough where people will know what I'm talking about.
    I'm working on an app that makes use of JTextArea to provide display and editing capabilities for text files. I've registered an UndoableEditListener with the Document underlying the JTextArea, so that I can provide undo/redo capability for all the various edits.
    Here's my problem, the edits sent to my listener are of the type AbstractDocument.DefaultDocumentEvent, and so they provide very little information about exactly what sort of event has taken place. IIRC, everything (cut, paste, typing, etc.) shows up as an insert or a removal. I'd like to be able to provide a better presentation name (e.g, "Undo Cut", "Undo Paste", etc.) for my undoable events than is provided by the AbstractDocument.DefaultDocumentEvent , but I'm not sure how exactly to go about this. Do I create my own edits that operate directly on the Document, and avoid the AbstractDocument.DefaultDocumentEvent altogether, or is there some easier way? Anyone have any experience trying to do this? Thanks.
    - sixtyten

    That's exactly the problem: the information we need isn't available, and there's no way to reconstruct it, so let's have the client tell us what we need to know. What I'm proposing is an UndoManager that requires its client to notify it when an action is about to be performed, and again when the action is finished. Upon receiving the first notification, it creates a CompoundEdit with the presentation name that was provided in the notification. After that, any edits that come in via the undoableEditHappened() method get added to the CompoundEdit instead of directly to the undo stack. When it receives the second notification, the UndoManager ends the CompoundEdit and adds it to the undo stack. Here's a very simplistic example: public class SuperUndoManager extends UndoManager
      // basically just a CompoundEdit with a 'name' attribute.
      private NamedCompoundEdit currentEdit;
      public void beginCompoundEdit(String name)
        currentEdit = new NamedCompoundEdit(name);
      public void endCompoundEdit()
        currentEdit.end();
        addEdit(currentEdit);
      public void undoableEditHappened(UndoableEditEvent evt)
        currentEdit.addEdit(evt.getEdit());
    } The biggest problem is getting the clients (i.e., JTextComponents and the Actions defined in their EditorKits) to call these methods without having to do something drastic like replacing them all. I think it can be done (he said with a barely noticeable quaver in his voice).

  • Is there a way to use locations to do more than just basic network config?

    Hello,
    I'm trying to figure out if the network location can be used to do more than just the basics. For example, is there a way to automatically connect to network drives when I'm at a particular location? Trying to connect to them all the time (as a login item for example) makes the computer slow down whenever I'm at a different location. Also, is there a way to change the default printer or even sharing of pictures or music? It doesn't make sense to have a default printer something that's not available anymore at my new location, right?
    What would be the best way to automatize all this (if it's not already supported?)
    Many thanks in advance,
    Adrian

    You can create many calendars. Here's the tip:
    Example: you have 1 son and 1 daughter.
    In iCloud ( https://www.icloud.com )
    Create 1 calendar called Son ( Choose a color to tell them apart )
    Create 1 calendar called Daughter ( Ditto )
    Create 1 calendar called Kids
    Since you are the creator, you get to see all calendars combined.
    Send invitations to each of them
    Son gets Son and Kids calendars
    Daughter gets Daughter and Kids calendars
    So if there an event for Son, just put in that calendar
    If it's for both then enter it in the Kids calendar
    Likewise for daughter.

  • "Last Month" in RECENT shows a lot more photos than just last month's photo

    For some reason when I select "Last Month" in RECENT (on the left) I get a lot more photos than just last month, it seems like just about all the photos from the current year!
    Any one else running into this problem?
    By the way, my library was originally created using iPhoto '07 and I upgraded when iLife '08 came out.

    Indeed that is the case but it sounds to me like a bug and not a feature.
    I agree - but since this is just a user forum that is all I can do
    report to Apple -- iphoto menu ==> Provide iPhoto feedback - they can change it
    Larry Nebel

  • Provide more than 16 characters on BKPF-XBLNR

    We have a request to make available more than 16 characters on field BKPF-XBLNR for input.
    Short to background. We are using IHC for vendor payments. The vendor payments from our affiliates are managed  on IHC. The IHC carry out all payments to external banks centrally. Some of our vendors (especially tax offices or public organizations) requested to have payment information which are longer than 16 digits. Usually the payment information are entered on the field BKPF-XBLNR and transferred via PAYEXT-IDocs into the IHC payment process.
    We found SAP notes with regards to Brasilia but all of these are not valid for us.
    Does anybody know a solution or workaround to provide more than 16 characters for payment information by use of field BKPF-XBLNR?
    Thanks
    Jakob

    If the field has only 16characters, then you really cant enter morethan 16 characters.
    If you want to do that, there are 2 options.
    1. Change the domain of that field to the number of characters you want. In this case, please note that all the fields having this domain will get changed. So you need to make an implication analysis for this and then do.This work is done by an ABAPer
    2. Make a new field in BKPF and fill that field instead of filling XBLNR. Second one is easy and without any strings attached. But it involves little bit of development.
    Also post this question in Development forum if both of these dont serve your purpose.
    Hope this helps you.
    Reward if this helps.

Maybe you are looking for

  • GR/IR clearing account is being assigned to a acct assignment object

    Hi there! My key-user asked me a question which I really don't know how to answer.  He asked me about the reason why in an accounting document automatically generated by MIRO the item which contains the GR/IR clearing acct is always assigned to an ac

  • Computer won't recongize ipod

    I have an Ipod touch 5th gen. I've had it for 11 months. Around a month ago I pluged it into my laptop to sync the photos. In the middle of syncing the laptop's battery ran out and ever since then autoplay won't come up. Because of this the ipod is n

  • Set MARGIN  of Printer with REPORT6

    I have some reports and to print some of them, the margin of prinetr must set to .5 and user must set it before any print. how can i set it in report builder with code or is there any way to solve this problem. and users dont do this.

  • Screensaver based on smart album doesn't respect stacks

    Here is my issue. I want to select all my holiday photos to appear in my screensaver. I have done this by assigning them all a colour category and creating a smart album to select that colour then pointing the screensaver at the smart album. This wor

  • Safari not opening .asp pages

    safari not opening .asp pages i am running safari 6.0.5