# Multiple user attributes with LDAP

**URL:** <https://forum.pydio.com/t/multiple-user-attributes-with-ldap/2008>\
**Category:** Pydio 8\
**Created:** [January 4, 2019, 4:53pm UTC](https://forum.pydio.com/t/multiple-user-attributes-with-ldap/2008 "2019-01-04T16:53:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![psilva](https://avatars.discourse-cdn.com/v4/letter/p/d78d45/32.png) [@psilva](https://forum.pydio.com/u/psilva)\
**Post date:** [January 4, 2019, 4:53pm UTC](https://forum.pydio.com/t/multiple-user-attributes-with-ldap/2008/1 "2019-01-04T16:53:11Z")

</div>

Hello,

I am trying to set up LDAP authentication, and I would like to be able to authenticate with either my email address ou my username.  
Is this possible? How can I achieve this?

Centos 7  
Pydio 8

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [January 7, 2019, 12:05pm UTC](https://forum.pydio.com/t/multiple-user-attributes-with-ldap/2008/2 "2019-01-07T12:05:19Z")

</div>

Hi,

Pydio does not use email nor username directly when it verifies password. Pydio tries to get user’s distinguishedName of user then make the bind with dN and Password.

However you can only use one attribute as “user ID attribute” in Pydio.
