Skip to content

Commit

Permalink
fix(ldap-discovery): use mail domain for user auth
Browse files Browse the repository at this point in the history
Like it in NS7, the user should use the mail domain for authentication.
Example:

- mail domain: nethserver.org
- user domain associated to mail server: ad.nethserver.org

The user should be able to authenticate using user@nethserver.org
  • Loading branch information
gsanchietti committed Dec 4, 2024
1 parent a5465e7 commit 2aa5c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/bin/discover-ldap
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ user_domain = agent.ldapproxy.Ldapproxy().get_domain(user_domain_name) or {
'bind_password': 'invalid',
}

domain_setup(user_domain_name, user_domain)
domain_setup(os.getenv("MAIL_DOMAIN"), user_domain)

if user_domain_name and user_domain['bind_password'] != 'invalid':
agent.bind_user_domains([user_domain_name])

0 comments on commit 2aa5c07

Please sign in to comment.