HTTPD::RealmManager

HTTPD::RealmManager is a Perl module to manage HTTPD server security realms.
Download

HTTPD::RealmManager Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Lincoln Stein
  • Publisher web site:
  • http://search.cpan.org/~lds/Crypt-CBC-2.29/CBC.pm

HTTPD::RealmManager Tags


HTTPD::RealmManager Description

HTTPD::RealmManager is a Perl module to manage HTTPD server security realms. HTTPD::RealmManager is a Perl module to manage HTTPD server security realms.SYNOPSIS use HTTPD::RealmManager; # open up the database (could also use HTTPD::Realm::connect()) $database = HTTPD::RealmManager->open(-config_file=>'/home/httpd/conf/realms.conf', -realm=>'members', -writable=>1); # List functions @users = $database->users(); @groups = $database->groups(); # Information about users and groups: print "Lincoln's groups are @groupn" if @group = $database->group(-user=>'lincoln'); print "Lincoln is a subscribern" if $database->match_group(-user=>'lincoln',-group=>'subscribers'); print "Lincoln's password is $passn" if $pass = $database->passwd(-user=>'lincoln'); print "Intruder alert.n" unless $database->match_passwd(-user=>'lincoln', -password=>'xyzzy'); $lincoln_info = $database->get_fields(-user=>'lincoln'); print "Lincoln's full name is $lincoln_info->{Name}n"; print "The subscribers are @members.n" if @members = $database->members(-group=>'subscribers'); # Database updates print "Added Fred.n" if $database->set_passwd(-user=>'fred', -password=>'sssh!', -fields=>{Name=>'Fred Smith', Nationality=>'French'}); print "Assigned Fred to 'subscribers' and 'VIPs'n" if $database->set_group(-user=>'fred', -group=>); print "Changed Fred's nationality.n" if $database->set_fields(-user=>'fred', -fields=>{Nationality=>'German'}); print "Fred is now gone.n" if $database->delete_user(-user=>'fred'); print "VIP group is now gone.n" if $database->delete_group(-group=>'VIPs'); print "Uh oh. An error occurred: ",$database->errstr,"n" if $database->errstr; Requirements: · Perl


HTTPD::RealmManager Related Software