Bypass LoginDlg

Hi, I want to bypass the loginDlg to connect to the database, but I also do not want to use the connection.properties.
Basically, I want to pass the username and password from command line like this:
java -jar myjar.jar username password
Then the program will pass the info directly to the connection. Thanks!

The following code is ugly, but works, it takes the java -jar myprog.jar arg1 arg2
as username and password connect to the sessioninfo object you already have.
if (args == null &#0124; &#0124; args.length < 1) {
//testing code: if (args == null ) {
//login dialog implementaiton
//need to call the pack before getsize will return size
loginDlg1.pack();
Dimension frameSize = loginDlg1.getSize();
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
loginDlg1.setDataItemName("infobus:/oracle/sessionInfo1");
loginDlg1.setLocation((screenSize.width - frameSize.width)/2, (screenSize.height - frameSize.height)/2);
if (loginDlg1.showDialog() == JOptionPane.CANCEL_OPTION) {
throw new LoginFailureException();
else
NamedConnection nc;
ConnectionInfo cinfo; //= new ConnectionInfo();
cinfo = sessionInfo1.getConnectionInfo();
nc = cinfo.getLoginConnection();
nc.setUserName(args[0]);
nc.setPassWord(args[1]);
sessionInfo1.setConnectionInfo(cinfo);
null

Similar Messages

  • My Mac is bypassing a website filter... How can I stop it?

    I am a computer technician at our local high school. Right now, the school has about 800 Dell computers, but we are planning on introducing a few Macintosh labs within the next school year.
    Since they lack educational value, the school district's director of technology (my boss) has a web filter (Deep Nine) that blocks myspace, facebook, youtube, proxy sites, and other similar sites.
    Myspace is blocked via a keyword filter, any page containing the word "myspace" in the url, or in the document a set number of times, is automatically blocked. The other sites are simply blocked by URL. This filter works perfectly on our Dells, no one can access Myspace, Facebook, Proxies, etc.
    I brought my Macbook to work today, plugged it into the network, and logged onto the internet. I noticed instantly that my homepage (Facebook) loaded without being blocked at all. Curious, I tested myspace and youtube, and I could get on youtube fine, but myspace remained blocked.
    I checked on the Dell next to me, and all those sites will still being filtered and blocked. Yet my Macbook was able to access them without issue. So it would appear that my Macbook has some mystic ability to bypass the web address filter, but it can not bypass the keyword filter.
    I do not have any proxies configured. My Macbook connects to the network (and thus, the internet) the same exact way the other computers within the school do, with the exception of the other computers being within Active Directory.
    I need to find out if it is an issue with the Mac or with our Filter. I don't have any other Macs available to test with (Our only other Mac in the school is our DHCP server, and we do not use servers as "lab rat" computers).
    Has anyone had any similar issues with this? Or does anyone know of any way I can diagnose this with only one Mac and only one Filter?
    Specs: OS 10.5.5, Safari 3.1.2, wired networking.
    Message was edited by: Joey Hogan
    Message was edited by: Joey Hogan

    The DeepNines product works well and does much more than a simple URL filter. The problem lies entirely in your district setup and not in their product. If you're not using a proxy filter, then you have all access and routes designed to head out on typical port 80 traffic to your isp and ultimately the internet hence no proxy configs. The filter is integrated with LDAP accounts at each of your locations to tell it which users and groups are to get filtered at what level. That tie in is what breaks down who goes where. If you introduce new macs onto the network and they have not been configured to work with the DN appliance and are going out unfiltered... then there are 2 problems here. #1 is that you have computers attaching to the network, receiving leases and doing what they want. Use DHCP reservations or a whitelist to control who gets on your network. #2 is that your DeepNines filter has not been set to failover to BLOCK. Instead, it's allowing unknown users to bypass freely simply because it doesn't recognize their group/account. And Orange, stop slamming the company. They are a smaller business that has taken a much better approach to filtering than any other large corporation. Standard database driven URL filters DO NOT WORK....PERIOD! I challenge you to call any district that is running their appliance to get their opinion of it in comparison to any of the other basic url filters out there. I did just that last week and they had absolutely nothing but high praises for the DN product. One even laughed at Websense which they had before switching simply for the lack of ability to block anonymouse proxies.

  • HT1212 My 7 year pls has forgotten her passcode for her iPod touch. I have put it into recovery and through iTunes tried to restore. But it will only let me also try to update it with iOS 6.1.3 which no longer allows the bypass of the passcode. Can anyone

    My 7 year old has a passcode on her iPod touch. She forgot it, after multiple attempts at what it could have been, it comes up with disabled etc.....I have tried it in recovery and hooking it up to iTunes (which the device has been previously synced up to) to restore. But the problem I am having is it only gives me the option to update also, to iOS 6.1.3 with the new bug fix which it won't allow you to bypass the passcode. It gets a little into the downloading, turns the iPod on and then asks for the passcode to continue?! I am at a loss as to what to do now, as every forum says put it in recovery and restore. I can't use the 'find my iPhone' app as the iPod is offline. I've tried it on a laptop not prev synced up to and get the same problem. Has any one got any ideas!

    Try disabling the computer's antivirus and firewall.
    - Next try the manual install method of:
    iDevice Troubleshooting 101 :: iPhone, iPad, iPod touch
    Place the iPod in recovery mode after the firmware download is complete and then restore using the instructions in the article. Sometimes recovery mode timeouts and returns to disabled before the firmware download is complete.
    - Then try on another computer

  • Bypass Header and Footer in Excel output

    I have a Requirement like this
    I need to have the report output in the below three formats
    PDF,EXCEL,HTML
    But when we see the ouput in EXcel it should not have the Footer and Header Scetion ,
    remaining two output formats (PDF,HTML) must have the Footer and Header Section.
    Any one having any idea about this issue.
    Thanks in Advance.
    Have a Nice day.

    Hi @BIPuser.
    I said the same thing to them but they said no that is final option but we need only single template for all the outputs alos it should handle the bypassing of header and footer for excel output.
    Thanks for your reply, If i come across anything i will let u know.

  • How do i get the option for Bypassing when i get a "this connection is not trusted"? This is my company SSO sign on web site

    the only 2 options i have are:
    Get me out of here and Technical Details.
    The documentation shows a third option to bypass, but this is not available to me.
    I am trying to get an SSO passed into a website that uses my corporate SSO in our SaaS subscription. It works fine on IE10 and was working fine on Firefox until recently.

    Note that the forum software detect your computer as Windows NT 4.0
    Check that you do not run Firefox in compatibility mode or with a reduced screen resolution.<br />
    Make sure that you do not run Firefox in compatibility mode.<br />
    You can open the Properties of the Firefox desktop shortcut via the right-click context menu and check the "Compatibility" tab.<br />
    Make sure that all items are deselected in the "Compatibility" tab of the Properties window.
    What does it say under the technical details?
    If "I Understand the Risks" is missing then this page may be opened in an (i)frame and in that case try the right-click context menu and use "This Frame: Open Frame in New Tab".

  • Incoming calls bypass the general iphone lock

    Although I've set up the general lock on my IPhone 3G, incoming calls bypass the mechanism and make the phone accessible by anyone who picks it up. Is there a way to require a passcode for receiving calls....I want to block all access to my phone!
    Any help would be greatly appreciated.
    Message was edited by: chiroguy2pittsburgh

    You'll find that with the iPhone locked, an incoming call will not allow access to the phone, i.e. you can only answer and talk, not access the phone OS.

  • How to bypass Fan Error on X1 Carbon

    Hi folks,
    We're in a real pickle right now trying to help out one of our faculty members.  She needs to use her new X1 Carbon laptop but is getting a 'Fan Error' message on her X1 Carbon immediately after turning it on. 
    Is there anyway we can bypass this error on the X1 Carbon?  We're trying the Escape key with no success.  We understand that the laptop may need a fan replaced, but we really need to access data for an important conference tomorrow in Dubai.
    Any ideas or suggestions?  Thank you kindly!!

    http://forums.lenovo.com/t5/X-Series-ThinkPad-Laptops/X1-Carbon-Won-t-Boot-without-AC-Cord-reset-swi...
    try this method.
    Otherwise you would be in a pickle. This is one reason why i dislike Ultrabook format with their proprietary SSD format.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • How do I unlock an iPhone 4 with iOS 7 and bypass the activation lock?

    How do I unlock an iPhone 4 with iOS 7 and bypass the activation lock? I can't find the previous owner and I really want to use my new iPhone, I did purchase it Second-Handed.and now I'm stuck. Ive tried recovery mode and nothing still restores and asks me the same thing. Been working on this forever- Please Help!

    If you want to risk your money, fine. 
    To answer your questions
    Is this just an iOS 7 feature?
    Yes, Activation Lock is an iOS 7 feature.
      Could you not restore the device to an earlier version?
    No, you cannot downgrade your iOS device.
    That may mean jailbreaking, I'm not sure.
    Jailbreaking is not supported by Apple or this forum.
    Or what about replacing the motherboard?
    There are no user serviceable parts on an iPhone.

  • Disable or bypass SSL on Sharepoint Foundation 2013

    My SSL certificate is expired and I am going to purchase the new certificate for the server. But at the mean time,
    I want to disable SSL (https) login, I've tried to remove the certificate and binding from IIS and remove the certificate
    from SharePoint Central Administration interface, and also configure the mapping URL from https to http but when
    I login the sharepoint website, it still try to redirect to https but cannot load the login page now. Anyone know how
    to bypass and make my sharepoint site can be access through http temporary? Thanks
    Rgds,
    LKF4459

    Hi LKF4459,
    Are you trying to access your SharePoint from outside your domain? If so, it might be possible that a firewall that publishes your SharePoint sites does the redirect from http to https.
    Also, it may be possible that IIS is configured to always redirect to https. See this link for more information:
    http://www.sslshopper.com/iis7-redirect-http-to-https.html
    Regards, Nico
    Nico Martens - MCTS, MCITP
    SharePoint 2010 Infrastructure Consultant / Trainer

  • Why cant I access 1 particular website unless I bypass my RV082?

    I'm not very saavy on these matters but here's my story. I was able to access a certain website thru my router up until Jan 4th. Since then , the only way to do so is by connecting directly to my modem and bypassing  my router. I have  3 computers on my network and ,depending on which browser I use I get different error messages..i.e..connection has been reset; cannot find website or it may be down etc . Things I have tried (or have had others try). Access site from DMZ on router; disabled firewall;cloned address; tried accessing from hotshield;rebooted router (did NOT  do hard reset by pushing button on router);Im assuming that if I can access site hooking directly to modem that the computers themselves are not an issue and the problem is either with the site or the router. Someone mentioned that if you try to access a site from different computers at the same time on the same address they may block your MAC address..not sure if this is true. I contacted Cisco support but being the router is over 2 years old they cant give me any support even if I offer to pay for it.They said something about tracing packets or checking internal logs but thats way above me at this point unless someone held my hand. As I said Im not really saavy at this but I can follow EXPLICIT instructions. Any thoughts about where to go from here greatly appreciated..john

    I cant access my itunes store anymore for some reason on my windows 7 laptop.
    Can't connect to the iTunes Store
    Since you can't sync your iPhone or connect to the iTunes Store on your computer, could be your security software or the Firewall.
    iTunes for Windows: Troubleshooting security software issues

  • SSL VPN - Bypass DefaultWEBVPNGroup

    Hi All,
    I'm using the default tunnel-group and group-policy for my general user community. I want to apply a filter for that group, and have a special use case for another group that bypasses the filter. My goal: for people hitting the "RAS_Engineering" group policy, I want to bypass the filter applied to "DfltGrpPolicy"
    Is there a way for me to configure the group-policy so that it doesn't pick up the default settings? Here's what I have (some output omitted to reduce lines):
    #  sh vpn-session detail svc filter name amy.eryilmaz
    Session Type: SVC Detailed
    Username     : amy.eryilmaz           Index        : 13568
    Assigned IP  : my.vpn.assigned.ip          Public IP    : my.pub.lic.ip
    Group Policy : RAS_Engineering        Tunnel Group : DefaultWEBVPNGroup
    Clientless Tunnels: 1
    SSL-Tunnel Tunnels: 1
    Clientless:
      Tunnel ID    : 13568.1
      Public IP    : my.pub.lic.ip
      Auth Mode    : userPassword
      Idle Time Out: 30 Minutes             Idle TO Left : 29 Minutes
      Client Type  : Web Browser
      Client Ver   : AnyConnect Windows 2.5.3046
      Bytes Tx     : 11456                  Bytes Rx     : 3986
    SSL-Tunnel:
      Tunnel ID    : 13568.2
      Assigned IP  : my.vpn.assigned.ip          Public IP    : my.pub.lic.ip
      Client Type  : SSL VPN Client
      Client Ver   : Cisco AnyConnect VPN Agent for Windows 2.5.3046
      Filter Name  : default-vpn-filter
    group-policy DfltGrpPolicy attributes
    wins-server value xx.xx.xx.xx
    dns-server value xx.xx.xx.xx
    dhcp-network-scope xx.xx.xx.xx
    vpn-filter value default-vpn-filter
    vpn-tunnel-protocol IPSec l2tp-ipsec svc webvpn
    default-domain value mydomain.com
    webvpn
      svc ask none default svc
    group-policy RAS_Engineering internal
    group-policy RAS_Engineering attributes
    wins-server value xx.xx.xx.xx
    dns-server value xx.xx.xx.xx
    dhcp-network-scope xx.xx.xx.xx
    vpn-tunnel-protocol l2tp-ipsec svc
    webvpn
      svc ask none default svc
    # sh run all tunnel-group DefaultWEBVPNGroup
    tunnel-group DefaultWEBVPNGroup type remote-access
    tunnel-group DefaultWEBVPNGroup general-attributes
    no address-pool
    no ipv6-address-pool
    authentication-server-group my_radius
    secondary-authentication-server-group none
    no accounting-server-group
    default-group-policy DfltGrpPolicy
    dhcp-server xx.xx.xx.xx
    no strip-realm
    no password-management
    no override-account-disable
    no strip-group
    no authorization-required
    username-from-certificate CN OU
    secondary-username-from-certificate CN OU
    authentication-attr-from-server primary
    authenticated-session-username primary
    tunnel-group DefaultWEBVPNGroup webvpn-attributes
    customization myCustom
    authentication aaa
    no override-svc-download
    no radius-reject-message
    no proxy-auth sdi
    no pre-fill-username ssl-client
    no pre-fill-username clientless
    no secondary-pre-fill-username ssl-client
    no secondary-pre-fill-username clientless
    dns-group DefaultDNS
    no without-csd
    tunnel-group DefaultWEBVPNGroup ipsec-attributes
    no pre-shared-key
    peer-id-validate req
    no chain
    no trust-point
    isakmp keepalive threshold 300 retry 2
    no radius-sdi-xauth
    isakmp ikev1-user-authentication xauth

    Hi,
    By default you will inherit any implicit values from the default group policy.
    To stop inheriting the "vpn-filter" please do:
    group-policy RAS_Engineering attributes
         vpn-filter none
    The same applies for any other feature within the group-policy, make sure you explicitly define every parameter according to the specific requirements.
    Thanks.
    Portu.
    Please rate any helpful posts.

  • Cisco ASA 5505 Reset-I Problem with TCP State Bypass

    Hello,
    I have a Cisco ASA 5505 that functions as my primary firewall and a Mitel 5000 controller behind it. I have two external phone users that have been connecting through the firewall with no issues for six months until about two weeks ago. I am now seeing the following log entry on the phone trying to connect to the Mitel Controller.
    6
    May 16 2014
    14:52:52
    302014
    72.135.115.37
    6915
    192.168.20.2
    6801
    Teardown TCP connection 1203584 for outside:72.135.115.37/6915 to inside:192.168.20.2/6801 duration 0:00:00 bytes 0 TCP Reset-I
    My phones are designed to work with the Mitel 5000 and Mitel 3300 phone controllers. The 5000 will only use port 6800 for call control, while the 3300 will use 6801 (Secured Minet), 6802 (Minet SSH), and if those fail, port 6800 (Minet Unsecured). When the phones initiate a connection, they try 6801 first. If 6801 is unavailable, the phone controller adds the RST flag to the ACK packet. When the phone sees the RST flag, it is supposed to reset and use the next port (6802). The same process happens again for port 6802, then the phone knows to try 6800. The problem is that the ASA sees the RST flag now and terminates the connection at the firewall. Therefore, the phones never see the RST flag, and continue to try the connection with port 6801.
    I have tried to use the TCP State Bypass feature to correct the situation, but the log shows that the connection is still being terminated immediately by the firewall. I am a novice when it comes to configuring the ASA. Any help would be greatly appreciated, as the company that I bought the phone system from is out of troubleshooting options. I do not think that I have made any changes to the firewall around this time. I have packet captures and logs from my ASA and I have wireshark data on the inside of my network. I need to figure out how to configure the ASA so that it ignores the RST flag and sends the packet back to the source.
    Any help would be greatly appreciated!

    Thanks Rizwan,
    Still no luck.  I can't even ping the otherside (office)..  I am not sure if i'm running the debug rightway.   Here are my results...
    homeasa(config)# ping inside 10.10.5.254............. (Office CIsco ASA5505 IP on local side.  I also tried pinging the server on other side (office) whic is @10.10.5.10 and got the same result)
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 10.10.5.254, timeout is 2 seconds:
    Success rate is 0
    homeasa(config)# debug crypto isakmp 7
    homeasa(config)# debug crypto ipsec 7
    homeasa(config)# sho crypto isakmp 7
                                       ^
    ERROR: % Invalid input detected at '^' marker.
    homeasa(config)# sho crypto isakmp
    There are no isakmp sas
    Global IKE Statistics
    Active Tunnels: 0
    Previous Tunnels: 0
    In Octets: 0
    In Packets: 0
    In Drop Packets: 0
    In Notifys: 0
    In P2 Exchanges: 0
    In P2 Exchange Invalids: 0
    In P2 Exchange Rejects: 0
    In P2 Sa Delete Requests: 0
    Out Octets: 0
    Out Packets: 0
    Out Drop Packets: 0
    Out Notifys: 0
    Out P2 Exchanges: 0
    Out P2 Exchange Invalids: 0
    Out P2 Exchange Rejects: 0
    Out P2 Sa Delete Requests: 0
    Initiator Tunnels: 0
    Initiator Fails: 0
    Responder Fails: 0
    System Capacity Fails: 0
    Auth Fails: 0
    Decrypt Fails: 0
    Hash Valid Fails: 0
    No Sa Fails: 0
    Global IPSec over TCP Statistics
    Embryonic connections: 0
    Active connections: 0
    Previous connections: 0
    Inbound packets: 0
    Inbound dropped packets: 0
    Outbound packets: 0
    Outbound dropped packets: 0
    RST packets: 0
    Recevied ACK heart-beat packets: 0
    Bad headers: 0
    Bad trailers: 0
    Timer failures: 0
    Checksum errors: 0
    Internal errors: 0
    hjnavasa(config)# sh crypto ipsec sa peer 96.xxx.xxx.118
    There are no ipsec sas
    homeasa(config)#

  • Can someone tell me how to connect my MacBook directly to my DSL cable modems BYPASSING by wireless connection?SING

    Hi all.  Can someone tell me how connect my MacBook directly to my DSL cable modem bypassing my wireless connection?  thanks in advance. 
    (the Maverick upload that was pushed out last month will not load for me -- keeps starting and stopping.  just read a review where someone had the same issue and once they bypassed their wireless connection, it worked just fine.)

    Ethernet.

  • I am trying to switch laptops with my mom, and successfully wiped mine and restored it, but now her password won't allow her into my computer, even though it says it's her account. Is there any way to bypass the password screen?

    I am trying to switch laptops with my mom, and successfully wiped mine and restored it, but now the password that she used on her computer isn't working on this computer. Is there any logical reason why the two passwords would be different, if I restored her information from a Time Machine backup? Aditionally, Is there a way to bypass the password page on startup to make a password that my mom knows?

    If Disk Warrior does not work you can try the following steps (but they may not work if the disk has a hardware error).
    Get the disk (DVD or CD) that came with the system (since you have it listed as 10.6.8).  If it is 10.7 or 10.8 use the Recovery partition to boot from or the USB installer if you have that option.
    Insert the disk then power down
    HOLDING the C key, power up to boot from the disc.
    Get to Disk Utility
    If Disk Utility will now show your hard drive, use DU to REPAIR the disk.
    When it completes the Repair process successfully as indicated in DU, do a shut down.  If Repair is not successful then an different course of action is indicated below.
    Then HOLDING THE APPLE (or Command key depending on your keyboard) KEY AND THE OPTION KEY AND THE LETTER P AND R KEYS, continue hiolding them until you hear the chime tone for the THIRD time then release all four keys.
    If REPAIR is not successful, use the Install disc as a boot and REINSTALL THE OS X OPERATING SYSTEM  DO NOT ERASE THE DISK OR VOLUME FIRST.  REPEAT DO NOT erase the disk or volume before trying to reinstall the OS X operating system.  After re-installing the OS do a software update.  Note that ERASING the disk is NOT required to do an OS re-install.  This allows your existing data and application files to remain.
    If that fails then you are down to the "bitter end" of erasing the volume and reinstalling the OS and then all the other software.
    If erasing the Volume fails then your last hope is to completely erase the entire hard drive, repartion the disk  and try a re-install.
    If that fasils then you may have a defective hard disk.

  • HT1212 I am trying to restore a phone that the screen does not work on, therefore I can't input my password.  How can I bypass this and upload it to itunes?

    I am trying to restore a phone that the screen does not work on, therefore I can't input my password.  How can I bypass this and upload it to itunes?

    You could follow the instructions in the support document that you linked from. There is a section regarding the passcode and the inability to use it or enter it. However, you may encounter more issues since you cannot use the screen.

Maybe you are looking for

  • Form / Report on a single page

    Hi I'm new to APEX and I have been working on creating what I think to be a simple data entry form with a report that must appear on the same page. I've read tutorials and searched the forum. I'm very frustrated. Here's the details. APEX 3.0 Create t

  • Training and event management: Book Attendee List for Business Event List

    Dear all,     I know this:     PV07: book attendee list for business event     PV08: book attendee for business event list    Is there a tcode to book an attendee list for a business event list Thanks a lot in advance!

  • Installing on iBook G4 - Microsoft no longer works

    I installed Leopard on my son's iBook G4 (1.2mgz). Systems was okay except I did go thru a hassle getting his iPod Touch to work. After dealing with Apple care that was resolved. They are great! However, microsoft office is not working. When you open

  • RFC User Type

    Hi Calling gurus. When gererating RFC users for the READ and TMW rfc's in Solution Manager users gets generated, and I know the user type is Communication user, however should you be forced to have to create your own users to use within this rfc woul

  • Install Jdev 12c in a non-gui environment?

    Is there any way to install Jdeveloper 12C on a linux box that doesn't have X11 components installed. I know that the 11g version allowed it, I'd really like to be able to do the same for 12C.