NAME

Net::FreeIPA::Common provides common convenience methods for Net::FreeIPA

Public methods

find_one

Use the api method <api_<api_find>> to retrieve a single answer.

The criteria argument of the <api_<api_find>> is the empty string, the all option is set.

(Warns if more than one is found, and returns the first one in that case).

Returns undef in case of problem or if there is no result.

do_one

Wrapper for simple call using api and method via <api_<api_<method>(name)>>.

Any options are passed.

An error-type is not reported as error (still returns undef):

DuplicateEntry: when method is add, an existing entry is not reported as an error
NotFound: when method is not add, an missing entry is not reported as an error

Returns the result attribute on success, or undef otherwise.