mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Added group password support.
(cherry picked from commit a8b113a6fc16128c4eda3bf0aeae155d1bab5dd8)
This commit is contained in:
parent
7c74340155
commit
9605122902
@ -351,6 +351,13 @@ sub process_xml_data ($$$$$) {
|
||||
}
|
||||
}
|
||||
|
||||
# Check the group password.
|
||||
my $rc = enterprise_hook('check_group_password', [$dbh, $group_id, $data->{'group_password'}]);
|
||||
if (defined($rc) && $rc != 1) {
|
||||
logger($pa_config, "Agent $agent_name did not send a valid password for group id $group_id.", 10);
|
||||
return;
|
||||
}
|
||||
|
||||
my $description = '';
|
||||
$description = $data->{'description'} if (defined ($data->{'description'}));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user