Ldap configuration without web admin access


I have gogs configured to authenticate users against an active directory (and thats the only authentication method I have).
The AD is broken, I can´t restore it in any way. So, I coudn’t get into gogs admininstrator.
So I need to change ldap configuration in other way … do you know if I could configure this in the database?
Thanks a lot.



If you just want to login a user as admin, simply set is_admin in user table for the user you want.