Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

winnt vs ldap using adsi

Status
Not open for further replies.

shu745

Programmer
May 14, 2001
79
US
All,

What's the main difference between using WinNT provider and LDAP provider? For some reason I can't get LDAP to work, so I'm trying to use WinNT. Will this give me access to the same fields? I need to retrieve user information like name, dept, phone, email, etc. Will using WinNT provider allow me to do this?

Thanks so much in advance!
 
The different between the providers is that WinNT can connect to WinNT and AD.

LDAP can only connect to AD.


WinNT will connect to AD but can only see limited information. Your better off using LDAP.

Maybe try this in your script:

Set oDomain=GetObject("LDAP://" & oDSE.Get("DefaultNamingContext"))

It doesn't require that you enter the proper naming context...which is probably the issue you are having..

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please check out (Sales@njcomputernetworks.com)
 
Will using the GET methods allow me to filter and sort (as opposed to directly querying the source using SQL)? Also, how do I get the oDSE object? (Sorry, I'm new to this whole thing)
 
Hello shu745,

The oDSE stands for root directory service entry:
set oDSE = getobject("LDAP://RootDSE")

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top