First of all, you need to get the user's DN (Distinguished name) based on a selection criteria. For instance if your user Id (login name) is called "jdoe" and stored in an attribute called "UID", you have to query the LDAP directory based on the selection criteria such as...