I have a classic ASP page that I use as a phonebook which queries against Active Directory.
I would like to add another function where it can also query Active Directory for contacts. I have over 100 fax machines that I want users to be able to look up. Our Active Directory Admin create a Contact for each one, and in the last name field called it FAX.
Here is the Query String I'm using to return users in AD and it works fine.
objCom.CommandText ="select name,telephonenumber,mobile,facsimileTelephoneNumber,pager,mail,l,physicalDeliveryOfficeName,company,title,department,sAMAccountName,sn,userAccountControl,msexchhidefromaddresslists FROM 'GC://"+objADsPath+"' where name = '*" & usrname & "*' ORDER BY name "'"
I'm assuming a new query string for Contacts should be just as simple but I can not find any reference material to know what object names to be using.