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

hi, I just want to know what is the different  between GetObject("WinNT://" & domain) and GetObject("LDAP://" & domain)?

Thanks.
LVL 3
Abdu_AllahAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David LeeCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Abdu_AllahAuthor Commented:
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
David LeeCommented:
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
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Abdu_AllahAuthor Commented:
<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
David LeeCommented:
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
Abdu_AllahAuthor Commented:
>There's AD and there's AD Applications Mode (ADAM)

I am confused, Isn't ADAM the same as LDAP?!
0
David LeeCommented:
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
Abdu_AllahAuthor Commented:
0
David LeeCommented:
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
Abdu_AllahAuthor Commented:
Duplicate question in a different TA with a different participants.
And I am the owner of this thread so do not .
0
Abdu_AllahAuthor Commented:
>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
Abdu_AllahAuthor Commented:
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
Abdu_AllahAuthor Commented:
Do you know what I will open new threads with 500 points ask these branched questions.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.