UsernamePasswordLoginModule does not appear to be authenticating

I'm trying to authenticate with WebLogic 10.3 from a Java client via JAAS. I'm using the JAAS config that comes with WebLogic:
Simple {
weblogic.security.auth.login.UsernamePasswordLoginModule required debug=false;
The Subject I receive is not populated with any Principals. In addition, LoginContext.login always returns true, even if I supply a bogus username and/or password. The code I use for logging in is as follows:
try {
loginContext = new LoginContext("Simple", new LoginCallbackHandler(username, password, url));
loginContext.login();
return true;
catch (Exception e) {
e.printStackTrace();
return false;
My callback handler is as follows:
     class LoginCallbackHandler implements CallbackHandler {
          private String url;
          private String username;
          private char[] password;
          public LoginCallbackHandler(String username, char[] password, String url) {
               this.username = username;
               this.password = password;
               this.url = url;
          * (non-Javadoc)
          * @see javax.security.auth.callback.CallbackHandler#handle(javax.security.auth.callback.Callback[])
          @Override
          public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
               for (Callback callback : callbacks) {
                    if (callback instanceof NameCallback) {
                         NameCallback nc = (NameCallback) callback;
                         nc.setName(username);
                    else if (callback instanceof PasswordCallback) {
                         PasswordCallback pc = (PasswordCallback) callback;
                         pc.setPassword(password);
                    else if (callback instanceof URLCallback) {
                         URLCallback uc = (URLCallback) callback;
                         uc.setURL(url);
                    else {
                         System.out.println(callback);
I'd really appreciate any help I can get. This has me stumped. (I'm not very experienced with WebLogic, so many things may have me stumped at this point.)
Thanks,
Mike

Thanks for your response, Faisal, but I finally figured it out. It was a classpath problem. I was running the client from within Eclipse and was using the runtime classpath Eclipse generates from the build path. Because of project dependencies, the client had a lot of unnecessary Weblogic libraries in the classpath. After I rebuilt the classpath from scratch, the authentication worked. It was probably picking up UsernamePasswordLoginModule from somewhere other than wlfullclient.jar.

Similar Messages

  • I want to know if there is an update recently put out by Firefox through Yahoo. To me, it does not appear authentic.

    I rec'd an email fm Yahoo stating to upgrade my Firefox. It does not appear to be an official site.

    iOS device backups are stored in your iTunes library.
    Move your iTunes library to an external drive.

  • My iMessage does not appear to be working. Every time I go to reply to an existing message it just appears as normal text. I have tried to create a new message but it still just defaults to normal messages. I have checked my settings but looks ok. Help?

    My iMessage does not appear to be working. Every time I go to reply to an existing message it just appears as normal text. I have tried to create a new message but it still just defaults to normal messages. I have checked my settings but it is all set up as it should be. Is there anything I've missed or could try? Thanks

    Try the following:
    In Finder, select the problematic volume and then press command-I.
    Expand the Sharing & permissions section if it's collapsed.
    If the section is locked, then unlock it by pressing the padlock button and then authenticating as directed.
    Tick/check Ignore ownership on this volume.

  • SSRS Subscription - Email does not appear in the list

    Hi!
    I had some reports on ssrs and I want to send them by email. I've read that the option "email" shoul appear on the list "Delivered by".Does anyone knows why
    IT DOES NOT APPEAR (edited)?
    Thanks
    <edit2>I'm using SQL Server 2012 BI Edition & Microsoft Visual Studio 2008 running on Microsoft Windows Server 2008 R2</edit2>

    Hi Menri,
    According to the code you post, I find that there are some incorrect settings in your rsreportserver.config file. For more details, please see the followings:
    SMTPServerPort: Specifies an integer value indicating the port on which the SMTP service uses to send outgoing mail. Port 25 is typically used to send e-mail. So we should set this value to 25.
    SMTPAuthenticate: Specifies how the report server connects to the remote SMTP server. To send e-mail to restricted distribution lists (for example, distribution lists that accept incoming messages only from authenticated accounts), set SMTPAuthenticate
    to 2.
    SendEmailToUserAlias: When SendEmailToUserAlias is set to True, users who define individual subscriptions are automatically specified as recipients of the report. The To field is hidden. If this value is False, the To field is visible.
    DefaultHostName: This value works with SendEmailToUserAlias. Specifies a string value indicating the host name to append to the user alias when the SendEmailToUserAlias is set to true.
    The code in my environment is for your reference:
    <Extension Name="Report Server Email" Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider">
    <MaxRetries>3</MaxRetries>
    <SecondsBeforeRetry>900</SecondsBeforeRetry>
    <Configuration>
    <RSEmailDPConfiguration>
    <SMTPServer> smtp.gmail.com</SMTPServer>
    <SMTPServerPort>25</SMTPServerPort>
    <SMTPAccountName>
    </SMTPAccountName>
    <SMTPConnectionTimeout>
    </SMTPConnectionTimeout>
    <SMTPServerPickupDirectory>
    </SMTPServerPickupDirectory>
    <SMTPUseSSL>
    </SMTPUseSSL>
    <SendUsing>2</SendUsing>
    <SMTPAuthenticate>2</SMTPAuthenticate>
    <From> [email protected]</From>
    <EmbeddedRenderFormats>
    <RenderingExtension>MHTML</RenderingExtension>
    </EmbeddedRenderFormats>
    <PrivilegedUserRenderFormats>
    </PrivilegedUserRenderFormats>
    <ExcludedRenderFormats>
    <RenderingExtension>HTMLOWC</RenderingExtension>
    <RenderingExtension>NULL</RenderingExtension>
    <RenderingExtension>RGDI</RenderingExtension>
    </ExcludedRenderFormats>
    <SendEmailToUserAlias>False</SendEmailToUserAlias>
    <DefaultHostName>smtp.gmail.com</DefaultHostName>
    <PermittedHosts>
    </PermittedHosts>
    </RSEmailDPConfiguration>
    </Configuration>
    Please refer to the helpful documents below:
    http://technet.microsoft.com/en-us/library/ms159155.aspx
    http://msdn.microsoft.com/en-us/library/ms157273.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • My disc drive on my imac does not appear to be working. It takes the disc in but then spits it out without reading it. I have thought about purchasing an external disc drive, can someone advise me please?

    My disc drive on my imac does not appear to be working. It takes the disc in but then spits it out without reading it. I have thought about purchasing an external disc drive, can someone advise me please?

    Try the following:
    In Finder, select the problematic volume and then press command-I.
    Expand the Sharing & permissions section if it's collapsed.
    If the section is locked, then unlock it by pressing the padlock button and then authenticating as directed.
    Tick/check Ignore ownership on this volume.

  • Import Data Option Does not appear in navigation

    I need to test the import capabilities as a Developer, but I do not see the options that are referenced in the help.
    I installed NAV Dynamics 2013 R2 Developer Version on a development computer with "SQL Server 2014 - Developer" installed. I copied a demo company. The option "Import from Data File" does not appear under Departments/ Administration/
    IT Administration/ General. Many other options are also missing.
    I reviewed the security setting for the Domain User and enabled the db_owner and db_AccessAdmin for the user. It was installed with the same administrative user account and the user has SysAdmin rights.
    I assume that this is some sort of security/authentication issue, but I also saw references that certain things are disabled in the demo. I can perform most basic functions, but many administrative functions are not visible.
    How can I enable \the import capabilities?

    Hi Jim,
    this is a Dynamics CRM forum, for Dynamics NAV you can post your questions here:
    https://community.dynamics.com/nav/f/34.aspx
    My blog: www.crmanswers.net -
    Rockstar 365 Profile

  • ESM Client login does not appear

    Hello,
    It seems somethings not working as expected.
    When a new user log to a workstation the ESM Client login does not appear. So the user inherits policy applied to the first user that log in with ESM Client.
    On properties of the ESM client I have:
    Authenticated user: [first] user that login (Local User: [Actual user logged in the workstation).
    Any idea?
    Thanks in advance.

    micgra,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Since upgrading to 5.1, my oncreen keyboard does not appear when it needs to

    since i have done the upgrade, my on-screen keyboard does not appear when it needs to.  I keep having to restart my system to make it happen....  Is there a special way to display the keyboard manually, or should it be automatic?

    Hellow keith5000 ,
    regarding your issue lets see what we can do to solve this issue.
    - have you tried safe boot
    safe boot = starting up the mac with the SHIFT- button.
    - when entering safe mode you will be able to enter and quick change some settings
    now next question do the unwanted aplications still load in safe mode , if so
    go to the Apple icon -> System preferences -> user & groups -> login items (top right on the screen from user & groups window)  now at login items u can close any unwanted aplications by deleting them or unmarking them
    - unwanted aplications will now disapear when starting up your mac os x system
    - next issue should be your authentication , this will be a bit more tricky , lets see
    same category user & groups and u will see your admin account try seeing if u have enabled the admin account right click on your admin account to see information about it and compare it if your info is correct , next see if you have authorized your admin account to write & read.
    if these still don't work , make a test account to see if this problem is user wide or system wide.

  • I am trying to set up Sharing amongst several computers on my home network.  I have followed all the setup instructions but after completion Sharing does not appear in my iTunes window (on any of the computers I've set up).  There is no explanation why.

    I have been trying to set up Sharing between two computers on my network. I did this once and it worked.  However, when I try to set this up now the Sharing feature does not appear on the left side of the iTunes window (on either computer).  There is no explanation as to why not.  Is this a configuration problem, a network problem or what?   Can it be fixed?  I have tried turning sharing off and back on on both computers but to no avail.  What am I missing?  Thanks for any help you can provide.

    Hey innerev2003,
    Thanks for the question, and welcome to Apple Support Communities.
    If, while searching through your past purchases, items are unavailable to download and show a "Purchased" button, they are still on your computer. It may be best to search your iTunes library by clicking Music, then use the search bar at the top right.
    If you are completely sure the items are no longer in your library, try signing out of the iTunes Store, and then back in.
    iTunes 11 for Windows: Manage your iTunes Store account
    http://support.apple.com/kb/PH12507
    Thanks,
    Matt M.

  • Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Reboot the machine holding Command and r keys down, you'll boot into Lion Recovery Partition
    In there will be Disk Utility, use that to select your Lion OS X Partition and Repair Permissions.
    After that is done reboot the machine and see if you can log in.
    If not repeat the above steps to get into Lion Recovery, get online and reinstall Lion again, it will overwrite the installed version and hopefully after that it wil work.
    Reboot and try again.
    If not follow my steps to create a Snow Leopard Data Recovery drive, then option boot from it and grab a copy of your files off the machine.
    Then reinstall all your programs onto the external drive like setting up a new machine, then use Disk Utility to erase the entire internal boot drive (select the drive media on the far left, not the partiton slightly indented) format Option: GUID , 1 partition OS X Extended and then use Carbon Copy Cloner to clone the external to the newly formatted internal drive. Once that is finished reboot and disconnect the external drive.
    Once you go that, boot into Snow Leopard and update to 10.6.8, use the AppStore and option click on Purchases and download Lion again and install.
    Lots of work, but there is no Lion disks.
    https://discussions.apple.com/message/16276201#16276201

  • BPM Application Link does not appear in BPM Workspace (11.1.1.7)

    I spent huge amount of time to reveal why does that happens.
    All that follows further is valid for BPM Suite 11.1.1.7.
    The scenario.
    You developed a simple BPM process with Initiator pattern (maybe by following the "Quote Request" tutorial).
    But the application link did not appear in BPM Workspace.
    Here i'm skipping any kind of mistakes as "oh, incorrect swimlane", "oh, i did not include the user to the app role" and so on.
    At first, you should know about the "feature" - You have to attach task form to the Initiator Human Task to see the App Link.
    The simplest way to do that is to AutoGenerate task form (and deploy it, of course).
    Else the Appication Link will not appear.
    One exception to this rule - If your Task HAS NO PAYLOAD (no parameters) the Task Form is not required (to appearing of the Application Link).
    The second find is a bug (is think so).
    If you edited the Role that Attached to the swimlane of Initiator Task, you will not see the Application Link.
    If you look to organization.xml you will see something like this:
            <ns1:applicationRole id="StartTask.InitRole" isProcessRole="true">
                <ns5:name>StartTask.InitRole1</ns5:name>
                <ns1:processRole id="InitRole" name="InitRole1"/>
            </ns1:applicationRole>
    The Application Link will appear ONLY IF THE "applicationRole id", "applicationRole name" and "processRole id" have the same value.
    When you edit name of the application role in Organization Editor you change "applicationRole name" and "processRole name" values.
    After that "applicationRole id" != "applicationRole name" and the Link does not appear.
    How to fix?
    Just edit organization.xml (with external editor) - change the "applicationRole name" to the value of "applicationRole id".
    That allows to have value of "processRole name" something like "The Initiator Role" - that value appears in the BPMN diagram of process.
    Also you can edit organization.xml with Organization Editor and set the Name to the value of "applicationRole id".
    In that case the associated swimlane will have the same name as the "applicationRole id".
    Hope this helps somebody
    Oleg

    Flash Player is a browser add-on, not an executable program.
    If you need to open a local SWF file you will need the standalone player (Projector) from http://www.adobe.com/support/flashplayer/downloads.html
    Note that the download is the player, not an installer, so you will need to make the file association manually.

  • File Place does not appear on my menu. Neither does Tools Photoshop Image processor.

    In Bridge File>Place is grayed out on my menu. Tools>Photoshop>Image processor does not appear at all.  I have reset the preferences numerous times and am good to go until I shut down my computer.  When I reboot they are gone again.  I have a Mac with OS 10.10.2 (Yosemite) and CC. 

    Mardi Carter wrote:
    I shut down using "Shut Down" under the Apple menu.....always…
    Well, that's fine for the OS, but sometimes not so great for Photoshop.  Try QUITTING Photoshop from the Photoshop menu, or by Command Q, before you get anywhere near your Apple menu .
    Gene gave you sound advice, but don't forget to run Repair Permissions with Apple's Disk Utility before and after any installation, upgrade or update of the OS or any application.
    You'd think that shouldn't be necessary, but it is indeed vital, indispensable routine maintenance.
    Forget about "it had never happened before", Yosemite is a work in progress.  Apple never gets a major OS X release right until about the dot four or five release, so Yosemite has a way to go before it's at 10.10.4 or 10.10.5.  That has proven to be the nature of the beast.

  • Adobe Creative Cloud (Desktop) does not work properly. The application is blocked : it could not be launch neither stopped. I'm on MAC Yosemite OS, does anyone know how to remove it properly or to force its stop. It does not appear in the launched applica

    Adobe Creative Cloud (Desktop) does not work properly. The application is blocked : it could not be launch neither stopped. I'm on MAC Yosemite OS, does anyone know how to remove it properly or to force its stop. It does not appear in the launched applications.

    I received no error message. The application was just trying to find applications unsuccessfully.
    I am using MAC OS 10.10.1
    I tried to uninstall the application  but it seems that a kind of deamon is still installed thus providing me to reinstall properly. Do you know where are the elements to remove in order to get my machine just like before ?
    Otherwise I would have to reinstall everything and this would be a pain.
    Thanks for your help.

  • HT204266 I downloaded AirPlayIt yesterday from the app store.  It was on my iPad yesterday.  Today, however, the app icon does not appear on my home screen.  When I go into apps it is there but it doesn't have an "Open" choice.  There is only a cloud with

    I downloaded AirPlayIt yesterday from the app store.  It was on my iPad yesterday.  Today, however, the app icon does not appear on my home screen.  When I go into apps it is there but it doesn't have an "Open" choice.  There is only a cloud with an arrow pointing down.  When I click on the app it pops up but there is no open button.  How can I remove it?  Tapping it won't work as it isn't on my home screen.

    You'll have to contact the developer about this. Apple doesn't make this app;

  • Media Manager does not appear on my second stb

    I downloaded Verizon Media Manager and installed it without problems.  When I checked my HD stb the program is listed and I could use it.  I do not have any kind of recorder on the network.  When I check my non HD stb the VMM does not appear.  This is the unit I want to use as it will allow me to play music through the home theater sound system.
    So, am I limited because I do not have a recorder or does the feature not work on non HD stb?  If this is the case, I might as well delete the program from my PC.
    Solved!
    Go to Solution.

    Hi. I apologize for the inconvenience. Unfortunately at this time, the standard def STBs do not work with Media Manager. It doesn't have to be a DVR, but the stb has to be an HD box. If you do not wish to upgrade the STD box at this time and depending on your setup, you can always swap the STBs and move the media manager functionality to where you want it. 

Maybe you are looking for

  • PLEASE add the ability to rename layers in Muse!

    Adobe, please allow us to rename ANY layer in Muse so we can know what each layer is. This is a very basic feature of nearly every Adobe software available and should be included in Muse ASAP. It is so difficult to find objects when the majority of t

  • Help!  I'm stuck on the Task Bar and I can't get up!

    I recently upgraded to Premiere Elements 8, and now I can start the program but as soon as I open a project the window minimizes to the task bar.  I can not restore the window to show-up on the screen.  The Organizer works OK, and the Adobe startup w

  • Cash Account required - Payments

    Hi Experts, When trying to process a payment I get a system message - Cash Account required, choosing a different account may cause inaccuracies in the cash flow report. Does anyone know what this means? Is there a specific account I need to link in

  • Local currency showing higher value in BW compared to ERP - Sales report

    Hi, My sales report is showing higher value in BW report compared to ERP e.g the report is showing 567,01 and in ERP it is showing 566,94. is there a way I can resolve this in the query. thanks

  • Regex excluding a certain string

    Hi I have a question about how to search the strings that are in between a "start" and an "end". The results should not contain the word " cat ". All the strings with the format "start xxxxx yyyy end" that do not contain the word " cat " are valid. T