× 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: Re: Sync Passwords on two AS/400's
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Mon, 10 Jan 2000 11:34:26 -0500

Another approach you can take to syncing passwords between AS/400's.
We used the system value QPWDVLDPGM.  It runs after the rest of the password 
checks run.  We have it execute a program on the remote 400(s) that does a 
CHGUSRPRF.  I wrote a simple encryption routine so the password doesn't go 
across the network in the clear.




edavid3001@primeinc.com on 01/10/2000 11:29:37 AM
Please respond to MIDRANGE-L@midrange.com@Internet
To:     MIDRANGE-L@midrange.com@Internet
cc:      
Fax to: 
Subject:        Sync Passwords on two AS/400's

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
+---


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