× 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.


  • Subject: Sync Passwords on two AS/400's
  • From: "E.D." <edavid3001@xxxxxxxxxxxx>
  • Date: Mon, 10 Jan 2000 09:55:06 -0600

I need to sync passwords on two AS/400's.  I have come across the API's QSYRUPWD
and QSYSUPWD.  I have never used API calls before and I am having a little
trouble getting started.  I have looked in the online library at IBM's site, and
this is what I have come up with;  (in it's simplist form)

C                   Movel     *blanks       recv           2000
C                   z-add     8             len               4 0
C                   Movel     'USER1'       USER             10
C                   Movel     'UPWD0100'    FORM              8
C                   Movel     *blanks       Error           100
C                   CALL      'QSYRUPWD'
c                   PARM                    RECV
c                   PARM                    LEN
c                   PARM                    FORM
c                   PARM                    USER
c                   PARM                    ERROR
C                   Movel     'USER2'       USER             10
c
C                   CALL      'QSYSUPWD'
c                   PARM                    RECV
c                   PARM                    FORM
c                   PARM      *blanks       ERROR
c                   seton                                        lr


This should make USER2's password match USER1.

If I debug and look at RECV after the first call, I see various characters - the
encrypted password I suppose.  However, after the second call is made, USER2's
password does not change.   There is nothing but blanks on ERROR at this point.

Any help?   Thanks.


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.