Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.872.951 Times

HTTPD::GroupAdmin 1.66

  Date Added: February 03, 2010  |  Visits: 737

HTTPD::GroupAdmin

Report Broken Link
Printer Friendly Version


Product Homepage
Download (70 downloads)



HTTPD::GroupAdmin is a Perl module for the management of HTTP server group databases. SYNOPSIS use HTTPD::GroupAdmin (); This software is meant to provide a generic interface that hides the inconsistencies across HTTP server implementations of user and group databases. METHODS new () Heres where we find out whats different about your server. Some examples: @DBM = (DBType => DBM, DB => .htgroup, Server => apache); $group = new HTTPD::GroupAdmin @DBM; This creates an object whose database is a DBM file named .htgroup, in a format that the Apache server understands. @Text = (DBType => Text, DB => .htgroup, Server => ncsa); $group = new HTTPD::GroupAdmin @Text; This creates an object whose database is a plain text file named .htgroup, in a format that the NCSA server understands. Full list of constructor attributes: Note: Attribute names are case-insensitive Name - Group name DBType - The type of database, one of DBM, Text, or SQL (Default is DBM) DB - The database name (Default is .htpasswd for DBM & Text databases) Server - HTTP server name (Default is the generic class, that works with NCSA, Apache and possibly others) Note: run perl t/support.t matrix to see what support is currently availible Path - Relative DB files are resolved to this value (Default is .) Locking - Boolean, Lock Text and DBM files (Default is true) Debug - Boolean, Turn on debug mode Specific to DBM files: DBMF - The DBM file implementation to use (Default is NDBM) Flags - The read, write and create flags. There are four modes: rwc - the default, open for reading, writing and creating. rw - open for reading and writing. r - open for reading only. w - open for writing only. Mode - The file creation mode, defaults to 0644 Specific to DBI: We talk to an SQL server via Tim Bunces DBI interface. For more info see: http://www.hermetica.com/technologia/DBI/ Host - Server hostname Port - Server port User - Database login name Auth - Database login password Driver - Driver for DBI (Default is mSQL) GroupTable - Table with field names below NameField - Field for the name (Default is user) GroupField - Field for the group (Default is group) From here on out, things should look the same for everyone. add($username[,$groupname]) Add user $username to group $groupname, or whatever the Name attribute is set to. Fails if $username exists in the database if($group->add(dougm, www-group)) { print "Welcome!n"; } delete($username[,$groupname]) Delete user $username from group $groupname, or whatever the Name attribute is set to. if($group->delete(dougm)) { print "Hes gone from the groupn"; } exists($groupname, [$username]) True if $groupname is found in the database if($group->exists(web-heads)) { die "oh no!"; } if($group->exists($groupname, $username) { #$username is a member of $groupname } list([$groupname]) Returns a list of group names, or users in a group if $name is present. @groups = $group->list; @users = $group->list(web-heads); user() Short cut for creating an HTTPD::UserAdmin object. All applicable attributes are inherited, but can be overridden. $user = $group->user(); (See HTTPD::UserAdmin) convert(@Attributes) Convert a database. #not yet remove($groupname) Remove group $groupname from the database name($groupname) Change the value of Name attribute. $group->name(bew-ediw-dlrow); debug($boolean) Turn debugging on or off lock([$timeout]) =item unlock() These methods give you control of the locking mechanism. $group = new HTTPD::GroupAdmin (Locking => 0); #turn off auto-locking $group->lock; #lock the objects database $group->add($username,$passwd); #write while database is locked $group->unlock; release the lock db($dbname); Select a different database. $olddb = $group->db($newdb); print "Now were reading and writing $newdb, done with $olddbn"; flags([$flags]) Get or set read, write, create flags. commit Commit changes to disk (for Text files)..

Requirements: No special requirements
Platforms: Linux
Keyword: Database Dbi Dbm Default Group Groupadmin Http Server Httpd Httpdgroupadmin Name Perl Module Server Server Group Username
Users rating: 0/10

License: Freeware Size: 112.64 KB
USER REVIEWS
More Reviews or Write Review


HTTPD::GROUPADMIN RELATED
Libraries  -  HTTP::WebTest::XMLParser 1.00
HTTP::WebTest::XMLParser is a Perl module to parse webscript in XML representation. SYNOPSIS use HTTP::WebTest::XMLParser; my ($tests, $opts) = HTTP::WebTest::XMLParser->parse($xmldata); use HTTP::WebTest; my $wt = new HTTP::WebTest;...
11.26 KB  
Libraries  -  Net::Server::POP3proxy 0.1
Net::Server::POP3proxy is a Perl module with POP3 Proxy class for working with virus scanners and anti-spam software. SYNOPSIS use Net::Server::POP3proxy; # Constructors $popproxy = new Net::Server::POP3proxy( Action => sub { filterAction...
7.17 KB  
Libraries  -  NetPacket::IGMP 0.04
etPacket::IGMP is a Perl module to assemble and disassemble IGMP (Internet Group Mangement Protocol) packets. SYNOPSIS use NetPacket::IGMP; $igmp_obj = NetPacket::IGMP->decode($raw_pkt); $igmp_pkt = NetPacket::IGMP->encode(params...); # Not...
11.26 KB  
Libraries  -  HTTP::Browscap 0.02
HTTP::Browscap is a Perl module that can parse and search browscap.ini files. SYNOPSIS use HTTP::Browscap; my $capable = browscap(); if( $capable->{wap} ) { output_WAP(); } if( $capable->{css} > 1 ) { # Browser can handle CSS2 } #...
9.22 KB  
Libraries  -  Net::GPSD 0.35
Net::GPSD is a Perl module that provides an object client interface to the gpsd server daemon. SYNOPSIS use Net::GPSD; $obj=Net::GPSD->new; my $point=$obj->get; print $point->latlon. "n"; or use Net::GPSD; $obj=Net::GPSD->new;...
15.36 KB  
Libraries  -  CGI::Builder::Auth::GroupAdmin 0.06
CGI::Builder::Auth::GroupAdmin is a Perl module for the management of HTTP server group databases. SYNOPSIS use CGI::Builder::Auth::GroupAdmin (); Pay no attention to that man behind the curtain! Move along, nothing to see here! This...
51.2 KB  
Libraries  -  CGI::Builder::Auth::UserAdmin 0.06
CGI::Builder::Auth::UserAdmin is a Perl module for the management of HTTP server user databases. SYNOPSIS use CGI::Builder::Auth::UserAdmin (); Pay no attention to that man behind the curtain! Move along, nothing to see here! This module...
51.2 KB  
Libraries  -  DBI::FAQ 1.52
DBI::FAQ is a Perl module for the Frequently Asked Questions of the Perl5 Database Interface. What is DBI, DBperl, Oraperl and *perl? To quote Tim Bunce, the architect and author of DBI: ``DBI is a database access Application Programming...
409.6 KB  
Libraries  -  OpenInteract2::Datasource::DBI 1.99_06
OpenInteract2::Datasource::DBI is a Perl module that can create DBI database handles. SYNOPSIS # Define the parameters for a database handle main using PostgreSQL [datasource main] type = DBI dbi_type = Pg dsn = dbname=urkelweb username...
931.84 KB  
Libraries  -  Thesaurus::DBI 0.01
Thesaurus::DBI is a Perl module that can store and query synonyms (Thesaurus) in an SQL database. SYNOPSIS use Thesaurus::DBI; # create new database connection my $th = new Thesaurus::DBI(dbhost=> localhost,...
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB