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 as is except
__noerror
.Following error-type are not reported as error (set/added as defaults for
__noerror
) (still returnsundef
):- DuplicateEntry: when
method
isadd
, an existing entry is not reported as an error - AlreadyInactive: when
method
isdisable
, an already inactive/disabled entry is not reported as an error - NotFound: when
method
is notmod
or any of the previous, an missing entry is not reported as an error
Returns the result attribute on success, or undef otherwise.
- DuplicateEntry: when