#8097 ipa user-add-certmapdata is not able to add several entries correctly
Closed: fixed by frenaud. Opened by twoerner.

Issue

'ipa user-add-certmapdata test --issuer="CN=test1" --subject="CN=test1" --issuer="CN=test2" --subject="CN=test2"'
Results in 'X509:CN=test1\=CN\=test2CN=test1\=CN\=test2'

Steps to Reproduce

  1. ipa user-add test --first test --last test
  2. ipa user-add-certmapdata test --issuer="CN=test1" --subject="CN=test1" --issuer="CN=test2" --subject="CN=test2"

Actual behavior

'X509:CN=test1\=CN\=test2CN=test1\=CN\=test2' will be added to certmapdata

Expected behavior

Either add two certmappings or limit to use the options only once.

Version/Release/Distribution

$ rpm -q freeipa-server freeipa-client ipa-server ipa-client 389-ds-base pki-ca krb5-server
89-ds-base pki-ca krb5-server
package freeipa-server is not installed
package freeipa-client is not installed
ipa-server-4.8.0-1.module+el8.1.0+3577+202f0a51.x86_64
ipa-client-4.8.0-1.module+el8.1.0+3577+202f0a51.x86_64
389-ds-base-1.4.1.3-1.module+el8.1.0+3259+a5bc8ad3.x86_64
pki-ca-10.7.1-2.module+el8.1.0+3386+52d02a00.noarch
krb5-server-1.17-7.el8.x86_64


Metadata Update from @pcech:
- Issue tagged with: Falcon

Metadata Update from @frenaud:
- Issue assigned to frenaud

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3893

master:

  • e08a6de6afc49aabf817b11b878f6765f662e1ff DNParam: raise Exception when multiple values provided to a 1-val param
  • ecdd7dae19e84b33c65bf6203a2cd906a9eebc4e XMLRPCtest: add a test for add-certmapdata with multiple subject/issuer
  • 7893fb9cb1fc7c78c78079b23756bca53268caa1 test_ipalib: add test for DNParam class

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata