Skip to content

Commit

Permalink
intune MACs aren't always upper-case
Browse files Browse the repository at this point in the history
  • Loading branch information
julsemaan committed Jul 2, 2020
1 parent cefecb4 commit 362ae35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pf/provisioner/intune.pm
Expand Up @@ -266,7 +266,7 @@ sub verify_compliance {
if($info != $pf::provisioner::COMMUNICATION_FAILED){

foreach my $entry (@{$info->{value}}) {
if ($entry->{wiFiMacAddress} eq $azuremac) {
if (uc($entry->{wiFiMacAddress}) eq $azuremac) {
$logger->warn($azuremac);
if ($entry->{complianceState} ne 'compliant') {
$logger->info("Device $mac is not compliant. Raising security_event");
Expand Down

0 comments on commit 362ae35

Please sign in to comment.