How to use different (not local) user for NTLM auth in Authenticator?

Hi All,
I use custom authenticator to provide user / passwords to connect to .NET Web Services. I overloaded function getPasswordAuthentication() that returns right user / password combination for the requested URL. It all works perfectly for many kinds of HTTP connections: basic, ntlm, ntlm-v2, through proxy, ssl, etc.
My problem is that during NTLM authentication from Windows computers JVM uses credentials of the currently logged in domain user instead of calling Authenticator to get other user / password provided by the user. In case when local user credentials fail to authenticate, JVM calls my Authenticator but in case authentication is successful it does uses local domain user and never calls my Authenticator. The issue is when this local domain user does not have enough permissions but authenticated correctly there is no way to supply JVM with another user to begin with.
What can I do to force JVM to ignore local domain user and to use Authenticator to collect credentials during NTLM authentication requested by the server in case the software runs on a Windows box with currently logged in domain user?
I am looking for the answer for a long time already but found only questions and suggestions to switch server from NTLM authentication which is not an option for me. From the developer's view it has to be pretty simple change for Sun to do in Java networking API. Is there any way to escalate it to Sun support? Maybe there is some property in some JRE patch level that allows to do this?
Thank you very much!
Mark

Thank you for the reply. I have kind of an opposite problem. I can perfectly connect from Linux computers to Microsoft IIS servers using NTLM or even NTLMv2 authentication. My problem is connecting from Windows client computer joined to the same domain as IIS server with the domain user logged in to this computer. In this case this user account will be used in any HTTP connections I initiate to this IIS server instead of the one that I want to supply in my custom Authenticator.
I have graphical interactive application that connects to IIS Server. When user runs it and connects to IIS server I want to prompt for the user/password regardless whether JRE may correctly authenticate using current user account credentials. The current user may not have enough permissions in IIS application so I want to use different user to login to IIS application.
Thank you anyway,
Mark

Similar Messages

  • How to use different default parameter value for different report subscriptions

    In ssrs is it possible to define different default parameter values for different subscriptions? In the following example I have a report which has two subscriptions with different start date and end date values:
    Report name – Testsubscription.rdl
    Subscription-1
    Input parameter (default values):
    start_date = first day of current Month
    end_date = till date
    Subscription-2
    Input parameter (default values):
    start_date = first day of current Quarter
    end_date = till date
    I know an alternative way of doing this would be to copy the rdl file with a different name but I am curious whether this can be done within a single report definition file. I am using SQL Server 2008 R2 Standard Edition.
    Thanks!
    spp

    Hi sppdba,
    As per my understanding, there is a report with two parameter: start_date and end_date, you want to configure subscription for the report, and set different default values for start date and end date. And you want to know if it is possible to achieve you
    goal by using a single report definition file.
    Since you are using SQL Server 2008 R2 Standard Edition, we need to achieve your goal by configuring two subscriptions for the report. For detail information, please refer to the following steps:
      1. In design surface, right click start_date and open Parameter Properties dialog box.
      2. In General pane, type Name and Prompt, set Data Type to Date/Time.
      3. Click Available Values in left pane, select Specify Values.
      4. Click Add button, in Label text box, type “First day of Current Month”, click (fx) button in Value section, then type the expression like below:
    =DateSerial(Year(Now()), Month(Now()), 1)
      5. Click Add button, in Label text box, type “First day of Current Quarter”, click (fx) button in Value section, then type the expression like below, then click OK.
    =DateSerial(Year(Now()), (3*DatePart("q",Now()))-2, 1)
      6. Right click end_date and open Parameter Properties dialog box.
      7. In Available Values pane, select Specify Values.
      8. Click Add button, in Label text box, type “Today”, click (fx) button in Value section, then type the expression =Today(), then click OK.
    Now that the parameters are created, we need to configure subscription for the report. For detail information, please follow these steps:
      1. Open Report Manager, and locate the report for which you want to create a new subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Subscription.
      5. Select the delivery extension and data source for the subscription.
      6. Select a method of delivery, then choose report delivery options.
      7. Specify conditions that cause the subscription to process and delivery to occur.
      8. Set start_date to First day of Current Month, end_date to Today, then click OK.
      9. Create a new subscription as step4 to 7, set start_date to First day of Current Quarter, end_date to Today, then click OK.
    The following screenshots are for your reference:
    For detail information about Creating Standard Subscriptions, please refer to the following document:
    http://msdn.microsoft.com/en-us/data/ms156307(v=sql.105)
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • Vsftpd: How to mix virtual and local users for pam?

    Hello,
    I've been stumped on this for many days, hope someone could shed some light for me.
    vsftpd.conf
    pam_service_name=ftp
    local_enable=YES
    chroot_local_user=YES
    guest_enable=YES
    guest_username=virtual
    virtual_use_local_privs=YES
    /etc/pam.d/ftp
    auth sufficient pam_userdb.so db=/etc/vsftpd_login crypt=hash
    account sufficient pam_userdb.so db=/etc/vsftpd_login crypt=hash
    auth required pam_unix.so
    account required pam_unix.so
    since /etc/pam.d/vsftpd is missing, I've grabbed some from /etc/pam.d/login
    The thing is that, when I login with local user, I got chrooted to virtual home instead. If anyone can give me some advice, that would be great, thanks.

    *bump*
    cookies for anyone who can answer

  • JTree how to use different font's color for different node

    Hi all
    This is the first time I am using JTree in my application and I have got some problems with it that I can't work out after reading the Java tutorial. Please help!
    1. For some nodes, the font color need to be different.
    2. One node need to use more than one font type for example "This is a sample " some words need to be bolded.
    Kind regards
    Edmond

    Did you read the section on [url http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#display]Customizing a Tree's Display?
    And did you follow the link on renderers?

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • How to use different page scapes in smartforms

    hi
    How to use different page scapes in smartforms.
    I want Potrait format in the 1st page and Lanscape format in 2nd page is it possible if so plz suggest me an idea

    Hi,
    It is possible in smart forms, but not in scripts.
    we can have 3 tabbed options for pages in smart forms.
    <b>General...
    Output options
    Conditions</b>.
    In <b>output options</b> u can define whether a page can portrait or land scape in <b>print attributes</b>.
    Reward if helpful.
    Regards,
    Sandhya

  • How to use 'DELETE ADJACENT DUPLICATES FROM' for deleting as some field

    How to use 'DELETE ADJACENT DUPLICATES FROM' for deleting as some field
    eg:
    I have a inner table ,it contains a field named ast_guid,now,I search ten records,contains some duplicate records in the field of ast_guid.but I can not delete the duplicate records as ast_guid.

    If the type of  inner table is standard table,  you should sort the inner table  by the fields before user 'DELETE ADJACENT DUPLICATES  ', and use COMPARING addtion.
    Edited by: Justin on Jun 28, 2009 9:48 AM

  • SMP3 - AppDevelopment (Agentry):how to use GCM (Google cloud Messaging) for Agentry Application.

    Hi, I have a question on SMP3 and AppDevelopment (Agentry): how to use GCM (Google cloud Messaging) for Agentry Application for PUSH notification

    Pratik,
    Let me walk you through the flow with the assumption that the user is on an Android device and "connected" to the Agentry server.
    An emergency workorder is created in SAP and assigned to the technician. 
    The SAP backend system will notify the Agentry server via an XML message that there is a workorder to send.
    Agentry will get the details and if the user is connected attempt to send the workorder to the device via the Push mechanism
    If the push fails to reach the Agentry client, the Agentry server will send a GCM message to the user
    When the user returns to the Agentry client, the normal push processing / fetch will occur to receive the workorder from the server assuming the push retrys are in effect.
    So, essentially you should not have to do anything to get the GCM to work as a secondary notification mechanism.
    If you are looking to do something else with GCM that would be outside of Agentry.
    --Bill

  • How to handle different languages in Illustrator for big clients?

    Hi Guys,
    I need small suggestio for 'How to handle different languages in illustrator for big clients'. For instance; Arabic, this is a language which  needs to be read from right to left instead of left to right. There are  other strange languages as well (Cyrillic, Chinese etc.). It happens  also that when you copy strange languages from a word file it will not  be easy to paste it the correct way in a .ai file. Besides that, it’s  also difficult to do a language check when we are not able to read it!. So,  to make a long story short, I want to figure out how we can deal with multiple language  circles?
    Can you some please give me the solution for this...
    Thanks in advance...
    HARI

    I take it you might come from an arabic background.
    Here is how you can help yourself to some degree.
    Google has a translation feature and service which is at the moment free. It is excellent.
    Secondly if you are working with ME languages you really need the ME version of Illustrator or any other Creative Suites Application in order for it to work properly.
    It, is also best to enable the language and the input for that language for your system on the Mac it is easy you go to the Language and text feature in theSystem Preferences, once enabled you can select the fro the menu bar under the American flag if you are in the US. Thst will appear once you have more than one language selected.
    You select the language input you need and then a font for that language then paste and edit.
    You need fonts on your computer that are of those languages as well.
    How to manage this as a work flow well that is something you will have to work on yourself or hire a consultant who specializes in this area.
    We had a few visit here when they have come across a snafu. So they exists.

  • IS-Retail:how to maintain different unit of measures for a article

    hi experts,
                    can anyone tell me how we maintain different unit of measures for sales and purchasing for a article.base unit of measure,order unit,var unit.Hope for a good answer.
    Regards

    Hi,
    Go to MM42, select basic data view
    In,Units of measure/ EANs /dimensions sub tab
    there u can see four radio buttons
    B.Un    Unit of measure is base unit (used internally only) 
    O.Un    Unit of measure is the order unit                             - Purchasing
    D/L.Un  Unit of measure is delivery unit/issue unit              - Logistics
    S.Un    Unit of measure is the sales unit                             - Sales
    for eg:
    First line enter EA (each) or PC (piece) in Auom for a material and  enter 1 in Number and select radio button for B.Un
    Second line enter CT (carton) in Auom and  enter 10 in Number and select radio button for O.UN (when you creating a PO it UOB automatically picks as CT)
    Third line enter PALin Auom and enter 50 in Number and select radio button for D/l .UN (when u creating a delivery UOB picks as PAL ie pallets)
    Fourth line enter EA or PC and enter 1 in Number and select radio button for S.UN (when u creating a Sales order UOB picks as EA or PC as u defined)
    Mohan

  • How to use advanced tab in user reports?

    Hi,
    How to use "advanced" tab in user reports?
    I have two reports. I fill "Report ID" in both and then I can push "Add Report" and fill fields property.
    Then I'm can "drill" from one report to another on right click, but how to pass parameters?
    Is it even possible?
    Regard
    Libor

    Thank you for reply.
    I can't get it working.
    I have two reports:
    1. report:
    Name: test
    SQL: select 1 NUM, 'text' TEXT from dual;
    On advanced tab:
    ReportID: -null-
    Name: test2
    Report: Test2
    2. report
    Name: test2
    SQL: select :NUM from dual;
    Now, when I run the first report and click do right click on a row and select TEST2
    from popup menu, it navigates to the second report test2, but WITHOUT actual value
    from NUM column from first report.
    I'm using latest version of SQL Developer (1.1.1.25) and I like reports.
    With this feature it would be even better.
    Regards
    Libor

  • How to use find my iPhone app for windows pc

    How to use find my iPhone app for windows pc ... Is it possible to do..
    Or what is the closest app to do that.,,,,,

    iPhone User Guide (For iOS 5.0 Software)
    iCloud: Find My iPhone
    iCloud: Find My iPhone overview
    iCloud: Set up Find My iPhone

  • How to use the same email address for outgoing email on two iPads?

    How to use the same email address for outgoing email on two iPads?.   My wife and I both use the same email address.  We receive the same incoming email on both iPads but are unable to send email from my wife's iPad.  She is using an iPad 2 and is usng IOS 6.0.1

    Hi Creaturekeeper,
    If you've added the account into the iPad and you are unable to send email from it, then please follow the troubleshooting in the article below.
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Take care,
    Alex H.

  • How to use the field of 'FM for Determining Address' in report RSWUWFML2?

    Dear gurus,
    In the selection screen of report RSWUWFML2, there is a field named 'FM for Determining Address' . How to use it? Is it for sending e-mail to specific e-mail addresses?
    Regards
    David

    I will test soon. Thanks to all involved.

Maybe you are looking for

  • External GPU question!!!

    I recently bought a mid-2012 macbook pro 13 inch (high end) without realizing that I would get into PC gaming.  The stock graphics card, Intel HD Graphics 4000, is not powerful enough, by far, to run the games I want it to, such as MW3 (and blops 2 w

  • No Ping-Answer in Site-To-Site-Connection between Cisco 876 and CheckPoint-Firewall

    Hello! We try to establish a Site-To-Site-IPSec-connection between a Cisco 876 (local site) and a CheckPoint-firewall (remote site). The Cisco 876 is not directly connected to the internet, but is behind a DSL-Router with port-forwarding, forwarding

  • Updating without erasing original

    I just bought a Nano for a friend's birthday and want to load it before I give it to him. A friend has some music in her library that he would like. Is there a ways that she can load her songs and then I can take it and load mine without erasing hers

  • Having trouble with macbook pro dock at the bottom of the screen

    I have a 13'' macbook pro, and i now have 2 different docks at the bottom of my screen. One is functional and the other one is not. How to i get rid of one of the docks?

  • JFS2 CIO (concurrent i/o) & RMAN backup files Options

    Hello, Does anyone have good or bad experience storing RMAN backup files & datapump or export files with CIO enabled jfs2 file systems on AIX 5.3 & Oracle 10gR2? Is that supported? Metalink and IBM documents are not very clear about these files... i.