is there something like this for NT4.0 ?

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Mike
Hulse
Sent: Friday, April 16, 1999 12:14 PM
To: [EMAIL PROTECTED]
Subject: Re: Validating username and pwd on AS/400


If you use the AS400 Toolbox for Java you can use  the
com.ibm.as400.access.AS400 class.  There are many class methods for getting
and setting user id's, passwords, and general user functions.

The toolbox can be found at
http://www.as400.ibm.com/toolbox/welcome.htm


-----Original Message-----
From: Jeetandra Mahtani <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, April 16, 1999 10:54 AM
Subject: Validating username and pwd on AS/400


>Hello,
>I am establishing a connection to an AS400 in a
>servlet by the following:
>
>try{
>holder = new ConnectionHolder
>DriverManager.getConnection("jdbc:as400://NWRABR02/GWDRTR;naming=sql;errors
=full;extended
>dynamic=true;date format=iso;package
>library=GWDRTR;prompt=false",username,password));
>session.putValue("servletapp.connection", holder);
>}
>catch(SQLException e)
>{
>res.sendRedirect"http://mahtanjg/complaintsys/noas400act.htm");
>}
>Now, is there any way by which I could let the user
>know whether the username is correct and password is
>wrong or vice-versa? Any way by which I can find out
>if the user has an account on the AS400 or not, if
>yes give him an opportunity to try to login again and
>if not let the user know that there is no such account?
>The account is the user's account on the AS400, if the
>user enters the username correct and password wrong
>for three times, the account is disabled on the
>AS/400, which can lead to other complications of
>getting the administrator to reset the account. Any
>solutions for this other then having a separate table
>for username and password?
>Appreciate it.
>
>
>
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to