Can't access Foreman (Puppet web interface)

Hi,

I am running Foreman alongside Puppet Open Source in a test environment. I
accidently changed the password of the admin user through Foreman and I am
not able to sign in anymore.
I even uninstalled Foreman, Puppet, Puppetmaster and all reinstalled the
packages again but I can still not access it using the default credentials
'admin:changeme'.

So my question is, How can I reset the password of the admin user and where
do I found the stored passwords/users of Foreman. I know it is stored in a
database, probably PostGreSQL, but I have no experience in using databases.
So please tell me the easiest way to access it or just delete the stored
database so I can use the default password again.

Thanks in advance,

Bram

Run "foreman-rake permissions:reset" as root on the Foreman host and it
will reset the admin user's credentials. From there, you can change
other user accounts in Foreman as the admin.

··· On 02/12/13 14:05, Bram Buermans wrote: > Hi, > > I am running Foreman alongside Puppet Open Source in a test environment. > I accidently changed the password of the admin user through Foreman and > I am not able to sign in anymore. > I even uninstalled Foreman, Puppet, Puppetmaster and all reinstalled the > packages again but I can still not access it using the default > credentials 'admin:changeme'. > > So my question is, How can I reset the password of the admin user and > where do I found the stored passwords/users of Foreman. I know it is > stored in a database, probably PostGreSQL, but I have no experience in > using databases. So please tell me the easiest way to access it or just > delete the stored database so I can use the default password again.


Dominic Cleal
Red Hat Engineering

This is what I have been looking for. Thank you very much!

··· On Monday, 2 December 2013 15:09:29 UTC+1, Dominic Cleal wrote: > > On 02/12/13 14:05, Bram Buermans wrote: > > Hi, > > > > I am running Foreman alongside Puppet Open Source in a test environment. > > I accidently changed the password of the admin user through Foreman and > > I am not able to sign in anymore. > > I even uninstalled Foreman, Puppet, Puppetmaster and all reinstalled the > > packages again but I can still not access it using the default > > credentials 'admin:changeme'. > > > > So my question is, How can I reset the password of the admin user and > > where do I found the stored passwords/users of Foreman. I know it is > > stored in a database, probably PostGreSQL, but I have no experience in > > using databases. So please tell me the easiest way to access it or just > > delete the stored database so I can use the default password again. > > Run "foreman-rake permissions:reset" as root on the Foreman host and it > will reset the admin user's credentials. From there, you can change > other user accounts in Foreman as the admin. > > -- > Dominic Cleal > Red Hat Engineering >

Thanks, it's working for me.

··· On Monday, 2 December 2013 06:09:29 UTC-8, Dominic Cleal wrote: > > On 02/12/13 14:05, Bram Buermans wrote: > > Hi, > > > > I am running Foreman alongside Puppet Open Source in a test environment. > > I accidently changed the password of the admin user through Foreman and > > I am not able to sign in anymore. > > I even uninstalled Foreman, Puppet, Puppetmaster and all reinstalled the > > packages again but I can still not access it using the default > > credentials 'admin:changeme'. > > > > So my question is, How can I reset the password of the admin user and > > where do I found the stored passwords/users of Foreman. I know it is > > stored in a database, probably PostGreSQL, but I have no experience in > > using databases. So please tell me the easiest way to access it or just > > delete the stored database so I can use the default password again. > > Run "foreman-rake permissions:reset" as root on the Foreman host and it > will reset the admin user's credentials. From there, you can change > other user accounts in Foreman as the admin. > > -- > Dominic Cleal > Red Hat Engineering >