ispman/lib/ISPMan ApacheMan.pm,1.44,1.45

[email protected]
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory sc8-pr-cvs1:/tmp/cvs-serv29230/lib/ISPMan

Modified Files:
	ApacheMan.pm 
Log Message:
adding function setVhostAttribute.


Index: ApacheMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/ApacheMan.pm,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- ApacheMan.pm	18 Jan 2004 02:18:04 -0000	1.44
+++ ApacheMan.pm	18 Jan 2004 02:35:38 -0000	1.45
@@ -74,6 +74,7 @@
 changeVhostPassword
 suggestHostForVhost
 getVhostAttribute
+setVhostAttribute 
 );
 $VERSION = '0.01';
 
@@ -606,6 +607,14 @@
    return $self->get_attr_value($entry, $attribute);
 
 }
+
+sub setVhostAttribute {
+	my $self=shift;
+	my ($domain, $vhost, $attribute, @values)=@_;
+	my $value=$self->as_arrayref(@values);
+	my $dn=$self->getVhostDN($domain, $vhost);
+	$self->modifyAttribute($dn, $attribute, $value);
+}
 
 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.