JSP Form-Based Authentication - - - Java Noob

Hi guys,

I am having trouble understanding how this works. Where would the usernames and passwords be stored? Does anybody have detailed information about this a link or something to help a newbie get started. I am trying to make a simple but secure java login page for the users of my website. I will also have a registration system. I have already looked at this site.

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security5.html#wp182253

Thank You,

Joe

[487 byte] By [JoeZa] at [2007-11-26 16:51:10]
# 1
The passwords and usernames would be stored on the Server? Are you asking where on the server? What about in a database? Is that what you are asking?
zadoka at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 2
Exactly, in these tutorials it does not show how or give any examples of storing the usernames in any database or XML file. I am looking to use a MYSQL database. Thank you for the fast reply.
JoeZa at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 3

> Exactly, in these tutorials it does not show how or

> give any examples of storing the usernames in any

> database or XML file.

That is because it doesn't matter to the example. Do it however you want.

> I am looking to use a MYSQL

> database.

That should work fine.

zadoka at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 4
Do you have any links that would get me started on how to authenticate against a MySQL database? Or how to add users and passwords? Thanks
JoeZa at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 5

> Do you have any links that would get me started on

> how to authenticate against a MySQL database? Or how

> to add users and passwords? Thanks

I would normally send you here. But the jdbc basics link seems to go in a loop?

http://java.sun.com/docs/books/tutorial/jdbc/index.html

Does anyone else have the link?

zadoka at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 6
And don't forget to store the passwords encrypted on the database.For instance, http://www.exampledepot.com/egs/javax.crypto/DesString.html
manuel.leiriaa at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 7
Thanks guys for the information! If I store the passwords encrypted on the database will this be secure enough not run it over SSL?Thanks,Joe
JoeZa at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 8
> Thanks guys for the information! If I store the> passwords encrypted on the database will this be> secure enough not run it over SSL?No, it is unrelated.
zadoka at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 9
Okay, thanks. One more prob, how do I give out Duke stars?
JoeZa at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 10
I figured it out. Sorry for the low amount of stars fellas, I promise there will be more next time.
JoeZa at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...
# 11
> Okay, thanks. One more prob, how do I give out Duke> stars?Scroll down here: http://developers.sun.com/forums/dukestars/how_works.jsp
zadoka at 2007-7-8 23:18:49 > top of Java-index,Java Essentials,New To Java...