ispman/lib/ISPMan DBMan.pm,1.7,1.8
Joerg Delker <[email protected]> Wed, 31 Dec 2008 17:25:30 +0000
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv29816/lib/ISPMan
Modified Files:
DBMan.pm
Log Message:
fixed bug with MySQL password generation
Index: DBMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/DBMan.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- DBMan.pm 30 Dec 2008 10:32:56 -0000 1.7
+++ DBMan.pm 31 Dec 2008 17:25:28 -0000 1.8
@@ -202,7 +202,7 @@
my $dn = $self->getDatabaseDN( $dbNew->{'ispmanDBName'}, $domain );
# treat password change
- if ($dbInfo->{'ispmanDBPass'} ne $dbNew->{'ispmanDBPass'} ||
+ if ($dbInfo->{'ispmanDBPass'} ne $dbNew->{'ispmanDBPass'} &&
lc($dbNew->{'ispmanDBType'}) eq "mysql") {
# generate MySQL password hash
my $digest=Digest::SHA1->new->add($dbNew->{'ispmanDBPass'})->digest;
------------------------------------------------------------------------------