Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Different between GetObject("WinNT://" & domain) and GetObject("LDAP://" & domain)

Posted on 2006-03-20
17
Medium Priority
?
1,451 Views
Last Modified: 2008-02-01
hi, I just want to know what is the different  between GetObject("WinNT://" & domain) and GetObject("LDAP://" & domain)?

Thanks.
0
Comment
Question by:Abdu_Allah
  • 8
  • 5
13 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 1000 total points
ID: 16241058
Hi Abdu_Allah,

The difference is which namespace you're connecting with.  The WinNT namespace object returns a relatively limited set of properties and the property names are those used with Windows NT.  The LDAP namespace object returns a richer set of properties, essentially giving you access to everything in AD, and those property names are consistent with what you'd see if you have AD and used ADSIedit.  WinNT seems faster, possibly because it returns a more limited set of information, and it's simpler to get certain pieces of information using it.  LDAP is more comprehensive.

Cheers!
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16241196
Hi BlueDevilFan, thank you it is helpfull but that question now which one should I use to access Active Directory and get its information? this one: GetObject("WinNT://" & domain) or this one: GetObject("LDAP://" & domain)?
0
 
LVL 76

Expert Comment

by:David Lee
ID: 16241802
It depends on what you want to do.  If all you need to get from AD is a name, then you can use either one.  If you need to get a property that WinNT doesn't support, then you'd have to use LDAP.  I use both, but tend to use LDAP more than WinNT.  There's another name space you can use too, GC (for Global Catalog).  It queries the nearest global catalog server.  If you're in a multi-domain environment, then it's quicker to query a GC than to have to go all the way back to a domain controller in a remote domain.  There really is no correct answer to which one to use.  That decision should be based on what information you want from AD and where that information is located.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16242352
<Points raised from 250 to 500>

By the way, Is there different types of AD? if so does GetObject("WinNT://" & domain) works with all of them?
0
 
LVL 76

Expert Comment

by:David Lee
ID: 16242467
There are not different types of AD.  There's AD and there's AD Applications Mode (ADAM), kind of an AD emulation that can be used to bring AD functionality to applications that don't have access to AD.  I've never used ADAM so I cannot answer whether WinNT would work with it.  I suspect it would, but I can't say for sure.  WinNT does work with AD on both Windows 2000 and 2003.
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16245632
>There's AD and there's AD Applications Mode (ADAM)

I am confused, Isn't ADAM the same as LDAP?!
0
 
LVL 76

Expert Comment

by:David Lee
ID: 16245720
AD and, I suspect, ADAM can both be accessed using LDAP, but I don't know what you mean by "isn't ADAM the same as LDAP".  ADAM is a means of including AD functionality in an application that's not in an AD environment.
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16245754
0
 
LVL 76

Expert Comment

by:David Lee
ID: 16246650
Abdu_Allah,

If you're keying on "ADAM is a Lightweight Directory Access Protocol (LDAP)" then I'm not sure what your point is.  I didn't say that ADAM didn't use LDAP, I said it isn't LDAP.  LDAP is a more generic technology.  There are lots of products that are LDAP enabled or use LDAP.  Novell's NDS uses LDAP, but that doesn't mean it is LDAP.  The same applies here.  
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16273825
Duplicate question in a different TA with a different participants.
And I am the owner of this thread so do not .
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16276083
>For attracting more experts you're allowed to use a 20 points pointer question.

I tried that before in other threads but it did not work
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16276095
And I increased the points after the discussion raised many other branched questions which they are different somehow in the two threads...this is why I increased the points. please return them back to 500
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16279512
Do you know what I will open new threads with 500 points ask these branched questions.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question