i tried checking the database for 'select * from qa_users;' and deleted the entry of the user ID that was also present due to LDAP.
It solved my problem. Looks like entries that exists before LDAP setup created cause the problem, if the ID is same.