|
Thanks to all. The code I downloaded is sending the second parameter
group.
But since the length is in binary I need to do this in RPG?
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Pete Helgren
Sent: Thursday, December 20, 2007 9:46 PM
To: Midrange Systems Technical Discussion
Subject: Re: Question about QSYGETPH and long passwords
Jack,
The API documentation has this:
*Length of password*
INPUT; BINARY(4)
The length, in bytes, of the password contained in the user profile
password parameter. If optional parameter group 2 is not specified,
a default of 10 is used.
You'll need to use the "optional" parameters if the password is greater
than 10 chars
Pete Helgren
Jacktucky wrote:
I'm trying to call QSYSGETPH from a CL. If I test with a password thatis
10 characters or less, the code works.CLP
If I try a long password, it fails with incorrect password.
Is there some special way to call that API in CL? The length parm is
correct.
We are using code from iseriestools.com. I just modified the CMD and
to
use 128 character length for the password--
CALL PGM(QSYGETPH) PARM(&USERID &PASSWORD &HANDLE
&ERRORCODE +
&PWDLEN &CCSID)
Thanks
Jack
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.