• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

user authentication

 
kimi lynn
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
could somebody please point me a nice tutorial to do user authentication like to check user name and password in a database table.
Thanks in advance
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
 
kimi lynn
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the links balaji.
well, am quite confused with this authentication.could somebody please clarify me.
I've a user interface done in swing.Now, the user enter the username and password and this has to be checked with the one's stored in the table.This table(db) is on the server.when the user is authenticated, the user can start matlab on the server.To start matlab, as well as the other things are working fine.I'm only confused with this authentication.
Thanks for your time
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To do the authentication check...
  • Pick one basic tutorial and try to learn how to connect,open a database like MsAccess/SQL Server/ or any JDBC complaint database.
  • Now try to learn how to retrieve select and display a table from a database using SQL Query
  • then try to learn how you can compare the given(from swing)username and password literals with the database table using SQL Query
  • Depending on step 3, you can allow or deny the user.

  •  
    kimi lynn
    Greenhorn
    Posts: 27
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Balaji, thanks once again.
    I've written a simple example in-order to display the records from a table and its working fine on my local pc.Now, I've placed my db on a drive which is accessible to all the pc's in our network and changed the path accordingly.
    when i try to run the program, it throws me off with this error:
    [Microsoft][ODBC Microsoft Access Driver] data '(unknown)' canot be found.
    How can i fix this error, thanks in advance.
    Heres the part of the code which I've used.

    [ January 20, 2004: Message edited by: kimi lynn ]
     
    kimi lynn
    Greenhorn
    Posts: 27
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    OK, I fixed it
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic