Hello Sagar Rana1,
Thank you for posting in Microsoft Community forum.
Here are two similar threads for your references. You can troubleshoot the issue using the possible solution in the two threads.
openldap - ldap_bind: Invalid Credentials (49) - Stack Overflow
authentication - ldapsearch: Invalid credentials - Stack Overflow
If it does not work above, please check if you can do the same search using built-in LDP.exe tool on Domain Controller.
Another threads for your reference.
Unable to bind or log into LDAP using specific credentials - Microsoft Q&A
If ldapsearch is a non-Microsoft tool?
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou