Nicolas Sonoda via Ganglia-general
<[email protected]> writes:
> Can I create more than one user login on Ganglia? And select which nodes that
> user will see?
In functions.php we have checkAccess():
968 /**
969 * Check if current user has a privilege (view, edit, etc) on a resource.
970 * If resource is unspecified, we assume GangliaAcl::ALL.
971 *
972 * Examples
973 * checkAccess( GangliaAcl::ALL_CLUSTERS, GangliaAcl::EDIT, $conf ); //
user has global edit?
974 * checkAccess( GangliaAcl::ALL_CLUSTERS, GangliaAcl::VIEW, $conf ); //
user has global view?
975 * checkAccess( $cluster, GangliaAcl::EDIT, $conf ); // user can edit
current cluster?
976 * checkAccess( 'cluster1', GangliaAcl::EDIT, $conf ); // user has edit
privilege on cluster1?
977 * checkAccess( 'cluster1', GangliaAcl::VIEW, $conf ); // user has view
privilege on cluster1?
978 */
979 function checkAccess($resource, $privilege, $conf) {
On my system I have (with apache auth - but currently inactive):
$acl = GangliaAcl::getInstance();
//$acl->addPrivateCluster( 'unspecified' );
$acl->addRole( 'admin', GangliaAcl::ADMIN );
$acl->addRole( 'guest', GangliaAcl::GUEST );
An older thread was
https://www.mail-archive.com/[email protected]/msg09109.html
Some docu:
https://github.com/ganglia/ganglia-web/wiki/Authorization-System
https://www.oreilly.com/library/view/monitoring-with-ganglia/9781449330637/ch04.html
Does that help?
Jochen
--
This space is intentionally left blank.
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general