Skip to content

Commit

Permalink
bug - Cisco NAC key error (librenms#15934)
Browse files Browse the repository at this point in the history
* fix librenms#15933

fixing librenms#15933

* nullables are now null
  • Loading branch information
PipoCanaja authored Apr 12, 2024
1 parent 5db5435 commit e19861c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions LibreNMS/OS/Shared/Cisco.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,15 @@ public function pollNac()
'port_id' => $ifIndex_map->get($ifIndex, 0),
'mac_address' => $mac_address,
'auth_id' => $auth_id,
'domain' => $portAuthSessionEntryParameters['cafSessionDomain'],
'username' => $portAuthSessionEntryParameters['cafSessionAuthUserName'],
'ip_address' => (string) IP::fromHexString($portAuthSessionEntryParameters['cafSessionClientAddress'], true),
'host_mode' => $portAuthSessionEntryParameters['cafSessionAuthHostMode'],
'authz_status' => $portAuthSessionEntryParameters['cafSessionStatus'],
'authz_by' => $portAuthSessionEntryParameters['cafSessionAuthorizedBy'],
'timeout' => $portAuthSessionEntryParameters['cafSessionTimeout'],
'time_left' => $portAuthSessionEntryParameters['cafSessionTimeLeft'],
'vlan' => $portAuthSessionEntryParameters['cafSessionAuthVlan'],
'domain' => $portAuthSessionEntryParameters['cafSessionDomain'] ?? '',
'username' => $portAuthSessionEntryParameters['cafSessionAuthUserName'] ?? '',
'ip_address' => (string) IP::fromHexString($portAuthSessionEntryParameters['cafSessionClientAddress'] ?? '', true),
'host_mode' => $portAuthSessionEntryParameters['cafSessionAuthHostMode'] ?? '',
'authz_status' => $portAuthSessionEntryParameters['cafSessionStatus'] ?? '',
'authz_by' => $portAuthSessionEntryParameters['cafSessionAuthorizedBy'] ?? '',
'timeout' => $portAuthSessionEntryParameters['cafSessionTimeout'] ?? '',
'time_left' => $portAuthSessionEntryParameters['cafSessionTimeLeft'] ?? null,
'vlan' => $portAuthSessionEntryParameters['cafSessionAuthVlan'] ?? null,
'authc_status' => $session_info['authc_status'] ?? '',
'method' => $session_info['method'] ?? '',
]));
Expand Down

0 comments on commit e19861c

Please sign in to comment.