convos-chat / convos-chat/convos
Login with LDAP fails on first try
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
As described [here](https://github.com/convos-chat/convos/issues/815) I got Convos to work with LLDAP. It seems to work fine, but I noticed that on the very first attempt to login via LDAP on a new account it fails with an incorrect email or password error.
Since the LLDAP log tells me that it is a success regardless, I guess it fails because it has not yet created the user directory and user.json Convos side? On a second try with the same user credentials it works.
**To Reproduce**
Steps to reproduce the behavior:
1. Configure LDAP auth
2. Try to login with new user that only exists in LDAP
3. Error response from Convos, but success response in LDAP logs
4. Try again and it works.
**Expected behavior**
A user should be created Convos side on first try, or at least the error message should say "new user created, try again" or so.
**Environment:**
Convos stable docker image
LLDAP server
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the first-login flow with LDAP authentication and a new user that exists only in LDAP, using the stable Docker image and the LLDAP logs described in the issue. Compare the first and second attempts to locate the provisioning failure. Done means a new LDAP user can log in on the first attempt, or receives a clear retry message if that remains necessary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100