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

fix(jans-cli-tui): jans link schema is not correct #5571

Closed
manojs1978 opened this issue Jul 19, 2023 · 1 comment · Fixed by #5601
Closed

fix(jans-cli-tui): jans link schema is not correct #5571

manojs1978 opened this issue Jul 19, 2023 · 1 comment · Fixed by #5601
Assignees
Labels
comp-jans-cli-tui Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality

Comments

@manojs1978
Copy link
Contributor

Describe the bug
jans link schema is not correct

To Reproduce
Steps to reproduce the behavior:

  1. install jans 1.0.16.nightly
  2. /opt/jans/jans-cli/config-cli.py --info JansLinkConfiguration
  3. /opt/jans/jans-cli/config-cli.py --schema Jans Link Plugin:JansLinkConfiguration
  4. check for schema file

Expected behavior
schema file name is not correct

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: suse
  • Browser [e.g. chrome, safari]
  • Version15 sp4
  • jans 1.0.16.nightly
  • dB mysql

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@mo-auto mo-auto added comp-jans-cli-tui Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality labels Jul 19, 2023
@devrimyatar
Copy link
Contributor

@manojs1978 We need to double quote schema path if there is whitespace, I fixed the code so that it puts double quotes when help is queried:

image

So that you can retreive shcema as

root@ubuntu:~# /opt/jans/jans-cli/config-cli.py --schema "Jans Link Plugin:JansLinkConfiguration"
{
  "inumConfig": {
    "configId": {
      "type": "string"
    },
    "bindDN": {
      "type": "string"
    },
    "bindPassword": {
      "type": "string"
    },
    "servers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "maxConnections": {
      "type": "integer",
      "format": "int32"
    },
    "useSSL": {
      "type": "boolean"
    },
    "baseDNs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "primaryKey": {
      "type": "string"
    },
    "localPrimaryKey": {
      "type": "string"
    },
    "useAnonymousBind": {
      "type": "boolean"
    },
    "enabled": {
      "type": "boolean"
    },
    "version": {
      "type": "integer",
      "format": "int32"
    },
    "level": {
      "type": "integer",
      "format": "int32"
    }
  },
  "targetConfig": {
    "configId": {
      "type": "string"
    },
    "bindDN": {
      "type": "string"
    },
    "bindPassword": {
      "type": "string"
    },
    "servers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "maxConnections": {
      "type": "integer",
      "format": "int32"
    },
    "useSSL": {
      "type": "boolean"
    },
    "baseDNs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "primaryKey": {
      "type": "string"
    },
    "localPrimaryKey": {
      "type": "string"
    },
    "useAnonymousBind": {
      "type": "boolean"
    },
    "enabled": {
      "type": "boolean"
    },
    "version": {
      "type": "integer",
      "format": "int32"
    },
    "level": {
      "type": "integer",
      "format": "int32"
    }
  },
  "ldapSearchSizeLimit": 146,
  "keyAttributes": [
    "string"
  ],
  "keyObjectClasses": [
    "string"
  ],
  "sourceAttributes": [
    "string"
  ],
  "customLdapFilter": "string",
  "updateMethod": "string",
  "defaultInumServer": true,
  "keepExternalPerson": true,
  "useSearchLimit": false,
  "snapshotFolder": "string",
  "snapshotMaxCount": 66,
  "baseDN": "string",
  "personObjectClassTypes": [
    "string"
  ],
  "personCustomObjectClass": "string",
  "contactObjectClassTypes": [
    "string"
  ],
  "allowPersonModification": true,
  "supportedUserStatus": [
    "string"
  ],
  "loggingLevel": "string",
  "loggingLayout": "string",
  "externalLoggerConfiguration": "string",
  "metricReporterInterval": 111,
  "metricReporterKeepDataDays": 55,
  "metricReporterEnabled": false,
  "disableJdkLogger": false,
  "cleanServiceInterval": 191,
  "linkEnabled": true,
  "serverIpAddress": "string",
  "pollingInterval": "string",
  "lastUpdate": "string",
  "lastUpdateCount": "string",
  "problemCount": "string",
  "useLocalCache": false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-cli-tui Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants