Problem in retrieving computer information in the active directory
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi Friends, I am working in vb2005. I have been struck up in my work while retrieving the computer information in a active directory . :( This is the code I am using,
dim np as object np = GetObject("LDAP:") dim user as object user = np.OpenDSObject( LDAPPath , vbNullString, vbNullString, ActiveDs.__MIDL___MIDL_itf_ads_0000_0018.ADS_SECURE_AUTHENTICATION)
This code is working well while retrieving person data ,but when it comes to computer it is throwing the following message . The specified directory service attribute or value does not exist. (Exception from HRESULT: 0x8007200A) The LDAPPath that had passed is correct one.But still getting the error. Please help me out to solve this problem.Thanks in advance . Regards, Chaitanya