Forum

[SOLVED] Admin acco...
 
Notifications
Retirer tout

[SOLVED] Admin account blocked, now what....?

6 Posts
3 Utilisateurs
0 Reactions
5,242 Vu
 ANCM
(@ancm)
Posts: 16
Eminent Member
Début du sujet
 
[#4695]

Hi,

What to do when the (only) admin account is blocked and you cannot log on? 😉

Any suggestions appreciated.

Regards,

Mike


 
Posté : 12/10/2017 11:43 pm
Dale Scott
(@dale)
Posts: 12
Active Member
 

Do you know why the admin user is "blocked", or what action caused the admin user to be blocked?

If it's a password problem, you should be able to use the "Forgot Password" link on the login page (assuming you have email working). The UI doesn't support making the logged-in user "inactive", but if this is what happened somehow you can connect directly to the database (using e.g. mysql cli, phpmyadmin, adminer, etc.) and edit/change the status to "1".

If it's a password problem but you don't have email working, connect directly to the database and change the password hash to something known. E.g. for password "secret", use "5ebe2294ecd0e0f08eab7690d2a6ee69".

Good luck,
Dale


 
Posté : 13/10/2017 1:10 am
(@babynus)
Posts: 14952
Membre Admin
 

Update database, table resource, for line of corresponding user (defaut admin is first one)
Set locked=0
If you loose password
set password='newpassword', crypto=null


 
Posté : 13/10/2017 10:24 pm
 ANCM
(@ancm)
Posts: 16
Eminent Member
Début du sujet
 

Hi,

As of 6.52 I receive the message:

ERROR 1054 (42S22): Unknown column 'isLdpa' in 'field list'

Any suggestion?

Regs.

Mike


 
Posté : 15/01/2018 11:53 am
 ANCM
(@ancm)
Posts: 16
Eminent Member
Début du sujet
 

Hi,

As of 6.52 I receive the message:

ERROR 1054 (42S22): Unknown column 'isLdpa' in 'field list'

Any suggestion?

Regs.

Mike

I used:

UPDATE resource SET password='newPassword', crypto=NULL, isLdpa=0 WHERE id=1;


 
Posté : 15/01/2018 11:53 am
(@babynus)
Posts: 14952
Membre Admin
 

field is "isLdap", not "isLdpa"

UPDATE resource SET password='newPassword', crypto=NULL, isLdap=0 WHERE id=1;

 
Posté : 15/01/2018 3:25 pm
Share:
Retour en haut