From: hickert Date: Fri, 26 Jun 2009 06:58:07 +0000 (+0000) Subject: Updated password encryption method for gosa.conf X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e39dc9361cceb93717f69d5db736eaf594dde9db;p=gosa.git Updated password encryption method for gosa.conf -The attribute 'password' was renamed to 'adminPassword' -> The passwords wern't encrypted. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13797 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/bin/gosa-encrypt-passwords b/gosa-core/bin/gosa-encrypt-passwords index 67365e247..05568bdb8 100755 --- a/gosa-core/bin/gosa-encrypt-passwords +++ b/gosa-core/bin/gosa-encrypt-passwords @@ -66,7 +66,9 @@ $conf->encoding = 'UTF-8'; $referrals= $conf->getElementsByTagName("referral"); echo "* encrypting existent passwords with master key\n"; foreach($referrals as $referral){ - $pw= $referral->attributes->getNamedItem("password"); + $user = $referral->attributes->getNamedItem("adminDn"); + echo "* encrypting password for: ".$user->nodeValue."\n"; + $pw= $referral->attributes->getNamedItem("adminPassword"); $pw->nodeValue= cred_encrypt($pw->nodeValue, $master_key); }