[opensuse-buildservice] How to change password?
Hi, I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Wed, Jun 18, Matwey V. Kornilov wrote:
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
If you find an answer, please let me know... -- With best regards, Carsten Hoeger
Carsten Hoeger írta:
On Wed, Jun 18, Matwey V. Kornilov wrote:
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
If you find an answer, please let me know...
Go to the 'api' http interface with your web browser, log in, and a menu will appear on the screen. It's easy to find there. If you installed everything on one machine, it is default to '127.0.42.2', or the name/IP where you connect with osc. Bye, CzP --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, Jun 20, Peter Czanik wrote:
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
If you find an answer, please let me know...
Go to the 'api' http interface with your web browser, log in, and a menu will appear on the screen. It's easy to find there. If you installed everything on one machine, it is default to '127.0.42.2', or the name/IP where you connect with osc.
There is a user management, yes, but you cannot change the password there. E.g.: http://myapi.example.com/active_rbac/user/edit/1 you can edit Login Email Password hash type State Role But not the password itself. -- With best regards, Carsten Hoeger
Carsten Hoeger wrote:
Go to the 'api' http interface with your web browser, log in, and a menu will appear on the screen. It's easy to find there. If you installed everything on one machine, it is default to '127.0.42.2', or the name/IP where you connect with osc.
There is a user management, yes, but you cannot change the password there.
E.g.: http://myapi.example.com/active_rbac/user/edit/1
you can edit
Login Email Password hash type State Role
But not the password itself.
I can't even delete a user, simply nothing happens if I push delete and confirm. Regards, Reik --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
I can't even delete a user, simply nothing happens if I push delete and confirm.
There are already two reports in bugzilla about the password. I can't delete a user too. I think It should be reported. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, a while ago I tracked down this problem. I found out that: - the underlying database record in MySQL is locked, so it cannot be changed The Bug ID is: 235853, and there was some dicussion here. Adrian: was that intional to lock the DB entries? So one cannot even edit this by Hand in the DB. Martin Matwey V. Kornilov wrote:
I can't even delete a user, simply nothing happens if I push delete and confirm.
There are already two reports in bugzilla about the password. I can't delete a user too. I think It should be reported.
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, and it looks like there is also another bugreport, ID: 392057. Which is in consequence a duplicate of the other, 235853. Martin Martin Mohring wrote:
Hi,
a while ago I tracked down this problem. I found out that: - the underlying database record in MySQL is locked, so it cannot be changed The Bug ID is: 235853, and there was some dicussion here.
Adrian: was that intional to lock the DB entries? So one cannot even edit this by Hand in the DB.
Martin
Matwey V. Kornilov wrote:
I can't even delete a user, simply nothing happens if I push delete and confirm.
There are already two reports in bugzilla about the password. I can't delete a user too. I think It should be reported.
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Friday 20 June 2008 12:54:00 Martin Mohring wrote:
Hi,
a while ago I tracked down this problem. I found out that: - the underlying database record in MySQL is locked, so it cannot be changed The Bug ID is: 235853, and there was some dicussion here.
Adrian: was that intional to lock the DB entries? So one cannot even edit this by Hand in the DB.
I do not know, Andreas is the expert here. He is back on tuesday. bye adrian
Martin
Matwey V. Kornilov wrote:
I can't even delete a user, simply nothing happens if I push delete and confirm.
There are already two reports in bugzilla about the password. I can't delete a user too. I think It should be reported.
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Adrian Schröter schrieb:
On Friday 20 June 2008 12:54:00 Martin Mohring wrote:
Hi,
a while ago I tracked down this problem. I found out that: - the underlying database record in MySQL is locked, so it cannot be changed The Bug ID is: 235853, and there was some dicussion here.
Adrian: was that intional to lock the DB entries? So one cannot even edit this by Hand in the DB.
I do not know, Andreas is the expert here. He is back on tuesday.
What do you mean by 'the underlying database record is locked'? What kind of lock? Who can't change it? I'm pretty sure the buildservice doesn't lock any database tables apart from transaction locks. Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Friday 20 June 2008 09:22:27 Carsten Hoeger wrote:
On Wed, Jun 18, Matwey V. Kornilov wrote:
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
If you find an answer, please let me know...
You can not simply edit the user password via the api ? http://172.0.42.2 by default. -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-06-18 22:59:18 +0400, Matwey V. Kornilov wrote:
Hi,
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
Here's a small workaround for password problem (but I'm not sure if this is the right fix for this bug). This patch also fixes the user deletion bug. Marcus
On Friday 20 June 2008 13:10:52 Marcus Hüwe wrote:
On 2008-06-18 22:59:18 +0400, Matwey V. Kornilov wrote:
Hi,
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
Here's a small workaround for password problem (but I'm not sure if this is the right fix for this bug). This patch also fixes the user deletion bug.
Hm, that needs to get reviewed by Andreas. Please add it to a bugreport for him. (He will be back on tuesday). thanks adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-06-20 13:24:28 +0200, Adrian Schröter wrote:
On Friday 20 June 2008 13:10:52 Marcus Hüwe wrote:
On 2008-06-18 22:59:18 +0400, Matwey V. Kornilov wrote:
Hi,
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
Here's a small workaround for password problem (but I'm not sure if this is the right fix for this bug). This patch also fixes the user deletion bug.
Hm, that needs to get reviewed by Andreas. Please add it to a bugreport for him. (He will be back on tuesday).
Done. I attached the patch to bug #392057 Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Marcus Hüwe wrote:
On 2008-06-20 13:24:28 +0200, Adrian Schröter wrote:
On Friday 20 June 2008 13:10:52 Marcus Hüwe wrote:
On 2008-06-18 22:59:18 +0400, Matwey V. Kornilov wrote:
Hi,
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
Here's a small workaround for password problem (but I'm not sure if this is the right fix for this bug). This patch also fixes the user deletion bug.
Hm, that needs to get reviewed by Andreas. Please add it to a bugreport for him. (He will be back on tuesday).
Done. I attached the patch to bug #392057
Tested it with OBS 1.0 rc1 from openSUSE:Tools:Unstable and with svn trunc -r 3240 snapshot. Wrote a comment in the bugreport accordingly. Works fine, tnx for the fast reply darix. Martin --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-06-20 14:28:41 +0200, Martin Mohring wrote:
Works fine, tnx for the fast reply darix.
s/darix/}-tux-{/ -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Marcus Hüwe wrote:
On 2008-06-20 13:24:28 +0200, Adrian Schröter wrote:
On Friday 20 June 2008 13:10:52 Marcus Hüwe wrote:
On 2008-06-18 22:59:18 +0400, Matwey V. Kornilov wrote:
Hi,
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
Here's a small workaround for password problem (but I'm not sure if this is the right fix for this bug). This patch also fixes the user deletion bug.
Hm, that needs to get reviewed by Andreas. Please add it to a bugreport for him. (He will be back on tuesday).
Done. I attached the patch to bug #392057
Marked now also bug 235853 as a dublicate of 392057. Martin --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Marcus Hüwe schrieb:
On 2008-06-18 22:59:18 +0400, Matwey V. Kornilov wrote:
Hi,
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
Here's a small workaround for password problem (but I'm not sure if this is the right fix for this bug). This patch also fixes the user deletion bug.
Thanks for the patch (even if it is rejected :) The issues with it:
+ def initialize + @ichain_mode = ichain_mode + end
You should call super inside constructors of overrided classes. In this case it's working because ActionController::Base doesn't implement initialize, but this is a source of very strange future errors should the Rails Core people decide to implement it. Also I'd rather use @auth_method instead of @ichain_mode as the latter might become a bit hard to handle when there are more than two choices of authentication systems. The delete fix is incomplete. User references in package/project metadata are not removed, so every deletion leaves the DB in an inconsistent state. I'm also not sure if a deletion shouldn't be modeled via the 'deleted' state instead of a real deletion from the database. Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-06-25 17:40:45 +0200, Andreas Bauer wrote:
Marcus Hüwe schrieb:
On 2008-06-18 22:59:18 +0400, Matwey V. Kornilov wrote:
Hi,
I've installed obs 0.9.99 on my own server. How to change password for default admin account? There is the page change_password.rhtml in frontend, but I failed to open it.
Here's a small workaround for password problem (but I'm not sure if this is the right fix for this bug). This patch also fixes the user deletion bug.
Thanks for the patch (even if it is rejected :)
The issues with it:
+ def initialize + @ichain_mode = ichain_mode + end
You should call super inside constructors of overrided classes. In this case it's working because ActionController::Base doesn't implement initialize, but this is a source of very strange future errors should the Rails Core people decide to implement it.
Hmm yes you're right - I looked at the Base class and couldn't find an initialize method so I simply ignored a call to super.
Also I'd rather use @auth_method instead of @ichain_mode as the latter might become a bit hard to handle when there are more than two choices of authentication systems.
The delete fix is incomplete. User references in package/project metadata are not removed, so every deletion leaves the DB in an inconsistent state. I'm also not sure if a deletion shouldn't be modeled via the 'deleted' state instead of a real deletion from the database.
Oops. Indeed the destroy() method simply removes the user without taking care about the metadata and other package/project relationships. In the future I will look more deeply at possible impacts before sending a patch:) Thanks a lot for your input! Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (9)
-
Adrian Schröter
-
Andreas Bauer
-
Carsten Hoeger
-
Marcus Hüwe
-
Marcus Rueckert
-
Martin Mohring
-
Matwey V. Kornilov
-
Peter Czanik
-
Reik Keutterling