How to retrieve user information using LDAP

I am using the LDAP to retrieve the user profile. And I can get the username field, email field. But How can I retrieve the user information like phone number from the LDAP?