Java - Automatic logon with macros

Hi All,
I have an application where user login details has to be saved outside database like macro.
What the better way of storing and retreiving login details through macro.which libraries we use
for theis purpose.Could some one throw some light on this please.
Thanks
Kanth

Then my suggestion about a long-living cookie with an unique ID still applies.
For each client you need to create a long-living cookie (1 year or so and update it on every visit) with a long and all-time-unique/garbled/random/hard-to-guess ID, if it is not already generated before (just traverse the retrieved cookies). Store this ID in a database table in the server side. In the same database you can just attach all logged in users of the same client to the same ID. Whenever the specific client visits the login page again, you just lookup all associated users from the DB table and displays it so that the client can choose from them.
Do in no way store sensitive information (usernames/password/userids/etc) at the client side. This is too hack sensitive.

Similar Messages

  • Automatically logon with russian language not English

    I wrote page
    <HTML>
    <HEAD>
    <TITLE>My Portal</TITLE>
    <base href="http://portal.portal.kk/pls/portal30/">
    </HEAD>
    <BODY onLoad="document.forms[0].submit();">
    <FORM ACTION="PORTAL30.wwptl_login.login_url" METHOD="POST" name="LoginForm">
    <INPUT TYPE="hidden" NAME="p_requested_url"
    VALUE="http://portal.portal.kk/servlet/page?_pageid=257&_dad=portal30&_schema=PORTAL30">
    <INPUT TYPE="hidden" NAME="p_cancel_url" VALUE="http://portal.portal.kk/pls">
    <INPUT TYPE="hidden" NAME="ssousername" VALUE="public">
    <INPUT TYPE="hidden" NAME="password" VALUE="public">
    </FORM>
    </BODY>
    </HTML>
    which automatically logon to home page of my company
    but buttons and date in English.How can I automatically logon with Russian language.
    Thanks in advance

    I suppose, you need to set that as the default language.
    Manybe, you can try the security forumn. More appropriate for this question.
    Thanx,
    Chetan.

  • Read Excel with macros using Java POI

    Hi,
    I'm very desperate... I have to do following things: read Excel file with macros. I can read xls without macros, but i haven't ideas what to do, so correctly read records with macros in xls.
    I use following method to listen for incoming records and handles them as required.
    public void processRecord(Record record)
    switch (record.getSid())
    // the BOFRecord can represent either the beginning of a sheet or the workbook
    case BOFRecord.sid:
    BOFRecord bof = (BOFRecord) record;
    if (bof.getType() == bof.TYPE_WORKBOOK)
    System.out.println("Encountered workbook");
    // assigned to the class level member
    } else if (bof.getType() == bof.TYPE_WORKSHEET)
    System.out.println("Encountered sheet reference");
    break;
    case BoundSheetRecord.sid:
    BoundSheetRecord bsr = (BoundSheetRecord) record;
    System.out.println("New sheet named: " + bsr.getSheetname());
    break;
    case RowRecord.sid:
    RowRecord rowrec = (RowRecord) record;
    System.out.println("Row found, first column at "
    + rowrec.getFirstCol() + " last column at " + rowrec.getLastCol());
    break;
    case NumberRecord.sid:
    NumberRecord numrec = (NumberRecord) record;
    System.out.println("Cell found with value " + numrec.getValue()
    + " at row " + numrec.getRow() + " and column " + numrec.getColumn());
    break;
    // SSTRecords store a array of unique strings used in Excel.
    case SSTRecord.sid:
    sstrec = (SSTRecord) record;
    for (int k = 0; k < sstrec.getNumUniqueStrings(); k++)
    System.out.println("String table value " + k + " = " + sstrec.getString(k));
    break;
    case LabelSSTRecord.sid:
    LabelSSTRecord lrec = (LabelSSTRecord) record;
    System.out.println("String cell found with value "
    + sstrec.getString(lrec.getSSTIndex()));
    break;
    case FormulaRecord.sid:
    FormulaRecord fre = (FormulaRecord) record;
    System.out.println("Formula: "+ fre.getValue());
    break;
    I don't know, how check, that incoming record is joined with macro and I don't know how handle it.
    Is there possible to create Excel file with macros using POI?
    Please help me...
    Margaret

    I want to read the contents of an MS Excel file from
    java, is it possible using JavaBeans-ActiveX bridge or
    by any other java technologies, if possible, how ?Bridge2Java from IBM Alphaworks will do the trick for you.
    You can get it from here:
    http://www.alphaworks.ibm.com/aw.nsf/techs/bridge2java
    Using it, you can do things like the following (taken and abbreviated from the samples provided with the package):
    import Excel.*;
    public class QuickExcel
        public static void main(java.lang.String[] args) {
            Application app;
            Workbooks wbs;
            Workbook wb;
            Worksheet sheet;
            Range rangeA1, rangeA2;
            try
                com.ibm.bridge2java.OleEnvironment.Initialize();
                app = new Application(); // Excel.Application !!! :-)
                app.set_Visible(true);
                wbs = app.get_Workbooks();
                wb = wbs.Add();
                sheet = new Worksheet(wb.get_ActiveSheet());
                rangeA1 = sheet.get_Range("A1");
                String out = new String("This is a test");
                rangeA1.set_Value(out);
                // Wait five seconds
                Thread.sleep(5000);
                // Close the workbook without saving
                wb.Close(new Boolean("false"));
                app.Quit();
            } catch (com.ibm.bridge2java.ComException e)
                System.out.println( "COM Exception:" );
                System.out.println( Long.toHexString((e.getHResult())) );
                System.out.println( e.getMessage() );
            } catch (Exception e)
                System.out.println("message: " + e.getMessage());
            } finally
                app = null;
                com.ibm.bridge2java.OleEnvironment.UnInitialize();
    }

  • Automatic email with logon details when user creation

    Hi,
    Does any one can through some light on sending automatic emails with logon details when the users created with SU01? I know we have lot of tools like GRC, Approva we can do but I would like to know any thing within SAP not with any external tools.
    Thanks,
    Venkat

    Quick and easy way without any development:
    a)  Create a variant for report RSUSR100N to search for created user IDs where the creator was not equal to the expected "false positive" ones.
    b) Save a dynamic date and time calculation for the variant.
    c) Define a mail distribution list for the spool request if there is one ...
    d) Schedule the variant periodically as per the dynamic date and time period.
    e) Check that SCOT is configured to send the mail or SMS.
    f) Wait for the mail to be sent (this step might take some time...)
    Cheers,
    Julius

  • Word templates with Macros

    Dear all,
    I have a couple of Word templates (in document libraries) that should have the filename and page count on the footer of the front page. It seams there is an issue with Word that these do not automatically update (MS kb 832897).
    I am using word 2010, 64 bits.
    This is solved with a Macro.
    When placing the word with macro template in SharePoint, SP blocks it and the macros are not ran.
    Any one with experience on this?
    Thanks in advance.
    Gonçalo

    It is not possible to run a macro in SharePoint after the document has been uploaded. 
    You can replicate this scenario by creating a SPItemEventReceiver which will run customized code on ItemAdded in your document library. 
    Please go through the following articles for details:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.aspx
    http://msdn.microsoft.com/en-us/library/office/ms437502%28v=office.14%29.aspx
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Java not working with 10.6.8 iMac

    Java is no longer working on my intel iMac with Snow Leapord 10.6.8 with Firefox.  This issue has come up when trying to use two different programs that I previously was able to use; Java automatically ran.  I have tried to read previous discussions on this topic, but am not understanding the solutions or some aspects don't apply.  I did try to restore defaults in Java Preferences but nothing seems to happen when I do this.  Any advice? thank you in advance for any assistance with this issue.

    Good news about the flashback trojan.
    I am running Firefox 14.01.
    I also have a Java applet 13.8.0 (disabled) in the tools file.
    You said earlier (post 12) that you don't have a Java applet listed in your list of Firefox plug-ins.
    Which seems to suggest one of us is running a different version of Firefox.
    Whether this is the problem, I can't work out.  But I'm trying.

  • Connection error when using automatic logon option in connection wizard

    Hi,
    When using the automatic logon option in the connection wizard there is an error that say that the connection cannot be established. If I use the option to type in my credentials then it works fine.
    The user has access privileges in SAP BPC.
    Any suggestions?
    Kind regards,
    Christof

    The installation of BPC server was done with a domain user or with a local user?
    Your windows user is a domain user or a local user?
    I'm asking because it is strange that Windows authentication is not working. It can be or bvecause Windows user is not the same with BPC user. (you can have the same name for user but actually one is local the other one is domain which means different users).
    Also I tsuggest to check into application server of test and prod environment f osoft virtual directory has enable Windows Authentication.
    Regards
    Sorin Radulescu

  • Java Web dynpro with ABAP Clients?

    Morning,
    We have a situation where we would like to use a Java Web dynpro with multiple ABAP backend data sources. This is for autorization as well as data. We are not using Enterprise Portal.
    We've created a pair of system Jcos and mapped them to the Web dynpro via the URL. This works and the correct data from the correct Client is retrieved depending on which pair of Jcos we define in the URL.
    The problem we are having is that we are only able to logon using the ABAP Client defined in the ume....master.client parameter.
    Is there a way to achieve this (again without EP) either in the system configuration or programatically in the web dynpro?
    tia
    Cheers,
    Mitch

    Hello,
    Thanks for the updates. Actually my query is we have a SCM 5.0 system which has a java stack in it. But now we are going to upgrade it  to SCM  7.0. -  Is SCM 7.0 has a java stack ?
    If it doesn't have , can we upgrade SCM 5.0 to  SCM 7.0 without Java Stack ? Is it posssible to upgrade without Java Stack or not ?
    Is it possible that  we can convert Java Stuff into ABAP web dyn pro ? If yes , how shall we can achieve it ? If not, how shall we proceed in an alternate way ?
    Thanks for your help  in advance.
    Madhu

  • Issue in Infoview Logon with AD Credentials

    Hi All,
    I have implemented AD Authentication in BOXI3.1 Environment.
    Kinit is working fine and Iam able to logon to Desktop Intelligence and Webi Rich Client without any issue.
    But iam facing issue when logging into Infoview. I can logon to Infoview with the [email protected], but not with Username without mentioning the Domain name.
    Previously there was spaces in my Username such as Test User and then I have renamed it to Test_User and tried but no luck. Getting the below error when i try to logon with Test_User.
    Account Information Not Recognized: Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserName@DNS_DomainName, and then try again. (FWM 00006)
    Enter your user information and click Log On.
    (If you are unsure of your account information, contact your system administrator.)
    Please let me know what might be the issue causing this error.
    Regards,
    Deepika Palani

    Hi
    Click Start > All Programs > Tomcat > Tomcat Configuration.
    Click the Java tab.
    Edit the lines beginning Djava.security.auth. and Djava.security.krb5 to include bscLogin.conf and Krb5.ini so they appear as below:
      Djava.security.auth.login.config=<fullpath>\bscLogin.conf
      Djava.security.krb5.conf=<fullpath>\Krb5.ini
    Save the changes
    Ensure that all mapped groups are correct and present in AD
    Ask Network admin to search for any duplicate service principal names in AD.
    Also ask him if any change has been made to concerned AD group.
    SSO enabled?
    When u said u changed to 'Test_User' you mean that you changed name in AD, right?
    Are there multiple domains?
    Sandeep

  • Windows Authentication Kerberos - Logon with different windows user

    I've successfully set up Windows Integrated Authentication/SPNego/Kerberos logon on my portal.  Now when I launch the portal from a workstation I am logged on automatically with my Windows userid without needed to provided userid and password again - very happy!
    When I press logoff the portal returns to the logon screen, sees that I've got a kerberos ticket, and logs me straight back on!  Not happy!
    As an administrator or as a super user, it is sometimes necessary to log on with an administrative userid or to visit an end user and log on as myself on their workstation.  Therefore, I need a mechanism to override the automatic logon and force a basic password prompt screen.
    As I understand it I can achieve this by creating a special iView with its own authscheme which does not use SPNego.  I could either point the logoff redirect url setting to this iView or I could simply enter the quicklink for the iView in the browser.  Will this circumvent the automatic logon and, if so, is there anything special I need to do to achieve this?
    I had hoped to use the standard logon screen as the iView.  I've got that stored in a par file (along with my corporate icons and a link to local help files).  I uploaded the par file through system administration - support - portal runtime - administration console and thought I might be able to see that when I created a portal component iView but it's not visible.  Should it be?

    When I need to logon as a test user, I find it easier to disable the integrated Windows authentication in the browser. You can do that in the menus, but I change the registry. Create two text files (e.g., DisableKerb.reg and EnableKerb.reg)
    Disable.reg:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
    "EnableNegotiate"=dword:00000000
    Enable.reg:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
    "EnableNegotiate"=dword:00000001
    Then just double-click to change your authentication mechanism.
    Regards,
    Sean

  • HT5242 Are the older versions of Java automatically uninstalled during an update?

    Are older versions of Java automatically uninstalled during an update?

    If you open the /Applications/Utilities/Java Preferences.app then the available Java Virtual Machines will be listed. I have a newer mac with 10.6.8 that has latest Java 6 version installed on it and an older macbook pro with the lastest Java 6 Virtual Machine version and the previous Java 6 Virtual Machine version .

  • Automatic logon in intranet zone stopped working

    So we have an ASP.NET application that requires authentication. All was working well until Friday, a week ago. Our desktop systems received the April patches the following weekend, and the servers were patched mid-week. The first complaint came after the
    servers were patched, but it may have existed before that. Now the situation is:
    Using domain connected computer with IE, automatic logon results in a 401 (not authorized)
    Using domain connected computer with any other browser, the user is prompted for credentials and system works
    Using remote computer with any browser, including IE, and the user is prompted for credentials and the system works.
    My gut feel is that there is an issue with the credentials that the client is presenting. The application of the patches and the occurrence of the issue could be coincidental, but would seem to have something to do with it. I could not find anything in the
    documentation that indicated that the patches involved authentication or authorization.
    Since the issue does not occur on our SharePoint sites, which are in different subnets and running Server 2012, another alternative is that our central IT group messed about with the trust in various zones, but no one has indicated that has happened. Yet
    another option would be a change to the AD infrastructure. All servers exhibiting this issue are running Server 2008 R2.
    Any thoughts would be most appreciated.
    Thanks,
     John

    Hi John,
    Firstly, please make sure this user have proper permission.
    And then, please check if this address is added to local intranet site:
    Internet Options -> Security ->Sites -> Advanced, check if the intranet address listed as a Local Intranet site.
    If not, add it to the list and see if that works.
    Meanwhile, in Internet Explorer, please go to the Tools -> Internet Options -> Advanced tab and check the “Enable Integrated Windows Authentication” check-box.
    Next, switch to the security tab and click Local Intranet -> Custom Level and select “Automatic log-on with current user name and password” (under User Authentication, Log-on).
    Finally, click OK on all windows and restart Internet Explorer to check the result.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Why can I not disable the guest user in the 10.8.2 update? I have never enabled the guest user, but after the update, it was automatically enabled with a "managed" tag. It is not selectable even after entering my admin password to unlock the options.

    Why can I not disable the guest user in the 10.8.2 update? I have never enabled the guest user, but after the update, it was automatically enabled with a "managed" tag. It is not selectable even after entering my admin password to unlock the options. I was able to select the account under "parental controls", but again, could not delete it. Why Apple? Why?!!????

    SOLVED Ok. I actually was able to disable it. I had to actually log in as the guest user to make it accessible in the preference window. Then I disabled it and logged out. Apologies if this was obvious for some people, but I have had some sort of issue with something every update since Snow Leopard.

  • Excel spreadsheets with macro's

    Good day
    Excel spreadsheets with macro's created in Windows does not work on my Macbook (excel for mac 2011), even if I enable macro's. I do not create these spreadsheets myself. Cn anyone assist please? Thank you for your time.

    Hi,
    As far as I known, the macro/Active X control can be used well with both of the Office 2013 and Office 365.
    Would you like to share us a sample file that created in Office 2013? I'd like to test it. You can send it via Email ([email protected]).
    If you have any update, please feel free let us know.
    ===========
    Update:
    I have received your mail and
    attachment. Then, I tested it, I found the probably reason.
    You were using ActiveX controls in the sample file, and them displayed 4 tabs in Format control dialog box. Next, you created a new Form control, it displayed 7 tabs.
    You were using the two type of controls. ActiveX controls and Form controls
    are different.
    Form controls
    Form controls are the original controls that are compatible with earlier versions of Excel, starting with Excel version 5.0. Form controls are also designed for use on XLM macro sheets.
    ActiveX controls
    ActiveX controls can be used on worksheet forms, with or without the use of VBA code, and on VBA UserForms. In general, use ActiveX controls when you need more flexible design requirements than those provided by Form controls. ActiveX controls have extensive
    properties that you can use to customize their appearance, behavior, fonts, and other characteristics.
    For more detail information, please refer to the following link:
    https://support.office.microsoft.com/en-us/article/Overview-of-forms-form-controls-and-ActiveX-controls-on-a-worksheet-d101804a-0f84-43ad-8cb2-e19277b8e3fb?CorrelationId=0e7129b7-8ea2-458c-af14-a99292d300b9&ui=en-US&rs=en-US&ad=US
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Hi, we have two iphones with two accounts.  The apple tv automatically syncs with one account to play music from the iphone to apple tv.  How can I use my iphone to do the same?

    Hi, we have two iphones with two accounts.  The apple tv automatically syncs with one account to play music from the iphone to apple tv.  How can I use my iphone to do the same?

    Our experience is a little different, we have different iTunes accounts for different family members, each family member has their own iTunes library on their own mac, each mac uses my Apple ID for homesharing and we are able to play purchased content from each library on the Apple TV.

Maybe you are looking for

  • Front Row Photos won't play digital camera videos

    Hi, Firstly, I'm pretty new to Macs but have been finding my feet with most of my new toy's functionality. I've encountered one problem that I can't seem to find an answer to and was hoping someone here would be able to help. I've used iPhoto to impo

  • Troubleshooting Exporting Videos using QuickTime X, to an Apple TV Format.

    Hi every one! Here is my problem, when exporting an .avi file to itunes, using QuickTime X, depending of the .avi file it seems, I can only have the iPhone Format Choice or (and it's the first time since 2 years) the Apple TV format available at last

  • HT4859 can I use icloud to backup my mac?

    can I use icloud to backup my mac?

  • Errors in MS Office Excel save function

    When saving a file the save to function opens with a number of suggested locations. When one of those clicks the save box opens, however it doesn't open to the chosen location it opens to the last used location. When the file is saved the save box re

  • Error al instalar y al borrar páginas indesign Cs2

    ¿Es normal que de problemas el Cs2 al instalar? Quiero decir: al instalar el Cs2 aparece un mensaje en el que el Cs2 busca un archivo referido a Adobe Common file Instler. No lo encuentra porque al parecer su ubicación debería de estar en una red, y