#2865 Internal Error if no password provided to ipa-ad-trust
Closed: Fixed None Opened 11 years ago by rcritten.

ipa trust-add-ad ad.greyoak.com --admin Administrator[[br]]

ipa: ERROR: an internal error has occurred

The error logged is:

[Fri Jun 22 18:22:45 2012] [error] ipa: DEBUG: trust_add_ad(u'ad.greyoak.com', realm_admin=u'Administrator', all=False, raw=False, version=u'2.39')
[Fri Jun 22 18:22:45 2012] [error] ipa: ERROR: non-public: KeyError: 'error'
[Fri Jun 22 18:22:45 2012] [error] Traceback (most recent call last):
[Fri Jun 22 18:22:45 2012] [error]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 332, in wsgi_execute
[Fri Jun 22 18:22:45 2012] [error]     result = self.Command[name](*args, **options)
[Fri Jun 22 18:22:45 2012] [error]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 435, in __call__
[Fri Jun 22 18:22:45 2012] [error]     ret = self.run(*args, **options)
[Fri Jun 22 18:22:45 2012] [error]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 747, in run
[Fri Jun 22 18:22:45 2012] [error]     return self.execute(*args, **options)
[Fri Jun 22 18:22:45 2012] [error]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/trust.py", line 164, in execute
[Fri Jun 22 18:22:45 2012] [error]     raise errors.ValidationError(name=_('AD Trust setup'), reason=_('Realm administrator password should be specified'))
[Fri Jun 22 18:22:45 2012] [error]   File "/usr/lib/python2.7/site-packages/ipalib/errors.py", line 268, in __init__
[Fri Jun 22 18:22:45 2012] [error]     self.msg = self.format % kw
[Fri Jun 22 18:22:45 2012] [error] KeyError: 'error'
[Fri Jun 22 18:22:45 2012] [error] ipa: INFO: admin@GREYOAK.COM: trust_add_ad(u'ad.greyoak.com', realm_admin=u'Administrator', all=False, raw=False, version=u'2.39'): KeyError

Rename "trusts" component to "Trusts" to achieve correct sorting.

Metadata Update from @rcritten:
- Issue assigned to abbra
- Issue set to the milestone: FreeIPA 3.0 Beta 2

7 years ago

Login to comment on this ticket.

Metadata