Command Line Interface (cli) --info option not working as per documentation, always gives invalid choice #6572
-
Installed Janssen community edition on Ubuntu 22.04 as per instructions at: https://docs.jans.io/v1.0.20/admin/install/vm-install/ubuntu/ Tried configuring the server using the CLI, tried to CLI' s --info option to start with but that doesn't work as expected. The following is the output: As per the documentation at: https://docs.jans.io/v1.0.20/admin/config-guide/config-tools/jans-cli/, this should give: To get sample shema type /opt/jans/jans-cli/config-cli.py --schema , for example /opt/jans/jans-cli/config-cli.py --schema /components/schemas/AuthenticationMethod** |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
@devrimyatar Can you check? |
Beta Was this translation helpful? Give feedback.
-
Hi @AjayaVeeramalli I have the same build and the same command I tried. Seems to be working. To be sure, you can compare the build number that you are using with what is available in the screenshot below 👇 |
Beta Was this translation helpful? Give feedback.
-
Thanks @ossdhaval for the response. Versions seem to be correct: Title: Jans authentication server Title: SCIM API Server Title: Title: casa Title: Fido2 API Server Title: jans-config-api-server Is there any other installation / configuration step that I am missing. By the way, this is what I get when I tried the --schema option: I strongly feel that I might have missed some step. Checked the documentation, but not able to figure out. Also, just to bring to your attention, I am using Ubuntu 22.04. |
Beta Was this translation helpful? Give feedback.
-
I am using the embedded ldap that comes with janssen installation. |
Beta Was this translation helpful? Give feedback.
-
I did the reinstall and tried. The reinstall seems to have fixed some other issues that I was having. However, I was still getting this isssue. But then it just went away when I did the same with sudo. The following is the latest: (with and without sudo) $ sudo python3 /opt/jans/jans-cli/config-cli.py --info DefaultAuthenticationMethod To get sample schema type /opt/jans/jans-cli/config-cli.py --schema , for example /opt/jans/jans-cli/config-cli.py --schema AuthenticationMethod So, it seems not using sudo was the issue. Thanks @ossdhaval for the help. |
Beta Was this translation helpful? Give feedback.
I did the reinstall and tried. The reinstall seems to have fixed some other issues that I was having. However, I was still getting this isssue. But then it just went away when I did the same with sudo.
The following is the latest: (with and without sudo)
$ python3 /opt/jans/jans-cli/config-cli.py --info DefaultAuthenticationMethod
usage: config-cli.py [-h] [--host HOST] [--client-id CLIENT_ID] [--client-secret CLIENT_SECRET] [--access-token ACCESS_TOKEN]
[--plugins PLUGINS] [-debug] [--debug-log-file DEBUG_LOG_FILE] [--operation-id OPERATION_ID]
[--url-suffix URL_SUFFIX] [--info {}] [--op-mode {get,post,put,patch,delete}] [--endpoint-args ENDPOINT_ARGS]
[--schema SCHEMA] [-CC CONFIG_API_M…