[Freeipa-users] writing IPA plugin

Stijn De Weirdt stijn.deweirdt at ugent.be
Thu Mar 27 20:51:16 UTC 2014


hi rob,

>> i'm trying to write my own FreeIPA plugin (for frontend cli usage), and
>> so far so good, but i'm stuck on 2 issues:
>> - is it possible to have the plugin use a dedicated or additional log
>> file? i can manipulate the log manager, but maybe there's a proper API
>> in freeipa for it; similar to the log_file_name in
>> ipapython.admin.AdminTool classes
>>
>> - i want to exit the plugin on certain error conditions and want to exit
>> with non-zero exitcode. how can this be done?
>
> Which side do you want to do the logging on, the server or client side?
the client side
>
> The return value is controlled by the exception raised. There is an rval
> attribute defined in the exception.

thanks!

stijn

>
> rob
>
>




More information about the Freeipa-users mailing list