Author Topic: Reset Administrator Password for Dashboard  (Read 25912 times)

JPB

  • Zen Monk
  • **
  • Posts: 77
  • Karma: +1/-1
    • View Profile
Reset Administrator Password for Dashboard
« on: August 27, 2010, 08:40:00 am »
In this morning's Update "aptitude safe-upgrade" updated some ebox/Zentyal components.
I do this daily till Zentyal become released in a few days.

The problem now is that my Dashboard Admin password is NOT accepted, I guess the LDAP was messed up.

How can I fix this and reset the Dashboard password with the command-line?
https://zentyal.domain.tld/LOGIN

Thanx ???

Kamilion

  • Zen Monk
  • **
  • Posts: 82
  • Karma: +2/-0
  • NASA System Administrator
    • View Profile
Re: Reset Administrator Password for Dashboard
« Reply #1 on: August 27, 2010, 11:46:08 am »
Working on it here:
http://forum.ebox-platform.com/index.php?topic=4702.0
Got bit by this too; I'm working on a solution.

New Zentyal RC2 behavior is:

Local accounts on the zentyal machine in the 'admin' group are allowed to log into ebox's UI.
Solution: create a local account and add it to the admin group (creating the admin group first if nonexistant) and use it's shell password to login.

I'm still figuring out how to do the same with *no* local account (LDAP+PAM only) in the above thread.

Using the Zentyal installer will create such a local user in the admin group as part of the install process.

Installing manually from PPA will *not*.
"Never feel stupid for asking questions, feel stupid for ignoring answers."
"You're arrogant for thinking you can, ignorant for thinking you cannot."
"Asking questions is important,
because that's when intuition gets converted into inspiration."

Kamilion

  • Zen Monk
  • **
  • Posts: 82
  • Karma: +2/-0
  • NASA System Administrator
    • View Profile
Re: Reset Administrator Password for Dashboard
« Reply #2 on: August 27, 2010, 10:38:05 pm »
Easy fix. SSH in and add the admin group. (It will do nothing if the group already exists.)

Code: [Select]
addgroup --system admin
Code: [Select]
Adding group `admin' (GID 121) ...
Done.
Code: [Select]
addgroup --system admin
Code: [Select]
addgroup: The group `admin' already exists as a system group. Exiting.
Code: [Select]
adduser kamilion admin
Code: [Select]
Adding user `kamilion' to group `admin' ...
Adding user kamilion to group admin
Done.

In this case, admin is a local group, and kamilion is a zentyal ldap user.

OPTIONALLY, allow sudo access for 'admin' group users:
Code: [Select]
echo "%admin ALL=(ALL) ALL" >> /etc/sudoers
* Cribbed from Ubuntu Forums
« Last Edit: August 27, 2010, 10:46:05 pm by Kamilion »
"Never feel stupid for asking questions, feel stupid for ignoring answers."
"You're arrogant for thinking you can, ignorant for thinking you cannot."
"Asking questions is important,
because that's when intuition gets converted into inspiration."

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Reset Administrator Password for Dashboard
« Reply #3 on: September 01, 2010, 11:19:59 am »
Kudos kamilion for such a detailed howto ;)
My secret is my silence...