When troubleshooting LDAP user login issues, you may want to recreate the user in CF and UAA. You can follow these steps to recreate the user
Elastic Application Runtime
cf unset-org-role <USERNAME> <ORG> <ROLE> --origin ldapcf unset-space-role <USERNAME> <ORG> <SPACE> <ROLE> --origin ldapcf delete-user <USERNAME> --origin ldapuaac user delete <USERNAME> --origin ldapcf login -a api.example.com --origin ldapcf create-user <USERNAME> --origin ldapcf set-org-role <USERNAME> <ORG> <ROLE> --origin ldapcf set-space-role <USERNAME> <ORG> <SPACE> <ROLE> --origin ldap