× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sure, its a fairly straight forward api called qsygetph here's a snippet:

      **** copy of QUSEC error code data structure from QSYSINC/QRPGLESRC
     D/Copy QSYSINC/QRPGLESRC,QUSEC
     .
     .
     .
     .
     C*
     C                   Call      'QSYGETPH'
     C                   Parm                    WKUser
     C                   Parm                    WKPassword
     C                   Parm                    ProfileHandle
     C                   Parm                    QUSEC
     C*
     C                   If        QUSBAVL > 0                                  
If
     C                   Eval      Error = *ON                                  
|
     C                   Endif                                                  
Endif
     C*

Call with userprofile and password.  If it is valid (QUSBAVL = 0) then it 
returns with a 12 byte profile handle which can be used to set the server job 
to run as the user or just ignored.

If it is invalid the QUSEC data structure will contain error information which 
is explained in the system API manual
-----Original Message-----
From: Giri Gopal [mailto:GiriGopal@bcgink.com]
Sent: Wednesday, December 04, 2002 8:55 AM
To: rpg400-l@midrange.com
Subject: Verifying User Name and Password



Hello:

I am developing a web front end using ASP on W2K. I would like the user to
sign in using AS/400 UserId and PWD. Is there a way I can pass those to an
API which will verify on the AS/400 and confirm if the userid and pwd is
correct.

If any one has done this, can you please share the code.

Thanks in advance for your help.
GG

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.