Content
LDAP Authentication settings/Reactivating default admin account
Started May 5, 2022 15:47 · 1 reply · 1 participant
How can I edit LDAP Authentication settings from the cli? Our LDAP server was recently moved and I can no longer sign in to OpenProject to update the configuration.
I had to reactivate the OpenProject Administrator account with the following commands:
sudo openproject run rails console
admin = User.where(firstname: "OpenProject").first
admin.password = admin.password_confirmation = "<a password>"
admin.Save(validate:false)
Source: stack overflow