Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory sc8-pr-cvs1:/tmp/cvs-serv24621/lib/ISPMan
Modified Files:
ApacheMan.pm
Log Message:
Adding script to get Vhost Attributes.
Adding function to the library.
At the moment, these scripts are for developers/experts(those who dont develop but follow the cvs commits and developer's list closely) only
There will be a ispman.setVhostAttribute script which will serve experts to add/modify certain attributes from the records
Index: ApacheMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/ApacheMan.pm,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- ApacheMan.pm 17 Jan 2004 17:05:27 -0000 1.43
+++ ApacheMan.pm 18 Jan 2004 02:18:04 -0000 1.44
@@ -73,6 +73,7 @@
addVirtualHostDirectoriesProcess
changeVhostPassword
suggestHostForVhost
+getVhostAttribute
);
$VERSION = '0.01';
@@ -591,6 +592,20 @@
}
+
+
+sub getVhostAttribute {
+ my $self=shift;
+ my ($domain, $vhost, $attribute)=@_;
+ my $dn=$self->getVhostDN($domain, $vhost);
+ return unless $self->entryExists($dn);
+
+
+ my $entry=$self->getEntry($dn, 'objectclass=*', $attribute);
+
+ return $self->get_attr_value($entry, $attribute);
+
+}
1;
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.