Multiple base Profiles #2114
Replies: 3 comments
-
Hi @Felix-Braun, this particular scenario should be possible using profile nesting in Zowe CLI/Explorer V2. As an example from a config I use for demos and development, I have a demo system that I connect to with user name and password, then I have a dev system that authenticates through the APIML. The "demo" profile includes all properties needed to connect to a given LPAR which are then used for the "demo.zosmf" profile, while the "dev.zosmf" profile relies on the properties stored in the base profile:
There are some limitations with this if you are connecting to multiple instances of the APIML (because APIML connections must be defined within a base profile, and you can only have one default base profile). However, if APIML is not involved, you could use nesting to connect to any number of systems using different authentication methods. For V3, we are planning to allow users to specify profile links that could link service profiles to a base profile. This is related to issue: #1705, however, I think we are considering explicit links between profiles rather than relying only on a nested config structure. |
Beta Was this translation helpful? Give feedback.
-
Hello @adam-wolfe, i just made the nested profile:
Everytime I want to use the Profile with the Username and Password, it add the user and Password to the Baseprofile, after that, if I try to logon through apiml, it asks me for Username and Password. And in the CLI, it doesnt give me an error, it just does nothing. I don't know if you know ZMF extension/ CLI Plugin, otherwise I'll ask them to help me. Could this be a Problem from ZMF-Extensions? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Did you place the properties tokenType, tokenValue, user, and password into your profiles by hand in your text editor? The reason that I ask is that Zowe CLI software would not place tokenType and tokenValue into your apiml.profiles.zosmf profile. Also, it would not leave both user/password, and tokenType/TokenValue in your base profile. If my supposition is correct, I suggest that you create a clean slate by doing the following, and then make Zowe CLI create the correct token-related properties for you.
If you want to understand any of the upcoming commands, you can get descriptions of them with the following command:
You should now have a correct configuration. Test your apiml.zosmf profile with a simple CLI command, like the following. If that command works you can then try operations with the zmf plugin. You may need to follow up with your provider of the zmf plugin if you then have difficulties.
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I wanted to ask, if there is the possibility of creating multiple Base Profiles, to use.
For example, one with Authentication Token and one with User and Password. And then to specify in the profiles itself which to use?
Thanks in advance. :)
Beta Was this translation helpful? Give feedback.
All reactions