# Connecting to the LDAP using user short names

## Connecting to the LDAP 

The Soffid LDAP accepts the usual way to connect to the LDAP service using the distinguished name and password for the user.

Additionally, one can use the uid attribute to login. Then for the user:

<table border="1" id="bkmrk-dn%3A-cn%3Duser%2Cou%3Dtest%2C" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 99.8765%; border-color: #6983a7;">dn: cn=user,ou=test,dc=soffid,dc=com

cn: user

givenName: John

sn: Snow

uid: jsnow

userPassword: secret

</td></tr></tbody></table>

The user can use one of these two ways to login to the LDAP server:

1. USER: cn=user,ou=test,dc=soffid,dc=com PASSWORD: secret
2. USER: uid=jsnow,dc=soffid,dc=com PASSWORD: secret