# Net::IPA.pm -- Perl 5 interface of the (Free)IPA JSON-RPC API
#
# for more information about this api see: https://vda.li/en/posts/2015/05/28/talking-to-freeipa-api-with-sessions/
#
# written by
e Net::IPA;
our $VERSION = '1.0';
=head1 NAME
Net::IPA.pm -- Perl 5 interface of the (Free)IPA JSON-RPC API
=head1 SYNOPSIS
use Net::IPA;
my $ipa = new Net::IPA(
hostname => 'ipa.server.
se strict;
use Net::IPA::Methods;
use Net::IPA::Response;
use vars qw($AUTOLOAD);
use Carp;
use JSON;
use LWP::UserAgent; # http://search.cpan.org/~ether/libwww-perl-6.15/lib/LWP/UserAgent.pm
use LW
# Net::IPA.pm -- Perl 5 interface of the (Free)IPA JSON-RPC API
#
# for more information about this api see: https://vda.li/en/posts/2015/05/28/talking-to-freeipa-api-with-sessions/
#
# written by
# Net::IPA.pm -- Perl 5 interface of the (Free)IPA JSON-RPC API
#
# for more information about this api see: https://vda.li/en/posts/2015/05/28/talking-to-freeipa-api-with-sessions/
#
# written by
2, see LICENSE file for more information.
package Net::IPA::Methods;
use strict;
use JSON;
our $USE_RAW = JSON::true;
#** Ping request
#*
sub ping
{
return {
method => 'ping',
params => [
my ($user, %args) = @_;
unless(%args){
%args = (
all => 0,
no_members => JSON::false,
pkey_only => JSON::false,
);
}
$args{raw} = $USE_RAW unless(exists $args{raw});
return {
me