NAME

Device::Firewall::PaloAlto::UserID - Palo Alto User-ID dynamic mapping operations.

VERSION

version 0.1.9

SYNOPSIS

# Add an IP to user address mapping
$ fw->user_id->add_ip_mapping('192.0.2.1', 'localdomain\greg.foletta');

# Remove anb IP o user address mapping
$ fw->user_id->rm_ip_mapping('192.0.2.1', 'localdomain\greg.foletta');

DESCRIPTION

This module allows for the addition and removal of dynamic IP to user address mappings.

METHODS

add_ip_mapping

Adds a user to IP mapping.

# Bind the IP to a user with a timeout of 10 minutes
$fw->user_id->add_ip_mapping('192.0.2.1', 'localdomain\greg.foletta', 10);

# If no timeout is specified, defaults to one hour
$fw->user_id->add_ip_mapping('192.0.2.1', 'localdomain\greg.foletta');

rm_ip_mapping

Removes an IP mapping. Returns true if the mapping is removed, or Class::Error if there is an error.

If a mapping does not exist and a remove is attempted, true is still returned as it is not an error to remove an entry that doesn't exist.

$fw->user_id->rm_ip_mapping('192.0.2.1', 'localdomain\greg.foletta');

AUTHOR

Greg Foletta <greg@foletta.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Greg Foletta.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.