We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

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

Abdu_Allah
Abdu_Allah asked
on
Medium Priority
1,469 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.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2010
Commented:
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!

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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)?
CERTIFIED EXPERT
Top Expert 2010

Commented:
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.

Author

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?
CERTIFIED EXPERT
Top Expert 2010

Commented:
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.

Author

Commented:
>There's AD and there's AD Applications Mode (ADAM)

I am confused, Isn't ADAM the same as LDAP?!
CERTIFIED EXPERT
Top Expert 2010

Commented:
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.
CERTIFIED EXPERT
Top Expert 2010

Commented:
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.  

Author

Commented:
Duplicate question in a different TA with a different participants.
And I am the owner of this thread so do not .

Author

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

Author

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

Author

Commented:
Do you know what I will open new threads with 500 points ask these branched questions.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.