[Freeipa-devel] [PATCH] 756 handle no forwarded TGT

Rob Crittenden rcritten at redhat.com
Tue May 17 19:12:05 UTC 2011


Rob Crittenden wrote:
> Martin Kosek wrote:
>> On Mon, 2011-03-28 at 11:12 -0400, Rob Crittenden wrote:
>>> We should gracefully handle the case where no TGT has been forwarded.
>>> Right now we return a 500 error.
>>>
>>> ticket 1101
>>>
>>> rob
>>
>> This works fine on the server, nice error response from RPC server is
>> returned. However, I was wondering if we could print this error response
>> also to the CLI user?
>>
>> Right now, all I get are general error messages that would not lead me
>> to actual root cause of this problem:
>>
>> $ ipa user-show admin
>> ipa: ERROR: cannot connect to 'any of the configured servers':
>> https://vm-027.idm.lab.bos.redhat.com/ipa/xml,
>> https://vm-027.idm.lab.bos.redhat.com/ipa/xml
>>
>> Martin
>>
>
> The problem seems to be that the exception is Fault, not KerberosError.
> I'll take another look.
>
> rob

Updated patch attached.

You can test with:

% kinit -F admin
% ipa user-show admin
% kdestroy
% ipa user-show admin

You should get reasonable errors back.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-756-2-ccache.patch
Type: application/mbox
Size: 2593 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110517/503e96ef/attachment.mbox>


More information about the Freeipa-devel mailing list