FIX: [Object].GUID Results Differ from [Object].Get("GUID") (215355)
The information in this article applies to:
- Microsoft Active Directory Service Interfaces 2.0
- Microsoft Active Directory Service Interfaces 2.5
This article was previously published under Q215355 SYMPTOMS
When attempting to retrieve a directory object's GUID from an LDAP directory, using [object].GUID produces different results than using [object].Get("GUID").
CAUSE
Because of a bug in the LDAP ADSI Provider that ships with ADSI 2.0, using the syntax [object].GUID returns the GUID for the Class object, whereas using the syntax [object].Get("GUID") returns the actual GUID of the object you are currently bound to.
RESOLUTION
When retrieving an object's GUID, use the Get() method to retrieve the attribute value as in this example:
[object].Get("GUID") STATUSThis bug was corrected in ADSI. REFERENCES
The documentation for Active Directory Services Interfaces can be found on the Microsoft Developer Network (MSDN).
For MSDN versions prior to the October 1998 update, use the following path:
Platform SDK \ Networking and Distributed Services \ Active Directory Services Interfaces version 2.0
For the October 1998 version of MSDN, use the following path:
Platform SDK \ Networking and Distributed Services \ Active Directory
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | kbbug kbfix KB215355 kbAudDeveloper |
---|
|