aspose file tools*
The moose likes Java in General and the fly likes authentication ? (servlet or applet?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "authentication ? (servlet or applet?)" Watch "authentication ? (servlet or applet?)" New topic
Author

authentication ? (servlet or applet?)

Joshua Wegrzyn
Greenhorn

Joined: Mar 12, 2003
Posts: 3
All,
I have a question about username and password authentication. I have a Nokia firewall running checkpoint Firewall software on a Unix platform. One of the rules I have set up requires end users to authenticate through a web page that is being hosted on the firewall. I am not certain what web engine is hosting the pages. The pages/code came installed as part of the checkpoint package. I was able to get the authentication working with the default pages and code. Because the default forms and their flow are a bit clumsy I was hoping to change them. Since my background is network administration with very little coding I need some help.
The default code/pages for the current process are all in the same directory on the firewall. There are 8 files called...:ahclientd1.html through ahclientd8.html. I am only using ahclientd 1,2,3 and 7. The remaining is for different services.
Copies of the original code can been seen here: http://www.wegrzyn.com/ahclientd1through8Summary.htm
The following is the current process:
1.User goes to https://firewallAuthpage.com:901
2.Screen 1 prompts for username input
3.Click submit
4.Screen 2 prompts for password input
5.Click submit
6.Screen 3 displays notification of successful or failed authentication.
I would like to change the code so the username and password input were on the same page. I searched a few Nokia / Checkpoint forums and found some code that was suppose to do what I wanted. But it does not work. Can you have a look at the code and help me understand why it does not work? If you can help me with this or if you have ideas on another way to streamline the process I would appreciate your feedback.
Click here to see a copy of the new code that is suppose to combine the username and password into one form: http://www.wegrzyn.com/CombineUsernameAndPassword.htm
Another solution I was thinking about would involve an applet. But that is the least attractive since it would require end user software to be loaded. But here is what I was thinking on that.. Logically the applet would behave as follows:
1.User activates loaded Java applet.
2.Applet input box appears asking for Username and Password
3.Click OK and applet will then pass username and password to https://firewallauthpage.com:901. (Screen 1 & 2 )
4.Applet box displays result of authentication:
A.If successful authentication applet will display successfully authentication message from screen3 and then automatically minimize into
background
B.If failed authentication applet Username and Password input box will reappear. After X number of failed authentications the applet will
notify of failure and instruct them to call helpdesk for further assistance.
Whatever the end result I definately need some hand holding. So any help or Code samples I could reuse would be so greatly appreciated.
Thanks for the help,
Weggy
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Please do not multipost. Please respondees, do it over here


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Closing this topic.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: authentication ? (servlet or applet?)