#9416 Better error description when managing a user with '--idp'
Closed: fixed by frenaud. Opened by rjeffman.

Issue

When adding (user-add) or modifying (user-mod) a user and using the option --idp if the IdP name is not found the output is ipa: ERROR: no such entry, which is not descriptive and hard to understand if several options are used at once.

Steps to Reproduce

  1. ipa user-add someuser --idp inexistent_idp

Actual behavior

The error message ipa: ERROR: no such entry is given.

Expected behavior

A better message, relating the error with an inexistent IdP should be provided.

Version/Release/Distribution

Affects all 4.10+ releases of FreeIPA


Metadata Update from @frenaud:
- Issue assigned to frenaud

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

master:

  • f57a7dbf508b9214dc8222ea0ba0acf162025d2e User plugin: improve error related to non existing idp
  • 7517e2ce217c20651b720b8a5e5a4a134e7cdfbf xmlrpc tests: add a test for user plugin with non-existing idp

ipa-4-10:

  • 387873080f1bc14aeaad89311b06dc46934be1ab User plugin: improve error related to non existing idp
  • caacccc6b92c08f510fba2e31d9c56eb372abddc xmlrpc tests: add a test for user plugin with non-existing idp

ipa-4-9:

  • 99aa03413421cf2839e89e10ca279ec19233dd01 User plugin: improve error related to non existing idp
  • dbcbe9a39c99008c6858bab53e2807b7bf01ba65 xmlrpc tests: add a test for user plugin with non-existing idp

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

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=2224572

Issue linked to bug 2224572

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=2224570 (was: https://bugzilla.redhat.com/show_bug.cgi?id=2224572)

Issue linked to bug 2224570

Metadata