# LDAP authentication without email

**URL:** <https://forums.rocket.chat/t/ldap-authentication-without-email/18118>\
**Category:** Community Support\
**Created:** [October 24, 2023, 10:36am UTC](https://forums.rocket.chat/t/ldap-authentication-without-email/18118 "2023-10-24T10:36:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vashvets](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@vashvets](https://forums.rocket.chat/u/vashvets)\
**Post date:** [October 24, 2023, 10:36am UTC](https://forums.rocket.chat/t/ldap-authentication-without-email/18118/1 "2023-10-24T10:36:57Z")

</div>

### Description

Hi everyone!  
I have tis error if I try to login(registration) with LDAP user (MS AD)  
“Exception while invoking method login”,“err”:{“type”:“Error”,“message”:“Failed to get email address from LDAP user”,“stack”:“Error: Failed to get email address from LDAP user  
”  
How can I disable email check for my Active Directory users?  
Bicause we haven`t email attribute for this users.

### Server Setup Information

- Version of Rocket.Chat Server:
- Operating System: Ubuntu 22.04
- Deployment Method: docker
- Proxy: nginx

---

<div class="post-metadata">

**Author:** ![eusib](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@eusib](https://forums.rocket.chat/u/eusib)\
**Post date:** [November 15, 2023, 8:20am UTC](https://forums.rocket.chat/t/ldap-authentication-without-email/18118/2 "2023-11-15T08:20:20Z")

</div>

We have got the same problem.

Some LDAP users could not log in and it took us some time to figure out, that it was the missing email adress.
