Telnet - dealing with login/password

Hi,
I've been searching the net for a while trying to figure out how to implement a telnet java application so that I can login into a Unix server and do some stuff. But unfortunately I haven't had much luck. I've found an API provided by Jakarta which has a telnet class and it works it connects to my unix server but doesn't prompt me with a login screen. At first I figure it to be that maybe it takes a while so i put a sleep on the thread but that didn't work either. So if anybody could help me out here on this small part that would be great.
Thanks,
Alfred

Not exactly what you are looking for, but somewat related. I don;t know about the Jakarta Telnet API, but there is a free "ipWorks" telnet API available which is pretty easy to use. You may try that if you are still in evaluation phase.

Similar Messages

  • How to deal with expired passwords in authentication schemes?

    IHi,
    I am trying to build an authentication scheme that deals with expired passwords. After the user has provided their valid but expired password they should be redirected to a password reset page. After they have provided a new password they should be allowed to continue to the page they would have otherwise gone to had their password not expired.
    I have written my authentication processs as follows:
    CREATE OR REPLACE FUNCTION inventory_test.inventory_authentication (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    RETURN BOOLEAN
    IS
    r1 apex_users%ROWTYPE;
    valid_password BOOLEAN;
    BEGIN
    IF p_password IS NULL
    THEN
    RETURN FALSE;
    END IF;
    SELECT *
    INTO r1
    FROM apex_users
    WHERE UPPER (username) = UPPER (p_username);
    valid_password :=
    DBMS_OBFUSCATION_TOOLKIT.md5 (input_string => p_password
    || TO_CHAR (r1.SEED, '99999')
    ) = r1.PASSWORD;
    IF valid_password AND (r1.password_expiration_date < SYSDATE)
    THEN
    apex_util.set_session_state ('FSP_AFTER_PASSWORD_RESET_URL', v ('FSP_AFTER_LOGIN_URL')); -- My new application item
    apex_util.set_session_state ('FSP_AFTER_LOGIN_URL',
    'F?P=' || v ('APP_ID') || ':14:' || v ('APP_SESSION')
    END IF;
    RETURN valid_password;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    RETURN FALSE;
    END;
    This redirects the user to the password reset page but FSP_AFTER_PASSWORD_RESET_URL is null - presumably because the login process changes the session.
    This seems the wrong approach anyway as the user, once authenticated, can change the page number in the URL and avoid the password reset. I would guess that I need to use the APEX_CUSTOM_AUTH package somehow. However, I am thoroughly confused about the relationship between the LOGIN and POST_LOGIN procedures. Also, I gather from other posts in this forum that there is some asynchronous processing that goes on as new sessions are created. Can someone point me in the right direction please?
    --Tony
    [http://tonyhasler.wordpress.com/][http://tonyhasler.wordpress.com/]

    Sorry for taking so long to acknowledge your helpful suggestions.
    Scott's proposal is a tiny tiny bit awkward as,if i understand it correctly, the user would have to reauthenticate after resetting the password.
    /dev/null's suggestion is actually not too bad for me. I already have each page being authorised and I use only a limited mumber of (once per session) authorization schemes. I think all I have to do is to place an extra line or two in each scheme to check the expiration date of the user's password and remember to call APEX_UTIL.RESET_AUTHORIZATIONS when the password is reset.
    I successfully redirected to the password reset page using owa_util.redirect_url from the post-authentication procedure but what I am still having trouble with is the deep-linking bit. It seems I have to obtain the target URL by 'editing' FSP_AFTER_LOGIN_URL to replace '|' characters by ':' characters and inserting the session id in the right place. Given the fact that FSP_AFTER_LOGIN_URL may not be set and that there may not be sufficient ':' characters in the URL this is very clunky.
    Is there an easier way to do this?
    --- Never mind. I worked out how to use regular expressions with SQL to do this. A full explanation is in my blog.
    --Tony
    http://tonyhasler.wordpress.com
    Edited by: TonyHasler on Sep 6, 2008 3:17 PM

  • Trouble with login password in Keychain Access

    Since upgrading to Snow Leopard, my "Login Password" seems to have changed. Not my account password, thankfully, but the Keychain Access Login Password that enables me to access my Login Keychain. I certainly did not change it, but the password I used in 10.5.8 doesn't work anymore. This has actually happened on two different machines
    I tried the 'First Aid' function in Keychain Access and got this error message:
    Checked password for ~/Library/Keychains/login.keychain
    *Password for ~/Library/Keychains/login.keychain is not the same as login password*, so keychain can't be unlocked automatically
    Login password could not be synchronized with keychain ~/Library/Keychains/login.keychain (-128)
    Unable to read settings for ~/Library/Keychains/login.keychain
    Okay, so how can the Password for the Login Keychain be different from the, uh, Login Password?!?!
    Is there any way to reset a Login Password, or do I just have to start a new one from scratch (really don't want to have to do that)?

    the password for any keychain can be set to anything you want. by default the password for you login keychain is set to be the same as you account password but that's done just for your convenience so that it can be unlocked automatically when you log in. those passwords are completely independent otherwise. changing one has no effect on the other. that said, unless you changed the account password or the keychain password yourself what you are seeing should not be happening.
    did you change your account password? if not your keychain could be corrupt.
    in Keychain Access is your login keychain locked? if it is select it and click on the lock above. if the keychain works ok it should ask you for the keychain password to unlock it. does it work?

  • Proxy with login password

    Hello,
    I try to use Jdev behind a firewall with ip + port + login + password
    How configure Jdev to work with this firewall
    Option Preference Proxy does not give the choice of login/password preference
    Thank you

    Hello,
    Were you able to successfully build your AIR app?  It is possible to bypass the timestamp but there are caveats.  Here's what the docs have to say:
    If ADT cannot connect to the time-stamp server, then signing is canceled and no package is produced. Specify -tsa none to disable time-stamping. However, an AIR application packaged without a timestamp ceases to be installable after the signing certificate expires.
    Chris

  • Thank you MrHoffman. I still have a problem with login password.

    Thank you Mr.Hoffman. I understand now. However, I do not log in when I boot up. I have no idea what my login password could be. I have never to my knowledge entered one, nor do I know how to. MACs are so cryptic, in addition to being different. So what do I do now? Where do I find my login info or how do I initiate it? Thanks in advance.

    See this Apple note on how to change your 10.7 Lion password: http://support.apple.com/kb/HT4798

  • ECC 6.0 - troubles with login password

    Hi, we upgraded the system from 4.6 to ECC 6. and now some of our users have the problems with passwords (login).
    We suspect that more users have the same password. Is it possible that in new verision users need to have different passwords?
    Thanks and BR
    Saso

    Hi
    ECC 6.0 is having case sensitive password
    so we need to enter the same
    regards
    Shiva

  • How to deal with mega passwords

    I saw this Lexar JumpDrive (USB flashdrive) at Target, which included Lexar's Secure II software, allowing one to password protect a USB flashdrive. It seemed like a great place (about $20 for a 4 gig drive) to store all the passwords I can't seem to remember from all the credit card, bank account, etc. sites I regularly visit. And it states on the package, "Mac compatible."
    At first, everything seemed fine. But eventually, a problem surfaced: my unibody MBP's Superdrive would no longer mount DVDs. Even after a visit to the Genius Bar, where the tech replaced my Superdrive, the problem persisted. Finally, I noticed on a much earlier post in this forum (via a Google search) that the Lexar Secure II software was the culprit--it installs a "kext" file in the System>Library>Extensions folder. As soon as I removed that file and rebooted, all was well. Unfortunately, looking on Lexar's site, they don't seem to either know about this conflict or have a fix for it.
    Does anyone have an elegant solution for password protecting all one's website passwords in one place? I liked the idea of putting it all on a small flashdrive since then the passwords are on a separate media from my laptop and desktop computers.
    Thanks for any suggestions.

    These solutions seem worth further checking out: 1Password, which has many 5 start reviews, is an app (i.e., not hardware) that handles all passwords by popping up on an as-needed basis (http://agilewebsolutions.com/products/1Password/videos).
    For a cool hardware-only solution (i.e., with no potential of software incompatibilities), is an encrypted USB flash drive with a keypad on it, similar to the entry number keypad on some luxury cars (http://www.lok-it.net/).

  • Build .air behind HTTP proxy with login/password

    Hello,
    I'made an air application with aptana, bu I can't build my app in a air file.
    I'm behind a proxy with authentication. I'got error during timestamp.
    I try many options, I can't do this air file.
    In another post a find :
    "You need to have a network connection for timestamping to work. If that network connection uses a proxy server, you may also need to set up the JRE to use that proxy (Seehttp://www.java.com/en/download/help/5000020600.xml). "
    But in the JRE option, I can't set a login or passorwd for proxy.
    If I understand my compnany can't build air application ? or there is another soution ?
    Thanks.

    Hello,
    Were you able to successfully build your AIR app?  It is possible to bypass the timestamp but there are caveats.  Here's what the docs have to say:
    If ADT cannot connect to the time-stamp server, then signing is canceled and no package is produced. Specify -tsa none to disable time-stamping. However, an AIR application packaged without a timestamp ceases to be installable after the signing certificate expires.
    Chris

  • I created a second email account with a password but when I try to get mail for it and I put in password it says login failed. Why? and how do I fix it.

    I created second email account ([email protected]) with a Password but when I try to get mail and enter password, it says "Sending of Password did not succeed. Mail server mail.comcast.net responded: login failed". What am I doing wrong?

    Have you logged on to the webmail account using a browser and enabled either Pop or Imap forwarding for that email address?
    Have you created a mail account in Thunderbird that uses the chosen webmail forwarding option?
    Password - make sure caps lock is not switched - it must be the same password you use to access the webmail account.
    check:
    Tools > account Settings > Server Settings
    username = full email address
    Please post info:
    In Thunderbird
    Help > Troubleshooting information
    click on 'copy text to clipboard'
    paste info in this question
    edit /remove all info on fonts and printers.

  • In Yosemite, I can;t operate for more than a few minutes with Keychain or Safari asking for my login password.  How can I turn this off, and still be safe?

    Using Yosemite, I an't seem to work for more than a few minutes without being asked for my login password.  Keychain wants it, Safari wants it, iCloud wants it..the list goes on.  Then in 10 minutes or so, they all want it again.  Passwords are being stored by Safari as usual, but new tabs or pages bring up the request.  How can I turn this off and still have protection?

    Tutorial: Resolving Keychain Issues
    If you can't access your keychain, or forget your password If you can't get into your keychain file because you've forgotten your password or the keychain file appears to be corrupt, there are a couple of options.
    First, if you've forgotten your password, you can use the "Keychain First Aid" utility to make the keychain password the same as the login password. This can be accomplished via the following process:
      1. Open Keychain Access (located in Applications/Utilities)
      2. Go to the "Keychain Access" menu and select "Preferences"
      3. Click the "First Aid" tab
      4. Make sure the "Synchronize login keychain password" box is checked
      5. Close the Preferences window
      6. Go to the "Keychain Access" menu and select "Keychain First Aid"
      7. Enter your username and password
      8. Click the "Repair" button
    The second option is to completely delete your keychain then recreate it. This routine is useful if your keychain appears to be corrupt or otherwise inaccessible. This can be accomplished as follows:
      1. Launch Keychain Access (located in Applications/Utilities)
      2. Click "Show Keychains" in the lower-left corner of the window.
      3. Select the problematic keychain from the left-hand pane.
      4. Navigate to the "File" menu and select "Delete Keychain '(name of keychain)'"
      5. Check all options for deletion and press "OK"
      6. Create a new keychain by going to the "File" menu, then "New" and selecting
          "New Keychain"
      7. You can now make this keychain your default if you desire by selecting it, then
          going to the "File" menu and selecting "Make '(name of keychain)' Default"
    Login as root and perform repair In some cases, problems with keychains can only be resolved when logged in as the root user.
    First, you want to enable the root user:
      1. OS X Mountain Lion: Enable and disable the root user
      2. OS X Lion: Enable and disable the root user
      3. Mac OS X 10.6: Enabling the root user
      4. Enabling and using the "root" user in Mac OS X
    After enabling the root user, and logging in under this account, again open Keychain Access. First attempt repairs using Keychain First Aid, and failing that, delete then recreate the keychain as described above while logged in as root.
    Persistently asked for stored passwords If you are persistently asked for passwords in various applications that you have specified should be remembered in a keychain, your "login" keychain may not be active for one reason or another.
    Navigate to ~/Library/Keychains/ (this is the Library folder inside your user's home folder). Find the file named "login.keychain" and double-click it.
    Failing that, select the "login" keychain within the Keychain Access application and make sure it is the default keychain by going to the "File" menu and selecting "Make 'Login' Default"
    Turn off Keychain synchronization in applications having problems If specific applications are experiencing issues when accessing password-protected material, the Keychain may be to blame.
    The above comes from an article published on MacFixit.com.

  • After downloading the latest version I have been asked to login with my password but it doesn´t accept it or a new one !

    I updated my TB to the latest version and now when I open it up it asks me to login with my password but it doesn´t accept it.

    http://kb.mozillazine.org/Password_rejected

  • Login with encrypted password doesn't work

    Hi, simple problem:
    in login settings with encrypted password option on
    The login doesn't work => Error:"AFTER.Trigger_Login_CheckLogin*"
    (tested with a user that has an encrypted password)
    without encrypted password
    The login works
    (tested with a user that has a clean password)
    Where I wrong?
    Thanks
    Gabriele

    Hi Gabriele,
    how many varchars did you define for the column that´s holding the encrypted passwords ? It has to be at least 32 chars due to the MD5 encryption, if it´s lesser than that, the passwords will get truncated.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Problem with AppleID login password

    Hi - I'm from Europe. How can I contact talk to a real live person from "nonstop " customer support service - I need help - have problem with AppleID login password

    DanielBuggati wrote:
    Hi - I'm from Europe. How can I contact talk to a real live person from "nonstop " customer support service - I need help - have problem with AppleID login password
    Have you tried MyAppleID <<== click this
    There is a link there for "Forgot your Password?"

  • Administrator API: Login to specific instance with username, password

    1) How do I login to a specific instance of ColdFusion administrator with a username and password.  The example I see everywhere is variations of:
    adminObj = createObject("component","cfide.adminapi.administrator");
    adminObj.login("password");
    which appears to be based on no instances and not multiple administrators.
    my goal is to log into a set of instances and assign datasources to each of them based on a csv file.  I know how to do all that once logged in.
    What I don't know how to do is log in!
    Please help!
    2) Is there an actual document anywhere that actually documents the administrator API?  I have the help files that I suspect everyone has and they don't.
    Thank you.

    The way I did it was to create a directory under the cfide folder in a given instance and called the pages via http://server.blah.com:8301/cfide/blah/admin.cfm
    Here's some example code of creating a datasource (I don't recall where I grabbed it from, it isn't mine - but it does work).
    <!--- <!--- log in CFAdmin User --->
    <cfset administratorService = CreateObject("component","CFIDE.adminapi.administrator")>
    <cfset bIsLoggedIn = administratorService.Login(dsnpassword,dsnuser)>
    <cfif bIsLoggedIn>
       <cfset datasourceService = createObject("component", "CFIDE.adminapi.datasource")>
       <!--- check to see if datasource with same name doesn't already exist --->
       <cfif datasourceService.VerifyDSN(#dsName#) eq false>
          <cfset stArgs = StructNew()>
          <cfset stArgs.name = #dsName#>
          <cfset stArgs.database = #dbName#>
          <cfset stArgs.host = #dbServer#>
          <cfset stArgs.port = 1433>
          <cfset stArgs.driver = mssql>
          <cfset stArgs.selectmethod = datasource_selectmethod>
          <cfset stArgs.username = dbuser>
          <cfset stArgs.password = dbpassword>
          <!--- create datasource - this one's for MSSQL DB --->
          <cfset datasourceService.SetMSSQL(argumentCollection=stArgs)>
       </cfif>
    </cfif> --->

  • Can Apple make an app or an update that makes you insert your password to turn your phone off? This can help deal with theft of iPhones because people take or find a iPhone, the first thing they do is turn the phone off.

    Can Apple make an app or an update that makes you insert your password to turn your phone off? This can help deal with theft of iPhones because people take or find a iPhone, the first thing they do is turn the phone off.

    They probably can do such s thing if they choose to do so.
    Let them know that you would like this:
    http://www.apple.com/feedback
    Not sure this is a very useful thing.  It would run down the battery.  All a thief has to do is remove them SIM and restore the iphone to stop it from being tracked.

Maybe you are looking for