Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Adopt authority

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adopt authority

    Vincent, Here is an example CL program that enables a user profile.
     PGM PARM(&USRPRF) DCL &USRPRF *CHAR LEN(10) DCL &MESAGE *CHAR LEN(80) CHKOBJ OBJ(QSYS/&USRPRF) OBJTYPE(*USRPRF) MONMSG MSGID(CPF9801) EXEC(DO) CHGVAR VAR(&MESAGE) VALUE('USERID- ' *CAT &USRPRF + *BCAT ' NOT FOUND.') SNDPGMMSG MSG(&MESAGE) TOPGMQ(*EXT) GOTO END ENDDO CHGUSRPRF USRPRF(&USRPRF) STATUS(*ENABLED) END: ENDPGM 
    When you compile the program, set the USEADPAUT parameter to *YES. Then change the owner of the program to the Security Officer or Sec Admin using the CHGOBJOWN command. Mark McCall
    On Friday, September 18, 1998, 07:36 AM, vincent wrote: How to grant the adopt authority to operator ids in order for them to only enable their passwords or other passwords without using security administrator id??

  • #2
    Adopt authority

    When I did adopted authority on programs, the parameter to use on the compile was USRPRF(*OWNER). Then, as Mark mentioned, make the owner the Security Officer or Security Administrator. Setting this parameter causes the program to run under the authority of the owner (now SECOFR or whatever) instead of under the authority of the user (the operator). The authority is adopted only while the program is active. The USEADPAUT parameter on the compile has a different but related purpose. If you compile PGM1 with adopted authority, then call PGM2 from PGM1, the USEADPAUT parameter on PGM2 tells system whether or not to continue to use the adopted authority on when running PGM2. Note however that if PGM1 has been ended before PGM2 is called, then the adopted authority has already ended and it doesn't matter what you put in the USEADPAUT parameter on PGM2. Debbie Gallagher ____________________ On Friday, September 18, 1998, 05:05 PM, Mark McCall wrote: Vincent, Here is an example CL program that enables a user profile. . . . . . When you compile the program, set the USEADPAUT parameter to *YES. Then change the owner of the program to the Security Officer or Sec Admin using the CHGOBJOWN command. Mark McCall ************** On Friday, September 18, 1998, 07:36 AM, vincent wrote: How to grant the adopt authority to operator ids in order for them to only enable their passwords or other passwords without using security administrator id??

    Comment

    Working...
    X