Hello! I need to change auth_mode to LDAP, but somewhy menu is inactive. I use admin account, ofcause. What can i do to solve my issue?
I am having a similar issue. Looking to change auth mode from built in database to OIDC. I understand that you can only change auth mode when the only user present is Admin. I removed all previously created users, but the Auth_Mode value is still greyed out.
What do I need to do in order to change my auth mode ? Do I need to re-install with a new user-database ?
How did you remove all users? You can clean users created in database and try again.
docker exec -it harbor-db bash
psql -U postgres
\c registry
select * from harbor_user
delete from harbor_user where user_id > 2
Then change the configuration in web console.
Removed all users from web console. Let me check the DB, thanks.
How did you remove all users? You can clean users created in database and try again.
docker exec -it harbor-db bash psql -U postgres \c registry select * from harbor_user delete from harbor_user where user_id = xxxThen change the configuration in web console.
It works! Can you advice, how can i troubleshoot connection string to ldap?
Answer to my own question:
You might removed the anonymous user, try to add it
insert into harbor_user (username, email, password, realname, comment, deleted, sysadmin_flag, creation_time, update_time) values
('anonymous', '[email protected]', '', 'anonymous user', 'anonymous user', true, false, NOW(), NOW());
The anonymous user did the trick, thanks!
Most helpful comment
How did you remove all users? You can clean users created in database and try again.
Then change the configuration in web console.