Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init apf support authLoadlib only with a reasonable default #4180

Open
MarkAckert opened this issue Feb 7, 2025 · 2 comments
Open

init apf support authLoadlib only with a reasonable default #4180

MarkAckert opened this issue Feb 7, 2025 · 2 comments

Comments

@MarkAckert
Copy link
Member

MarkAckert commented Feb 7, 2025

Apfauth

Help:

  • zowe.setup.dataset.authLoadlib is the user custom APF LOADLIB. This field is
    optional. If it's not defined, SZWEAUTH from zowe.setup.dataset.prefix data
    set will be APF authorized.
  • zowe.setup.dataset.authPluginLib is the user custom APF PLUGINLIB.
    You can install Zowe ZIS plugins into this load library.

zowe.setup.dataset.authLoadlib and zowe.setup.dataset.authPluginLib omitted in config and this is generated by ZWEGEN00:

//STDPARM DD *                                          
SH cd '/zowe/' &&                       
cd bin/utils &&                                         
export LOADLIB='CFG.ZOWE.SETUP.DATASET.AUTHLOADLIB' &&  
export LOADLOC=SMS &&                                   
export PLUGLIB='CFG.ZOWE.SETUP.DATASET.AUTHPLUGINLIB' &&
export PLUGLOC=SMS &&                                   
./opercmd.rex "SETPROG APF,ADD,DSN=$LOADLIB,$LOADLOC" &&
./opercmd.rex "SETPROG APF,ADD,DSN=$PLUGLIB,$PLUGLOC"   
//*                                                     

When trying zwe init apfauth -c ./zowe.yaml:

ERROR: Error ZWEL0157E: zowe.setup.dataset.authLoadlib is not defined in Zowe YAML configuration file.

Expectation:
If zowe.setup.dataset.authLoadlib and zowe.setup.dataset.authPluginLib omitted, the JCL will authorize only zowe.setup.dataset.prefix.SZWEAUTH.

Originally posted by @Martin-Zeithaml in #4107 (comment)

@MarkAckert
Copy link
Member Author

will be addressed in #4107

@Martin-Zeithaml
Copy link
Contributor

Martin-Zeithaml commented Feb 11, 2025

init mvs

  • Create parmlib, authLoadlib, authPluginLib - all optional
    • Copy ZWESIP00 to parmlib
    • Create & copy load modules to authLoadlib, if authLoadlib is not equal to zowe.setup.dataset.prefix.SZWEAUTH

Maximal Init MVS Scenario

All datasets are created and all members were copied.

Minimal Init MVS Scenario

If authLoadlib is different from zowe.setup.dataset.prefix.SZWEAUTH, create and copy load modules.
If all parmlib, authLoadlib, authPluginLib not set, do nothing and ends with success.

Additional checks?

If components.zss.enabled and parmlib undefined, error.

init apfauth

  • authPluginLib should be optional
  • If zss & zis not used, only ZWELNCH would be used, APF not needed at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants