Skip to content

User asked to input email during first ldap login #1523

Description

@ElvisTheKing

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:

  1. Set auth method to ldap
  2. As new user click on login and enter username and password, proceed to login
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions