Link to module:
I finished the portion of my code that searches the user file and if the user isn't it in adds a new one. Not to difficult using this module. However, when I get to the remove portion, it doesn't seem to work. Anyone got any experience with this??? Here's my remove code.
#! /usr/local/bin/perl
use FileHandle;
use RADIUS::UserFile;
$| = 1;
my $username = $ARGV[0] || '';
my $users = new RADIUS::UserFile
File => 'users.txt',
Check_Items => [ qw(Password Auth-Type) ];
$users->remove($username);
Thanks,
Jewels
When faced with a decision, always ask, 'Which would be the most fun?'
I finished the portion of my code that searches the user file and if the user isn't it in adds a new one. Not to difficult using this module. However, when I get to the remove portion, it doesn't seem to work. Anyone got any experience with this??? Here's my remove code.
#! /usr/local/bin/perl
use FileHandle;
use RADIUS::UserFile;
$| = 1;
my $username = $ARGV[0] || '';
my $users = new RADIUS::UserFile
File => 'users.txt',
Check_Items => [ qw(Password Auth-Type) ];
$users->remove($username);
Thanks,
Jewels
When faced with a decision, always ask, 'Which would be the most fun?'