Active Directory property "DefaultNamingContext" giving error - TechRepublic
Question
December 10, 2009 at 04:40 PM
saimalakhan

Active Directory property “DefaultNamingContext” giving error

by saimalakhan . Updated 16 years, 7 months ago

I have written a very simple code in VBA which is creating an Active Directory Account by picking the information from the Excel worksheet. The actual code is as follows:

Set rootDSE = GetObject(“LDAP://Great”)

DomainContainer = “LDAP://” & rootDSE.Get(“defaultNamingContext”)

It’s giving me an error at the second line and the error is “The directory property cannot be found in the cache”. The account I am logged in as in the development machine is a member of the domain admins.

Any one has any idea what might be the problem?

much appreciated.

This discussion is locked

All Comments