Our company has a directory of employees where Employee ID and E-mail address are stored. I would like to create a VBA in Excel that will search for a particular person's e-mail address if Employee ID is given.
Our IT department has given me a line of code that is applicable for unix shell script:
ldapsearch -H ldaps://companydomain.net:636 -D “<your system account dn> -w <your system account password” -b “ou=people,o=company” employeeNumber=12345678 companyprimaryemailaddress
Could you please help me to write a similar code for VBA? I have searched a lot of forums and tried different solutions with ADODB.Connection but was not able to succeed. Maybe it is because I was not able to find an example with "ldaps://" instead of "LDAP://"...
Many thanks in advance!