Proxy Credentials

Hello I'm using JWS and my application uses HttpClient so I need to set HttpClient's proxy properties, I can request to JWS for host and port for proxy but not for user credentials...
Does any body knows how to get the proxy's credentials from JWS
David Casta�eda

Latest version of Java can do this beter (Java SE 6) , by accessing the user credentials in the browser (for some browsers) but I don't know how you could access this information in you application.
/Andy

Similar Messages

  • Itunes 11 and above. Proxy credentials

    How do i get itunes 11 and above to ask for proxy credentials like they did in 10.7?

    If you have a 4G iPod (one with cameras) you can only go to iOS 6.2.1 and that requires iTunes 10.7 or above.
    If you have a 3G you can go to 5.5.1 with iTunes 10.5 or later.
    A 2G can only go to 4.2.1
    Identifying iPod models
    you can update on another computer with the right version of iTunes but you will not be able to sync with your computer unless you update iTunes on your computer.

  • Proxy credentials not remembered

    Dear all
    please be assured we have tried many, many things already, including clearing caches, keychains, even fresh installs. We have many, many macs in use at our College, a good number of which suffer from this issue.
    The OSX version varies, as does the model of Macbook, but the problem is often the same. The proxy credentials are in the keychain but Safari, App Store, Chrome and other apps do not seem to 'find' them. Alternatively I have tried assigning the proxy settings against HTTP and HTTPS proxy config in the Network System Preference pane, again this does not help. We also have a WPAD file in place so that auto proxy configuration works. And work it does! But sadly, while I can see that the autoconfig is working because the correct proxy server requests credentials, this method still does not cause the Macbook(s) to retrieve and use credentials.
    This only seems to affect HTTPS connections, e.g. to https://www.google.co.uk - which of course is Safari's default in-line search.
    My only clue so far is a line from the system log on one of the Macbooks, but it doesn't really give a fix - again this line is only generated and the problem seen when attempting to access an HTTPS site:
    Nov 11 11:43:19 usersmacbook.ourdomain.com ocspd[411]: Authentication challenge received for "proxy.ourdomain.com:8080", unable to obtain proxy server credential from System keychain.
    Please be assured the credentials are most definitely there!
    Any help with this issue would be greatly appreciated - particularly with the frightening rate at which the number of students using Macbooks seems to be growing!
    Kind regards
    Richard

    Yup:-
    Just the same:-
    Nov 11 11:16:41 teds-new-mac.ad.mycompany.co.uk ocspd[537]: Authentication challenge received for "10.203.39.212:8080", unable to obtain proxy server credential from System keychain.
    Nov 11 11:16:45 teds-new-mac.ad.mycompany.co.uk ocspd[537]: Authentication challenge received for "10.203.39.212:8080", unable to obtain proxy server credential from System keychain.
    Nov 11 11:16:52 teds-new-mac.ad.mycompany.co.uk ocspd[537]: Authentication challenge received for "10.203.39.212:8080", unable to obtain proxy server credential from System keychain.
    I'm at a loss.
    Safari won't go on to ANY HTTPS address:- Swithched to Firefox which seems quite happy with it all.
    Also, when I try the APP STORE, it generates multiple entries of the same line, and brings up the following box:-
    The following line also appears in Console (system log):-
    Nov 11 12:56:19 teds-new-mac.ad.mycompany.co.uk ocspd[1336]: You can specify the username and password for a proxy server with /usr/bin/security. Example:  sudo security add-internet-password -a squiduser -l "HTTP Proxy" -P 3128 -r 'http' -s localhost -w squidpass -U -T /usr/sbin/ocspd /Library/Keychains/System.keychain
    So it's DEFINITELY looking in the system keychain.
    Q.
    This seems too easy - but would copying the entry from login keychain and pasting it into system keychain solve the problem?
    Or would it totally screw things up?
    Message was edited by: ttreen1950

  • Is it possible to Cache Proxy Credentials in J2RE

    Our users access the internet through a proxy server that requires authentication. When users access an internet site that contains Java content the J2RE requests for Proxy credentials. I underestand why this happens but have the following questions...
    1. Is it possible to get J2RE to cache the credentials for future use? This would save users typing their login info each time they access a site with Java content.
    2. Is J2RE able to use the cached proxy credentials used by Internet Explorer? This would save the user having to authenticate more than once to the proxy server.
    Any suggestions or explanations are greatly appreciated.
    Cheers,
    Timshel

    This would not be a direct fault of forms; this is a SQL*Net problem (the forms runtime is communicating with the database over 500km via SQL*Net). Try the same with SQL*Plus...pulling data over small bandwith networks via SQL*Net doesn't make much fun (and I doubt SQL*Net is designed for this).
    Next thing is I wouldn't even consider to expose the database at this level in the network; the clients don't need to know about the database, they just need the application server, so you only need to expose the application server to the public and keep your database behind bars.
    @OP if you are experiencing performance problems this might be related to network roundtrips;
    what I would do is to check for unnecessary roundtrips and enable networkstats in the formsweb.cfg (search the forum for "networkstats") to see the actual roundtrips. Another thing would be to create a little testform and see if at least dummy forms are performing well. If even the dummy forms have bad performance your connection is too poor to run webforms over them (and you can spare you the pain of searching unnecessary roundtrips).
    cheers

  • Hello... what is authenticating proxy credentials to install a software that I bought to install???

    hello... what is authenticating proxy credentials to install a software that I bought to install???

    Hi jo lia-lu,
    Are you connected to a managed network conected to internet proxy?
    Either the proxy server doesn’t require authentication, or the proxy relies upon the NTLM/Kerberos authentication schemes which permit users’ Windows logon credentials to be automatically used to respond to challenges from the proxy server.
    Please contact your IT personnel for help in getting the access credentials for the authenticating proxy.
    Regards,
    Rave

  • How to change proxy credentials in Firefox?

    Hello,
    One of our staff recently changed her password which is used for the proxy.
    I've updated the credentials in network preferences and it seems to work fine for other browsers (Chrome and Safari) but Firefox does not seem to work.
    All other settings in FF should be correct.
    Can anyone tell me how to update credentials for the proxy?
    Thanks in advance.
    Side note: this is on a Mac

    I believe changing the proxy for firefox is the same on a mac as with window. You can go to the network settings and change it from there, and I believe firefox will ask to use the settings, otherwise you can go to Settings>Options>Advanced>Network and then on the top will be place that says configure how firefox connects to the internet. Hit that settings button and you can then configure it all. At the bottom of there, there is a button that says "Do not prompt for authentication if the password is saved". I would clear that box because that is probably why her authentication isn't working. Once she has put in new authentication, it should ask if you want to update it. Thats when you can go back there and check the button to not prompt for authentication if the password is saved.
    Just in case this was way to long, or didn't make sense, I have a couple screenshots. These were taken on my windows computer, not my mac but it will be the same thing.

  • How to set proxy credentials to access wms services in Oracle Mapviewer

    Hi,
    I use Oracle Mapviewer v. 11_1_1_4 and I want to access WMS service but my LAN uses a proxy server that requires authentication.
    The mapviewer configuration file doesn't allow setting 'user' and 'password' proxy parameters. Other threads report this problem like the following:
    https://forums.oracle.com/thread/620366
    The previous thread is five years old. Are there other solutions now? Does last mapviewer allow users setting proxy authentication?
    Can anyone help me?
    Thanks,
    Arturo

    go to commons-httpclient-3.1\docs\tutorial.html. In the left hand side you will get a link named as " user guide" and under that "Authentication Guide" link. check it out.

  • Proxy Credentials In AIR

    Hi Guys,
    I know that Adobe AIR gest the proxy details from the OS automatically, thats fine. Is that information possible to obtain in the rest of the program at runtime?
    Thanks
    Jaz

    Jaz,
    AIR does not expose APIs to read the system proxy settings.
    Christain

  • Use keymgr.dll credentials for firefox proxy

    I am accessing the web trough a proxy.
    The thing is that since I'm logged into a domain, the domain user I have has restricted proxy access.
    However, If I use a different user to log into the proxy I do get access since this user has no proxy restrictions.
    I finally was able to use this different cproxy credentials by using control keymgr.dll on windows, as far as I understand it basically logs using the stored credentials when attempting to go to some site (in this case myproxy.whatever.com)
    The thing is that If i use firefox to browse, it apparently attempts to use the domain user/ password when accessing to the proxy so it has restricted access.
    So I can think of two solutions, but I need help so here are the questions:
    Solution a).- How to force firefox to ask for authentication cedentials when accessing to the proxy?
    Solution b).- How to use the keymgr.dll credentials (same way that IE does) to firefox when attempting to access proxy?
    or, possible solution c).- how to and where to store proxy credentials for firefox?

    Peter, the autheticated user is available from the portal request object. Get that one in your application and read from the UME all the properties you wanna get and build your web service call with it. It looks for me straight forward, what exactly is your problem?
    cheers

  • Using a Mac on windows network with a proxy server

    Hi I’m very new to Macs to apologies if this is a really silly question. I’m
    trying to setup a Mac on our network and I’m having an issue getting it to work
    properly with our proxy server. I have connected the Mac to the network and
    selected automatic proxy configuration in the network settings using the URL of
    our Pac file. I am asked for a proxy username and password when I initially try and
    access a website but once I have entered my credentials they are saved in
    keychain and anyone coming after me can browse using my account. I work in a
    hospital so there are many different people accessing different devices. We
    monitor and trace all users internet browsing so my question is can I configure
    the Mac to ask for proxy credentials for different users? On our windows devices
    a login box will appear if the browser has been closed and reopened. Can I do
    this with the Mac?????
    Any help you can offer will be very much appreciated.
    Thanks

    The short answer is that the IT department is a strict Microsoft shop and also incompetent. Almost everything in that message is patently false. Unfortunately, when accessing Microsoft Server services like this, you will need the support of the IT staff to tell you various settings to use. I think it is pretty clear that they have no intention of doing that.
    There is nothing "special" about bootcamp. It is just a boot loader. A Mac running Windows via bootcamp is a Windows PC, not a Mac. As such, it will work perfectly fine in the network. You could also try running Parallels. I believe Parallels can be configured to use a bootcamp partition so you could run Windows via either bootcamp or Parallels.
    One of the few things that is correct is that Apple does have to provide driver support for bootcamp and there is the possibility of random incompatibilities - but no more so than any other PC manufacturer. Parallels/VMWare may work around that with a different set of incompatibilities. Don't be too worried about this part. These "incompatibilities" are minor and almost always with funky hardware devices. What you want to do should work perfectly with either Parallels/VMWare or Bootcamp.

  • Using a Mac with a proxy server

    Hi I’m very new to Macs to apologies if this is a really silly question. I’m
    trying to setup a Mac on our network and I’m having an issue getting it to work
    properly with our proxy server. I have connected the Mac to the network and
    selected automatic proxy configuration in the network settings using the URL of
    our Pac file. I am asked for a proxy username and password when I initially try and
    access a website but once I have entered my credentials they are saved in
    keychain and anyone coming after me can browse using my account. I work in a
    hospital so there are many different people accessing different devices. We
    monitor and trace all users internet browsing so my question is can I configure
    the Mac to ask for proxy credentials for different users? On our windows devices
    a login box will appear if the browser has been closed and reopened. Can I do
    this with the Mac?????
    Any help you can offer will be very much appreciated.
    Thanks

    Do NOT store the proxy server username and password in Keychain.
    Easy to say, but by default, the next person to enter their password is likely to store their username password in the Keychain.
    You can use Applications -> Utilities -> Keychain Access to give the Keychain a separate password and to auto-lock it after 'n' minutes.  If you are the only one to know the Keychain password, then no one will be able to add the Proxy server username/password to the keychain.
    Keychain Access -> Edit -> Change Settings for Keychain Login...
    Keychain Access -> Edit -> Change Password for Keychain Login... (this is NOT required; you can keep the keychain set to use the same password you use for your login, as long as no one else knows that password; changing the settings to lock the keychain is sufficient for your needs)
    The good news is that only you will be able to access stuff stored in the Keychain.  The bad news is that if you do need stuff in the Keychain, you will need to enter the keychain password everytime you need to get at them.

  • Authenticating Proxy problem? Can't download TV show, view account

    I'm using iTunes 8.0.1 (12) on OS X 10.5.5 on a 1GHz mini. This evening I am unable to download a TV show for which I have a season pass, nor can I view my account information. Requests like "CONNECT p8-buy.itunes.apple.com:443 HTTP/1.1" clearly get to my proxy, which sends a "HTTP/1.0 407 Proxy Authentication Required" response, which iTunes is ignoring.
    Now, here's the crazy bit. When I quit iTunes and reload it and head into the store, it requests my proxy credentials, which I give it. I can move around in the shop, I even started watching a free video podcast. But the show and the account are non-functional.
    Anybody else seeing this? Anybody else using iTunes through a proxy that requires authentication and not seeing this? Any general suggestions?
    Thanks.

    Been playing with this more, it's still unresolved.
    I also tried adding my proxy username and password into the Network -> Advanced -> Proxies page manually, and permitting iTunes to always be permitted to use the credentials. Doesn't help.
    I've tried to follow the requests. After hitting the "Sign In" button, here's a summary of the requests. The leading + or - sign indicates whether the request included proxy authentication information. Every request that included proxy authentication information succeeded.
    + GET http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/triSplash?viewName=38framer &omni-lname=Genre-US-Main+Main-38%21%23SplashRow&omni-linkme=true&backColor=6884 ab&groupingId=38&nextState=2-3-
    3-3 HTTP/1.1
    - GET http://a1.phobos.apple.com/us/r30/Features/36/ab/83/dj.mywuhbkd.jpg HTTP/1.1
    + GET http://a1.phobos.apple.com/us/r30/Features/36/ab/83/dj.mywuhbkd.jpg HTTP/1.1
    - CONNECT buy.itunes.apple.com:443 HTTP/1.1
    + CONNECT buy.itunes.apple.com:443 HTTP/1.1
    - CONNECT p2-buy.itunes.apple.com:443 HTTP/1.1
    + CONNECT buy.itunes.apple.com:443 HTTP/1.1
    - CONNECT p2-buy.itunes.apple.com:443 HTTP/1.1
    + CONNECT buy.itunes.apple.com:443 HTTP/1.1
    - CONNECT p2-buy.itunes.apple.com:443 HTTP/1.1
    + CONNECT buy.itunes.apple.com:443 HTTP/1.1
    - GET http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/triSplash?viewName=38framec &omni-lname=Genre-US-Main+Main-38%21%23SplashRow&omni-linkme=true&backColor=6884 ab&groupingId=38&nextState=1-3-0-3 HTTP/1.1
    + GET http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/triSplash?viewName=38framec &omni-lname=Genre-US-Main+Main-38%21%23SplashRow&omni-linkme=true&backColor=6884 ab&groupingId=38&nextState=1-3-0-3 HTTP/1.1
    - CONNECT p2-buy.itunes.apple.com:443 HTTP/1.1
    + CONNECT buy.itunes.apple.com:443 HTTP/1.1
    - CONNECT p4-buy.itunes.apple.com:443 HTTP/1.1
    - GET http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/triSplash?viewName=38framel &omni-lname=Genre-US-Main+Main-38%21%23SplashRow&omni-linkme=true&backColor=6884 ab&groupingId=38&nextState=0-0-0-3 HTTP/1.1
    + GET http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/triSplash?viewName=38framel &omni-lname=Genre-US-Main+Main-38%21%23SplashRow&omni-linkme=true&backColor=6884 ab&groupingId=38&nextState=0-0-0-3 HTTP/1.1
    The only striking thing about this is that the first attempt when using the CONNECT method is that the first request is to a hostname like p2-buy.itunes.apple.com, followed by a request to the more generic hostname buy.itunes.apple.com. But after attempting to get to p4-buy.itunes.apple.com without including authentication information, no further queries are made.
    Help?

  • Authenticating to Socks proxy using different accounts in a given JVM

    I have a J2EE application that runs some background jobs. Each of these background jobs need to connect to an external FTP server. However, all connections must go through a central SOCKS proxy server. The SOCKS proxy server is set up to require authentication using user names and passwords. Everything works fine if I've to use this SOCKS proxy with "a set" of credentials across all background jobs. However, if I want Job1 to use "user1" for SOCKS login, and Job2 to use "user2" for SOCKS login, I can't seem to find a way to do this. I need this functionality for accounting purposes. Any help on how this can be accomplished is greatly appreciated.
    Regards,
    Sai Pullabhotla

    I tried implementing the ThreadLocal idea and I think the code is working as expected, but my proxy logs are not matching up with what the code says. Below is the code I've including a test class. See below the code for my additional comments.
    import java.net.Authenticator;
    import java.net.PasswordAuthentication;
    * A customer authenticator for authenticating with SOCKS Proxy servers.
    public class ProxyAuthenticator extends Authenticator {
          * A thread local for storing the credentials to the SOCKS proxy. The Javadoc
          * for ThreadLocal says they are typically used for static fields, but
          * here I've a singleton instance. Hope this is not an issue.
         private ThreadLocal<PasswordAuthentication> credentials = null;
          * Singleton instance.
         private static ProxyAuthenticator instance = null;
          * Creates a new instance of <code>ProxyAuthenticator</code>. Each thread
          * will have its own copy of credentials, which would be <code>null</code>
          * initially. Each thread must call the <code>setCredentials</code> method
          * to set the proxy credentials if needed.
         private ProxyAuthenticator() {
              credentials = new ThreadLocal<PasswordAuthentication>() {
                   @Override
                   protected PasswordAuthentication initialValue() {
                        System.out.println("ThreadLocal initialized for "
                             + Thread.currentThread().getName());
                        return null;
                   @Override
                   public void set(PasswordAuthentication value) {
                        System.out.println(Thread.currentThread().getName() + " SET");
                        super.set(value);
                   @Override
                   public PasswordAuthentication get() {
                        System.out.println(Thread.currentThread().getName() + " GET");
                        return super.get();
          * Returns the singleton instance of this class.
          * @return the singleton instance of this class.
         public static synchronized ProxyAuthenticator getInstance() {
              if (instance == null) {
                   instance = new ProxyAuthenticator();
              return instance;
          * Sets the proxy creditials. This method updates the ThreadLocal variable.
          * @param user
          *            the user name
          * @param password
          *            the password
         public void setCredentials(String user, String password) {
              credentials.set(new PasswordAuthentication(user, password.toCharArray()));
         @Override
         public PasswordAuthentication getPasswordAuthentication() {
              System.out.println("Requesting host: " + this.getRequestingHost());
              System.out.println("Requesting port: " + this.getRequestingPort());
              System.out.println("Requesting protocol: "
                   + this.getRequestingProtocol());
              System.out.println("Requesting prompt: " + this.getRequestingPrompt());
              System.out.println("Requesting scheme: " + this.getRequestingScheme());
              System.out.println("Requesting site: " + this.getRequestingSite());
              System.out.println("Requesting URL: " + this.getRequestingURL());
              System.out.println("Requestor type: " + this.getRequestorType());
              System.out.println(Thread.currentThread().getName()
                   + " Authenitcator returning credentials "
                   + credentials.get().getUserName() + ":"
                   + new String(credentials.get().getPassword()));
              return credentials.get();
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.Authenticator;
    import java.net.InetSocketAddress;
    import java.net.Proxy;
    import java.net.Socket;
    import java.net.Proxy.Type;
    * A test class for testing the {@link ProxyAuthenticator}.
    public class SocksProxyTest implements Runnable {
          * Socks proxy host, used by the FakeFtpClient
         private static final String SOCKS_PROXY_HOST = "192.168.1.240";
          * Target FTP host to connect to
         private String host = null;
          * Proxy user
         private String proxyUser = null;
          * Proxy password
         private String proxyPassword = null;
          * Creates a new instance of <code>SocksProxyTest</code>
          * @param host
          *            the target FTP host
          * @param proxyUser
          *            proxy user
          * @param proxyPassword
          *            proxy password
         public SocksProxyTest(String host, String proxyUser, String proxyPassword) {
              this.host = host;
              this.proxyUser = proxyUser;
              this.proxyPassword = proxyPassword;
         public void run() {
              // Create the FakeFtpClient
              FakeFtpClient test = new FakeFtpClient(host, 21, proxyUser,
                   proxyPassword);
              for (int j = 0; j < 5; j++) {
                   try {
                        test.connect();
                        test.disconnect();
                        // Thread.sleep(10000);
                   catch (Throwable t) {
                        t.printStackTrace();
          * Test run.
          * @param args
          *            command line arguments
          * @throws IOException
          *             propagated
         public static void main(String[] args) throws IOException {
              // Get the singleton instance of the ProxyAuthenticator.
              ProxyAuthenticator authenticator = ProxyAuthenticator.getInstance();
              // Update the default authenticator to our ProxyAuthenticator
              Authenticator.setDefault(authenticator);
              // Array of FTP hosts we want to connect to
              final String[] ftpHosts = { "192.168.1.53", "192.168.1.54",
                        "192.168.1.55" };
              // Proxy login/user names to connect to each of the above hosts
              final String[] users = { "User-001", "User-002", "User-003" };
              // Proxy passwords for each of the above user names (in this case
              // password == username).
              final String[] passwords = users;
              // For each target FTP host
              for (int i = 0; i < 3; i++) {
                   // Create the SocksProxyTest instance with the target host, proxy
                   // user and proxy password
                   SocksProxyTest spt = new SocksProxyTest(ftpHosts, users[i],
                        passwords[i]);
                   // Create a new thread and start it
                   Thread t = new Thread(spt);
                   t.setName("T" + (i + 1));
                   try {
                        t.join();
                   catch (InterruptedException e) {
                        e.printStackTrace();
                   t.start();
         * A fake FTP client. The connect method connects to the given host, reads
         * the first line the server sends. Does nothing else. The disconnect method
         * closes the socket.
         private static class FakeFtpClient {
              * The FTP host
              private String host = null;
              * The FTP port
              private int port = 0;
              * Proxy login/user name
              private String proxyUser = null;
              * Proxy password
              private String proxyPassword = null;
              * Socket to the target host
              private Socket s = null;
              * Creates a new instance of <code>FakeFtpClient</code>
              * @param host
              * the FTP host
              * @param port
              * the FTP port
              * @param proxyUser
              * Proxy user
              * @param proxyPassword
              * Proxy password
              public FakeFtpClient(String host, int port, String proxyUser,
                   String proxyPassword) {
                   this.host = host;
                   this.port = port;
                   this.proxyUser = proxyUser;
                   this.proxyPassword = proxyPassword;
              * Connects to the target FTP host through the specified Socks proxy and
              * proxy authentication. Reads the first line of the welcome message.
              * @throws IOException
              * propagated
              public void connect() throws IOException {
                   System.out.println(Thread.currentThread().getName()
                        + " Connecting to " + host + " ...");
                   // Update the ProxyAuthenticator with the correct credentials for
                   // this thread
                   ProxyAuthenticator.getInstance().setCredentials(proxyUser,
                        proxyPassword);
                   s = new Socket(new Proxy(Type.SOCKS, new InetSocketAddress(
                        SOCKS_PROXY_HOST, 1080)));
                   s.setSoTimeout(10000);
                   s.connect(new InetSocketAddress(host, port), 10000);
                   System.out.println(Thread.currentThread().getName() + " Connected");
                   BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
                        s.getOutputStream()));
                   BufferedReader reader = new BufferedReader(new InputStreamReader(
                        s.getInputStream()));
                   System.out.println(reader.readLine());
              * Closes the socket.
              public void disconnect() {
                   System.out.println(Thread.currentThread().getName()
                        + " Disconnecting...");
                   if (s != null) {
                        try {
                             s.close();
                             System.out.println(Thread.currentThread().getName()
                                  + " Disconnected");
                        catch (IOException e) {
                             e.printStackTrace();
    Looking at the test class, it creates 3 threads T1, T2 and T3. T1 is setup to connect to 192.168.1.53 using a proxy user User-001 and T2 is setup to connect to 192.168.1.54 using proxy user User-002 and T3 connects to 192.168.1.55 using proxy user User-003.
    Each thread then loops 5 times to connect to their target servers and disconnect each time. All the debug (System.out) statements indicate that the getPasswordAuthentication is returning the correct credentials for each thread. However, when I look at the logs on the proxy server, the results are different and arbitrary.
    Below is the proxy log:
    [2011-01-24 11:10:11] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:12] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:12] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:13] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    As you can see from the first line in the log, the proxy says User-001 connected to 192.168.1.54, but the code should always connect to 192.168.1.53 with user User-001.
    Any idea on what might be going on?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Browser need proxy username and password

    this code works fine without a proxy, however i can figuer out how to get it to work when behind a proxy, i tried some different things to pass the proxy username and password(the commented out code) but those did work, can anyone help with this? cause im lost as to how to send the proxy credentials to get outside to the net
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ReadServerFile extends JFrame {
    private JTextField enter;
    private JEditorPane contents;
    public ReadServerFile(){
    super ("Rage");
    System.getProperties().put("proxySet","true");
    System.getProperties().put("proxyPort","80");
    System.getProperties().put("proxyHost","90.8.0.5");
    //need to set the username and password
    //System.setProperty("http.proxyUser","sservices/proglab30");
    //System.setProperty("http.proxyPassword","proglab30");
    //Authenticator.setDefault(new Authenticator()
    // protected PasswordAuthentication getPasswordAuthentication()
    //   return new PasswordAuthentication("proglab30","proglab30".toCharArray());
    Container c = getContentPane();
    enter = new JTextField("http://www.google.com/");
    enter.addActionListener(new ActionListener()
    {public void actionPerformed (ActionEvent e)
    {getThePage(e.getActionCommand());}});
    c.add( enter, BorderLayout.NORTH);
    contents = new JEditorPane();
    contents.setEditable(false);
    contents.addHyperlinkListener(
    new HyperlinkListener(){
    public void hyperlinkUpdate(HyperlinkEvent e)
        if (e.getEventType()==
        HyperlinkEvent.EventType.ACTIVATED)
        getThePage(e.getURL().toString());}});
    c.add(new JScrollPane(contents), BorderLayout.CENTER);
    setSize(400,300);
    show();
    private void getThePage(String location)
    setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    try {
    contents.setPage(location);
    enter.setText(location);
    catch(IOException io)
      JOptionPane.showMessageDialog(this,"Error getting URL","Bad URL",JOptionPane.ERROR_MESSAGE);
    setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    public static void main (String args[])
      ReadServerFile app= new ReadServerFile();
      app.addWindowListener(new WindowAdapter(){
        public void windowClosing(WindowEvent e)
          System.exit(0);
    }

    ray,
    Sounds like a permission problem.
    Try running these.
    ColdFusionDirectory\bin\connectors\Remove_ALL_connectors.bat
    ColdFusionDirectory\bin\connectors\IIS_connector.bat
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "RayBees" <[email protected]> wrote in message
    news:ek727f$bnq$[email protected]..
    > Greetings
    >
    > I have an interesting problem. When I browse certain
    section of my website
    > I
    > am asked to enter my username and password. When clicked
    "cancel" twice
    > the
    > person is let throught to the page. This seems to be
    related to the cfform
    > tage. If I remove the tag, I am no longer asked for the
    username and
    > password.
    > This happens in IE 6 and 7, Netscape 7.1 but not in
    Firefox 1.5 or Mozilla
    > 1.5.
    >
    > But here is where it gets really interesting, If I log
    onto the web
    > server,
    > every page asks for the username and password. Any
    thoughts?
    >
    > Thanks
    > Ray
    >
    > The Specs
    > CFMX 7.02
    > Windows 2003
    > IIS 6
    >

  • Https proxy authentication

    I have a strange behaviour while browsing with Safari:
    I'm located behind a proxy server which requires authentication. For all http requests, everything works perfect, at the first access ever, Safary asked me to supply username and pasword for the proxy, I've chosen to save the password in my key chain and was never asked again for the pasword.
    For https requests, Safari asks at least one time per request to put in my proxy username and password. Sometimes, it seems that Safari asks for each single object on a web pagefor the proxy credentials.
    I've tried to narrow down the effect and it seems, that this is related to WebKit. If I use Firefox, it asks me only once to put in the proxy credentials and that's it. With OmniWeb (which is also based on WebKit) I have the same problem as in Safari.
    Has somebody got the same effect or even has a solution for that?
    Thanks,
    Frank
    MacBook Pro   Mac OS X (10.4.8)   15 inch, Core 2 Duo, 200GB HDD

    I have the same problem:
    I have to connect to a https url to post a string (and read the answer: OK or KO).
    The problem is that I have to set up this with jdk 1.2, so:
    - I download jsse 1.03
    - I set up the provider statically inside java.security
    (security.provider.2=com.sun.net.ssl.internal.ssl.Provider)
    - I use the code:
    System.setProperty("https.proxyHost","proxy");
    System.setProperty("https.proxyPort","80");
    System.setProperty("https.proxyUser","user");
    System.setProperty("https.proxyPassword","password");
    String password = "user:password";
    String encodedLogin = new sun.misc.BASE64Encoder().encodeBuffer(password.getBytes());
    System.setProperty("https.agent", "JSSE\n\rProxy-Authorization: "+encodedLogin+"\n\r");
    URL url = new URL(urlString);
    HttpsURLConnection connection = (HttpsURLConnection)url.openConnection();
    connection.setRequestProperty("Proxy-Authorization", "Basic " + encodedLogin);
    //connection.connect();
    connection.setDoInput( true );
    connection.setDoOutput( true );
    connection.setAllowUserInteraction(false);
    //URLConnection connection = new HttpsURLConnection(url);
    InputStream inStream = connection.getInputStream();
    When I call the getInputStream() I get the exception:
    java.io.IOException: Unable to tunnel through XX.XY.ZX.WW:80. Proxy returns "HTTP/1.1 407 Proxy Access Denied
    How can I authenticate to the proxy? The previos tips doesn't works ...
    Any suggest?

Maybe you are looking for

  • How to display the output of report(9i) using Report Background Engine

    Hi, We are converting the forms and reports from 6i to 9i. we could run the report in the browser from form using WEB.SHOW_DOCUMENT built-in, but we are not able to display the report output from form using the Report Background Engine.Let us know if

  • Ever since I have got CS6, many of the programs do not even load before crashing. Anyone else?

    Premiere, Audition and Photoshop of this suite crash many times even before they fully start. I have all updates. I have 64 bit system with a Nvidia Quadro 600 video card. CS5.5 seems to work better with the same programs. What can it be that causes

  • Screen corrupt 2010 Mac Mini HDMI (Static/Snow/White Noise)

    I've just upgraded my 2010 mac mini to Lion, this is connected to a projector via HDMI to a Denon amp. Before the upgrade there were no issues the picture was completely clear and was usable in all resolutions. Now that lion has installed the display

  • SAP BCM FBPM1

    Dear experts, I am having trouble with the "Creation of Cross-payment run payment media" program SAPFPAYM_MERGE. I was able to execute 2 different payment runs(F110), and after that executed FBPM1 transaction with the output: "Batches are created for

  • Inbox (From) and Sent (To) suddenly I can't change them

    Once upon a time, not so long ago, I could have my inbox columns set as: From, Subject, Date Sent, and Attachments. At the same time I could have all the other folders set to: To, Subject, Date Sent, and Attachments. Now, suddenly I cannot keep them