More than the username and password

Hi,
How would you handle a situation where the user should give his/her username and
more than one identity proof? For example:
username:
zone id :
pin no :
The Servlet spec contains the FORM based authentication with "j_username" and
"j_password". How to add the extra information?
Thanks for your time,
Regards,
Yagiz Erkan (http://www.erkans.com)
([email protected])
([email protected])

Hi Yagiz,
The specification could certainly be altered to have some j_custom tags to more easily
address the problem you describe.
Perhaps you should go to sun's newsgroups or see if you can contact them directly to give
them feedback on the specification?
Cheers
Joe Jerry
Yagiz Erkan wrote:
we are using the following setup:
- FORM-based login where <form-login-page> points to a servlet
- the servlet concatenates the two password items (in your case zone-id
and
pin-no) and
passes it as "password" to
weblogic.servlet.security.ServletAuthentication.weak(username, password)
to perform the authentication
- our CustomRealm separates the two password items and performs the
authenticationHi Alfred,
Thanks for the prompt response. I was thinking about the same technique ;-). Although
I haven't considered all the options, it seems to me that the spec could have
an extension point here with some custom fields like "j_custom" or any field starting
with "j_"... Any comments?
Thanks again,
Kind Regards,
Yagiz Erkan (http://www.erkans.com)
([email protected])
([email protected])

Similar Messages

  • How do I save more than one username and password for a site?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/918629]]</blockquote>
    I manage two online calendar accounts under one website (both account admin centers actually have their own URL but the main root of the webpage is the same). My "user ID" (which is my e-mail address) is the same for both accounts.
    Firefox used to associate the user ID and password with the ENTIRE URL so, in effect, it would remember them for BOTH admin centers. Now it seems to only remember the main root webpage (www.samplepage.com instead of www.samplepage.com/adminloginA).
    How do I get it to remember the ENTIRE URL instead of just the root? I need it to remember both usernames and passwords.
    Thanks!

    That is not possible with the Firefox password manager. You can only save a user name and its password once for a specific domain, so if the name is the same then it doesn't work.

  • How do I save more than one username and password for one website?

    First, let me say that I'm extremely irritated that I just spent 15 minutes writing a very detailed question and researching my OS, browser version, etc. only to have it all erased because I didn't "verify" my e-mail before I started typing my question. Firefox: please fix your sign-up and question posting process so this doesn't happen. It should retain your info for a smooth process after you verify. What a waste of time and effort when I'm already frustrated.
    ACTUAL QUESTION: I manage two online calendars under one root URL (www.samplepage.com/calendar1 and www.samplepage.com/calendar2). My e-mail address is the user ID for both accounts but the passwords are different.
    FF used to associate your username and password with the ENTIRE URL but now it only associates with the root (www.samplepage.com). So, for me, it will only remember one password.
    How can I get it to remember BOTH passwords?
    Thanks!

    That is not possible with the Firefox password manager. You can only save a user name and its password once for a specific domain, so if the name is the same then it doesn't work.

  • Save more than one username and password on Yahoo Mail

    I have not been able to save my user/pass in Yahoo Mail on Mozilla. I was able to find an article in support where I should change autocomplete="off" to autocomplete="on". This worked great, but only for ONE user/pass. I need to able to save whatever user & pass I type in Yahoo Mail, not just one. Ive even tried to restart my browser after changing the code, but still didnt work.

    https://addons.mozilla.org/en-US/firefox/addon/saved-password-editor/
    <br />
    Adds the ability to create and edit entries in the password manager.

  • HT4759 When I sign into my mobile me account the username and password is not recognised what do I do?

    When I sign into my mobile me account the username and password is not recognised what do I do?

    - Go to settings>iTunes and App Store and sign out and sign into your account.
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • I just purchased a new iMac, and can't get into my Wordpress blog. The username and password work on my old Macbook, iPhone4, etc, and all my other password-restricted sites are accessible...just not Wordpress. Ideas? New to all this...

    I just purchased a new iMac, and can't get into my Wordpress blog. The username and password work on my old Macbook, iPhone4, etc, and all my other password-restricted sites are accessible...just not Wordpress. Ideas? New to all this...Thanks! JP

    Try holding down the Shift key in Windows when opening iTunes. In the resulting dialogue you will get the option to create a new library or navigate to an existing one. The default location for your iTunes library is in C:\Documents and Settings\Username\My Documents\My Music\iTunes\ (or C:\Username\Music\iTunes\ in Vista). Look in there and see if you have more than one library file (they have the extension .itl) If you have more than one try opening them in turn, you may find your original library is still intact: How to open an alternate iTunes Library file

  • Hi I bought an iPhone from my friend who forgot the username and password, and now my iPhone Aktyvyshn code and that it wants to register Forgot your password to her email, please guide me

    Hi I bought an iPhone from my friend who forgot the username and password, and now my iPhone Aktyvyshn code and that it wants to register Forgot your password to her email, please guide me

    You can NOT do so. Only the owner of the account used to lock the phone can remove it. Instructions for how to do so can be found within or linked from within the document I already linked to.
    Activation lock is an anti-theft feature designed to make the device useless to anyone other than the rightful owner.
    If your friend refuses to give your money back and can not or will not remove the activation lock, there is a fair possibility that the phone was not theirs to sell in the first place.

  • What is the username and password

    I HAVE A PROBLEM WITH THE USERNAME AND PASSWORD.
    I DOWNLOADED A ORACLE 8i PERSONAL EDITION,
    BUT IT DIDN'T ACCEPT THE USERNAME & PASSWORD BECAUSE IT CAME OUT WITH THE ERROR:
    ORA-12154
    PLEASE HELP ME OUT!!!!!!!!!!!!!
    THANK'S ALL

    which personal oracle you have downloaded ?
    if it polite (personal oracle lite) and platform is win9x than you have to use
    system/manager@odbc:polite . this is because
    it is connected through odbc and dsn is created during installation.
    viral
    [email protected]
    null

  • What are the username and password when i click the ICM of JavaEE5@SAP

    when i click the ICM of JavaEE5@SAP in the sapmanagement console mmc, It need i input the username and password for Web_admin, What are the username and password when i click the ICM of JavaEE5@SAP and which tools act the role as the VisualAdministrator of NetWeaver04s and NetWeaver2004s?
    thank you very much

    Hello Guoging,
    you can login to ICM with username Administrator and password abc123. That is described in the start.html file, which you can find in the unzipped Downloadpackage of SAP NetWeaver Java EE 5 Edition.
    You can use NetWeaverAdministrator(NWA) or config tool to configure this edition. NWA
    needs to be installed separately. If you have a default installation, go to
    C:SAPJP1JC00j2eeNWAdmin and execute the file install.bat. Ensure that NetWeaver is running, enter user Administrator und the Masterpassword you chose during installation and wait around 20 Minutes or more. NWA is started automatically after installation has finished in your webbrowser.
    For more information on NWA read the Administrationguide
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/806e75a0-0e01-0010-2587-fc518de8ac1a">Administration Guide</a>

  • Could not open gmail on the mail application of the mac book pro. Gmail has two account types, SMTP and Google IMAP. In both cased failure in trying to log on to SMTP and Google IMAP because I have to verify that the username and password are correct.  Ho

    Could not open gmail on the mail application of the mac book pro.
    Gmail has two account types, SMTP and Google IMAP.
    In both cases failure in trying to log on to SMTP and Google IMAP because I have to verify that the username and password are correct.
    How do I verify that? Please help. Thanks.

    Routing gmail through Mail.app:
    imap-http://mail.google.com/support/bin/answer.py?answer=81379&topic=12814
    pop-http://mail.google.com/support/bin/answer.py?answer=13275&topic=12810
    More up-to-date advice here:
    http://www.macworld.com/article/2033842/make-mail-and-gmail-play-nice.html#tk.nl _mwhelp
    Note that you lose privacy when using Gmail (and Yahoo):
    Gmail and Yahoo both scan users' emails. They do algorithmic analysis of your email messages, targeting ads that relate to the content of your messages.

  • How do i send the username and password to yahoo web page through url

    how do i send the username and password to yahoo web page through url i.e as Query string so that my account in yahoo will open...

    If you don't mind using a library, then download and use the Apache HttpClient library. It takes care of all these details for you.

  • How can i clear the usernames and passwords history from all login websites?

    how can i clear the usernames and passwords in the log in history of the websites? example when i want to login to my facebook i always type first letter of my e-mail and it comes with the passwords because before i put remember my password, and in other websites so, i just need to delete all this login history and it's not working from the clear everything !!! :S any idea please !! thanks in advance :)

    See:
    http://kb.mozillazine.org/Deleting_autocomplete_entries
    http://kb.mozillazine.org/Password_Manager

  • How to catch exception while validating the username and password in hbm

    Hi,
    I do want to set the username and password dynamically in hibernate.cfg.xml
    Here below is my configuration file.
    {code<hibernate-configuration> 
    <session-factory> 
           <property name="hibernate.bytecode.use_reflection_optimizer">false</property> 
           <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> 
           <property name="hibernate.connection.pool_size">10</property> 
           <property name="show_sql">true</property> 
           <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property> 
           <property name="hibernate.hbm2ddl.auto">update</property> 
           <property name="current_session_context_class">thread</property> 
           <property name="show_sql">true</property> 
         </session-factory> 
    </hibernate-configuration>{code}
    Also im getting that session factory object like the below code.
    public class Sessions {        private static SessionFactory sessionFactory;      private static Configuration configuration = new Configuration();        static {          try {              String userName = GuigenserviceImpl.userName;              String password = GuigenserviceImpl.password;              String hostName = GuigenserviceImpl.hostName;              String portNo = GuigenserviceImpl.portNo;              String sId = GuigenserviceImpl.sId;                  configuration                      .setProperty("hibernate.connection.username", userName);              configuration                      .setProperty("hibernate.connection.password", password);              configuration.setProperty("hibernate.connection.url",                      "jdbc:oracle:thin:@" + hostName + ":" + portNo + ":" + sId);                try {              configuration.configure("/hibernate.cfg.xml");              sessionFactory = configuration.buildSessionFactory();              GuigenserviceImpl.strAccpted = "true";              }              catch (Exception e) {                    e.printStackTrace();                  GuigenserviceImpl.strAccpted = "false";              }            }          catch (HibernateException hibernateException) {              GuigenserviceImpl.strAccpted = "false";              hibernateException.printStackTrace();          }          catch (Throwable ex) {                GuigenserviceImpl.strAccpted = "false";              ex.printStackTrace();              throw new ExceptionInInitializerError(ex);          }      }          public static SessionFactory getSessionFactory() {          return sessionFactory;      } 
    So, in this above scenario, suppose if im giving the wrong password means exception should be caught and the string variable "GuigenserviceImpl.strAccpted" should be assigned to false.
    But im getting the SQL Exception only in console like wrong username and password. And finally i couldn't able to catch the exception in Sessions class, static block.
    Anyone can help me in catching that SQL Exception in my Sessions class and i need to handle that SQL Exception in my class.
    Im getting this following exception message in my console.
      INFO: configuring from resource: /hibernate.cfg.xml  Apr 6, 2009 2:47:00 PM org.hibernate.cfg.Configuration getConfigurationInputStream  INFO: Configuration resource: /hibernate.cfg.xml  Apr 6, 2009 2:47:00 PM org.hibernate.cfg.Configuration doConfigure  INFO: Configured SessionFactory: null  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: Using Hibernate built-in connection pool (not for production use!)  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: Hibernate connection pool size: 10  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: autocommit mode: false  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@192.168.1.12:1521:orcl  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: connection properties: {user=scott, password=****}  Apr 6, 2009 2:47:01 PM org.hibernate.cfg.SettingsFactory buildSettings  WARNING: Could not obtain connection metadata  java.sql.SQLException: ORA-01017: invalid username/password; logon denied        at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)      at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)      at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:799)      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368)      at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)      at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)      at java.sql.DriverManager.getConnection(DriverManager.java:525)      at java.sql.DriverManager.getConnection(DriverManager.java:140)      at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)      at com.beyon.ezygui.server.Sessions.<clinit>(Sessions.java:39)      at com.beyon.ezygui.server.GuigenserviceImpl.testRPC(GuigenserviceImpl.java:322)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    Thanks in advance.
    Thanks & Regards,
    Kothandaraman N.

    Hi,
    Myself hardcoded that username and password checking like the below code.
    String name = loginData.get("userName").toString();
              String pswd = loginData.get("pswd").toString();
              String hstName = loginData.get("hName").toString();
              String prtNo = loginData.get("portNo").toString();
              String sid = loginData.get("sId").toString();
              SessionFactory sessionFactory = null;
              try {
                   if (name.trim().equals(userName) && pswd.trim().equals(password)
                             && hstName.trim().equals(hostName)
                             && prtNo.trim().equals(portNo) && sid.trim().equals(sId)) {
                        sessionFactory = Sessions.getSessionFactory();
                        strAccpted = "true";
                   } else {
                        strAccpted = "false";
              } catch (Exception e) {
                   e.printStackTrace();
                   strAccpted = "false";
              }I have my own values in string objects, then comparing that values with the values from login form. If both values are matching, then i will do configurations in hibernate.
    ResourceBundle resourceBundle = ResourceBundle
                   .getBundle("com.beyon.ezygui.server.Queries");
         public static final String connection_url = resourceBundle
                   .getString("connection.url");
         public static final String userName = resourceBundle.getString("userName");
         public static final String password = resourceBundle.getString("password");
         public static final String hostName = resourceBundle.getString("hostName");
         public static final String portNo = resourceBundle.getString("portNo");
         public static final String sId = resourceBundle.getString("sId");The above are the String objects i'm checking for the match with values from login form.
    Thanks & Regards,
    Kothandaraman N.

  • Can't get FaceTime to work...any suggestions...it just keeps me in this loop of asking to sign in, then verifying, then asking to sign in again. I know the username and password are correct.

    Can't get face time to work. Know the username and password are right. Asks me to sign in...verifying... And then goes back to sign in...

    One thing that worked for me:
    launched Message app which uses the same backend as Facetime. If it launches, click on the video. May display a Error Dialog. Call AppleCare and give them the number displayed. This will give them the needed info to check your AppleID account for the messaging servers
    For some reason FaceTime did not display this error, yet once I gave the Support person the number it was fixed in just a minute.
    YMMV

  • Dear Apple I buy a refurbish iPhone 5s the IMEI ******* and ICCID ******** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.  Best regard

    Dear Apple
    I buy a refurbish iPhone 5s the IMEI ******** and ICCID ********** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.
    Best regard
    <Edited by Host>

    This is a user forum. You aren't talking to Apple here.
    Return your iPhone for a refund. There is no way to remove the Activation Lock. Apple won't get involved.
    <Edited by Host>

Maybe you are looking for

  • MRP Logic -Negative Available quantity in MD04

    Hi Experts, We have negative available quantity in MD04. There are no receipts generated particularly for some period even after MRP Run. MRP Type is maintained as P1- MRP Fixing type. Safety time is maintained as 3 days. Planning strategy is 40. Ple

  • Is it possible to have filters for one account on 3 devices ? And have the same results/folders.

    I have one email account on 3 devices and I need to filter all received emails, on all 3 devices. Same folders and same filters. If I create a filter rule on one PC then I can't find the filtered emails ( that are in the new created folder on PC no.1

  • I know this is in the wrong place but I don't know where to ask. Anyway...

    I was wondering how long it takes to get the iPod rebate after paying for it with your MacBook Pro order? If nobody knows the answer could you please point me in the right direction in terms of who to ask? Thanks alot! -George

  • Quick Share in Premiere Elements 10?

    Hi, I just upgraded from Premiere Elements 8 to version 10. And I'm missing the "Quick Share" function, where I can store carfully designed export settings for later use. Where can I find the "Quick Share" function in PE 10? Thanks Konrad

  • Where did my pictures go?

    I recently downloaded all of my pictures to my iPhone 5S. Obviously a big mistake since it ate up most of the memory in my phone. I was going to delete them on the phone and just turn off the photo sync in iTunes but when I hooked up the iPhone to a