[Freeipa-users] writing IPA plugin
Rob Crittenden
rcritten at redhat.com
Thu Mar 27 20:43:20 UTC 2014
Stijn De Weirdt wrote:
> hi all,
>
> 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 return value is controlled by the exception raised. There is an rval
attribute defined in the exception.
rob
More information about the Freeipa-users
mailing list