-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashing when encountering users without an email address #100
Comments
@Rufmord To be clear, these users have the email field present, but it is blank, correct? I’ve already got an integration test for missing fields but not an empty field. Actually, thinking more about this, since this is really failing on the Vaultwarden side we’re not going to be able to validate every address (some invalid but non-blank). Perhaps logging all failed Vaultwarden calls and not crashing is the best course of action. |
Correct, here is an example:
|
I do not have the logs of vaultwarden any more, but the error was 500 on /admin/invite. Vaultwarden should also return an error message that the mail is empty. |
I'm going to close this because I haven't heard anything since. |
Yeah, I used |
Additional information for someone who tries to achieve the same as I.
The invite of the users can fail with the following message:
This is caused because authentik has users for the outposts as service accounts. Those are sent if a search query from vaultwarden_ldap is done. This service users hve an empty mail field. So the vaultwarden_ldap fails to send new invites, because the mail is empty. I fixed this by editing the
search_filter
to check for empt mails:ldap_search_filter = "(&(objectClass=user)(mail=*@*))"
.This works now.
@ViViDboarder To prevent this error and crash of the whole program, could you add a check if the mail is empty in the function
invite_from_ldap
to simply go further and log it.Originally posted by @Rufmord in #99 (comment)
The text was updated successfully, but these errors were encountered: