I have solved the problem through defining the "User attribute" mapped field in LDAP. This should be a mandatory field and not an optional as mentioned in Moodle site in the LDAP Authentication Page, since this field is contribute to the username value used to login to Moodle.
Authentication
Login to Moodle using OpenLDAP User
This discussion has been locked so you can no longer reply to it.