Unable to login anymore with LDAP #7021
-
I messed up something... I tried to change directly the config into the postgresql database, but I am unable to make it work again... and my commands changed the local auth config too (yes I know...)... how can I reset it to be able to reconfigure correctly the ldap ? Thanks in advance for your help! Here is the current authentication configuration:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hello, try these commands to disable LDAP |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your help @asbayevy !
The thing is that I am still unable to login with my credentials. I get the same error as originally "Invalid email/ username or password".
|
Beta Was this translation helpful? Give feedback.
Try the following script to create a user and add it to groups,
**-- insert/create new user
WITH new_user AS (
INSERT INTO public.users (email, name, password, "isActive", "isVerified", "mustChangePwd", "createdAt", "updatedAt")
VALUES ('[email protected]', 'useriam', '$2a$12$R1byD/SYMOMFA.3CDkC74eD.N3ANTXeOTj6DfjSL4aqpqQsn6dKd6', true, true, true, now(), now())
RETURNING id
),
-- insert useriam in usergroups
admin_group AS (
INSERT INTO "userGroups" (id, "userId", "groupId")
VALUES ('3', '3', 1)
ON CONFLICT (id) DO NOTHING
)
SELECT 'Users created and assigned to administrator group' AS status;**
where VALUES ('3', '3', 1) is id, userid and groupid, 1 is admin group, where '$2a$12$R1byD…