Describe the bug
User asked to input email during the first login even if there is email in AD record and LDAP_EMAIL_ATTRIBUTE is set correctly.
We are using AD and email is stored in userPrincipalName field.
One thing that can cause the problem is that our email domain is orgname.global , not all email parsers work with this kind of tld. Unfortunately I have no control over AD and can't test with another tld.
Email Confirmation in settings is set to false. No domain restrictions set.
ldap related part of .env:
LDAP_BASE_DN=dc=orgname,dc=global
LDAP_DN=CN=gitlab,CN=Users,DC=orgname,DC=global
LDAP_USER_FILTER=(|(sAMAccountName=${user})(userPrincipalName=${user}))
LDAP_VERSION=false
LDAP_EMAIL_ATTRIBUTE=userPrincipalName
LDAP_DISPLAY_NAME_ATTRIBUTE=cn
Steps To Reproduce
Steps to reproduce the behavior:
- Set auth method to ldap
- As new user click on login and enter username and password, proceed to login
- See page, that asks you to enter email, to be associated with account
Expected behavior
bookstack should log user and set email from LDAP_EMAIL_ATTRIBUTE field
Your Configuration (please complete the following information):
- Exact BookStack Version (Found in settings): v0.26.2
- PHP Version: 7.2.19
- Hosting Method (Nginx/Apache/Docker): Apache
Additional context
Installation using install script on fresh ubuntu 18.04
Describe the bug
User asked to input email during the first login even if there is email in AD record and LDAP_EMAIL_ATTRIBUTE is set correctly.
We are using AD and email is stored in
userPrincipalNamefield.One thing that can cause the problem is that our email domain is orgname.global , not all email parsers work with this kind of tld. Unfortunately I have no control over AD and can't test with another tld.
Email Confirmation in settings is set to false. No domain restrictions set.
ldap related part of .env:
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
bookstack should log user and set email from LDAP_EMAIL_ATTRIBUTE field
Your Configuration (please complete the following information):
Additional context
Installation using install script on fresh ubuntu 18.04