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, theall
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
andmethod
via<api_<api
_<method>(name
)>>.Any options are passed.
An error-type is not reported as error (still returns
undef
):- DuplicateEntry: when
method
isadd
, an existing entry is not reported as an error - NotFound: when
method
is notadd
, an missing entry is not reported as an error
Returns the result attribute on success, or undef otherwise.
- DuplicateEntry: when