omribi
asked on
simple vbs ldap query (windows 2003)
Hi,
I try to write simple script that query the active directory for current user office number and show it.
I've create connection object and recordset but i dont know how to build exact query.
Can someone help me to build the query or refer me to guide?
Thanks ahead,
Omri.
I try to write simple script that query the active directory for current user office number and show it.
I've create connection object and recordset but i dont know how to build exact query.
Can someone help me to build the query or refer me to guide?
Thanks ahead,
Omri.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
star_trek - Many Thanks!!
Where i can find the Schema? i need to get the Office Number/Department .. and not the Telephone Number.
Netman - i know how to do it with DSQUERY, but it must be part of other VBS so i need to implement it with VBS.
Thanks.
Where i can find the Schema? i need to get the Office Number/Department .. and not the Telephone Number.
Netman - i know how to do it with DSQUERY, but it must be part of other VBS so i need to implement it with VBS.
Thanks.
so it shld be
dept=ouser.department
office=ouser.physicaldeliv aryofficen ame
To get more info on attributes and what they are called you can check adsiedit.msc which is available from the resource kit
dept=ouser.department
office=ouser.physicaldeliv
To get more info on attributes and what they are called you can check adsiedit.msc which is available from the resource kit
You can use DSQUERY or DSGET to do this.
If you post a bit more details maybe I can assist.