[racktables-users] Re: Problem with upgrade from 0.19.2 to 0.19.4

  • From: Wawrzyniec Niewodniczański <wawrzek.niewodniczanski@xxxxxxxxxx>
  • To: <racktables-users@xxxxxxxxxxxxx>
  • Date: Thu, 19 May 2011 13:05:41 +0100

On 05/03/11 15:12, Denis Ovsienko wrote:
03.05.2011, 16:26, "Wawrzyniec 
Niewodniczański"<wawrzek.niewodniczanski@xxxxxxxxxx>:
Hi,

I wanted upgrade to the latest version of racktables. I updated code,
connected to website and provide my credential (we use LDAP). I saw the
website asking
"Follow this link and authenticate as administrator to finish the upgrade."
I clicked on the link and was asked authenticate again. The site
presented itself as: "RackTables upgrade at<hostname>". Which user and
password should I use here? LDAP doesn't work.
Administrator's username is "admin" and password is something, that was set at 
the setup time. In case you need to reset the password, the procedure is shown here: 
http://sourceforge.net/apps/mediawiki/racktables/index.php?title=RackTablesAdminGuide#Resetting_administrator_password_.28and_username.29


I forgot that you had sent this link and wrote small php script to make sha1 hash of the 'password'.

#!/usr/bin/php
#
<?php
$str = 'password';

print (sha1($str));
?>
Pasted the results (command as suggested) into database and it didn't work.

Next I looked into code and change (drop user_id=1) upgrade.php (line 1090) to:

$prepared = $dbxlink->prepare ('SELECT COUNT(*) FROM UserAccount WHERE user_name=? AND user_password_hash=?');

and it didn't work (in a bit different way). So I just ensure that the function checking password is return always 1.

We are using LDAP and I think that upgrade is broken for such situation. Logs indicated that racktables is looking for user admin password in LDAP. Is it possible?

Wawrzek

PS.

Two lines from logs:

[Thu May 19 11:24:49 2011] [warn] [client 10.80.2.103] [3080] auth_ldap authenticate: user admin authentication failed; URI / [ldap_simple_bind_s() to check user credentials failed][Invalid credentials], referer: http://racktables19/ [Thu May 19 11:24:49 2011] [error] [client 10.80.2.103] user admin: authentication failure for "/": Password Mismatch, referer: http://racktables19/^C




--
Wawrzyniec (Wawrzek) Niewodniczański - 01223 435603 (35603) - wawrzekn
System Administrator - Engineering Services Team (XenServer)
Citrix Systems, Building 101, Cambridge Science Park, CB4 0FY, Cambridge
PhD in Quantum Chemistry, MSc in Molecular Engineering


Other related posts: