Email verification was added in Sentry Server 8.6, which uses a new table named sentry_useremail to store email addresses for verification rather than using the email address already in the auth_user table. This updates the sentry-ldap-auth plugin so the sentry_useremail table is populated with the value of the LDAP user's mail attribute.
Fixes #11
How to test
With an instance of Sentry Server 8.6 or higher, pip install git+https://github.com/Banno/getsentry-ldap-auth.git@populate-useremail
Log in with an LDAP user's credentials
Query the sentry_useremail table to verify that the e-mail address is populated as expected
Notes
This has been made backward-compatible with Sentry Server versions before 8.6, so no exceptions are thrown due to the lack of the sentry.models.UserEmail model
Summary
Email verification was added in Sentry Server 8.6, which uses a new table named
sentry_useremail
to store email addresses for verification rather than using the email address already in theauth_user
table. This updates the sentry-ldap-auth plugin so thesentry_useremail
table is populated with the value of the LDAP user'smail
attribute.Fixes #11
How to test
pip install git+https://github.com/Banno/getsentry-ldap-auth.git@populate-useremail
sentry_useremail
table to verify that the e-mail address is populated as expectedNotes
sentry.models.UserEmail
model