Add two type of identifiers. One for your database model and one for your LDAP model.

Usually the LDAP identifier is the 'username' attribute.
And the Database identifier is the primary key of your table ('id' column by default).

This feature is really useful when you need to add some relations to your User model (E.G. attaching roles).