Nagios_auth_Model Class Reference
Model providing access to the authorization system in nagios.
More...
Detailed Description
Model providing access to the authorization system in nagios.
Warning: a lot of these function calls are expensive! Do not create loads of instances!
Constructor & Destructor Documentation
Nagios_auth_Model::__construct |
( |
|
) |
|
Almost anything you can do with this model is expensive and cached.
Thus, do /NOT/ call this constructor directly - use self::instance() instead.
Member Function Documentation
Nagios_auth_Model::i_can_has_root_plx |
( |
|
) |
|
This is required for testing purposes.
The backdoor side of it can safely be ignored, since the reports library has zero authentication anyway, and return-into-libzend or similar exploits are impossible from php
Nagios_auth_Model::is_authorized_for_host |
( |
$ |
host |
) |
|
- Parameters:
-
- Returns:
- boolean
Nagios_auth_Model::is_authorized_for_hostgroup |
( |
$ |
hostgroup |
) |
|
- Parameters:
-
- Returns:
- boolean
Nagios_auth_Model::is_authorized_for_service |
( |
$ |
service, |
|
|
$ |
desc = false | |
|
) |
| | |
Return a boolean saying if we're authorized for the service name or id provided.
This function can be called with two arguments, where the first is host name, and the second is service description, or with one argument where host and service is ';' separated.
- Parameters:
-
| $service | string hostname if second arg is given, otherwize "host;service" |
| $desc | string = false see previous arg |
- Returns:
- boolean
Nagios_auth_Model::is_authorized_for_servicegroup |
( |
$ |
servicegroup |
) |
|
- Parameters:
-
- Returns:
- boolean
The documentation for this class was generated from the following file: