Schema attributes of AD are missing in .NET beta3 using ADSI

Schema attributes of AD are missing in .NET beta3 using ADSI

Post by Ran Silberma » Thu, 16 May 2002 19:21:21



Hi,
We wrote a program that reads list of attributes from the
Active Directory Schema using ADSI. It worked OK in
Windows 2000.

When we tested it on a "Windows.NET Enterprise server:
Evaluation copy. Build 3590.main.011110-1652". we get
errors.

Here is a detailed description of the issue:

In our program, we bind to the schema and read list of
attributes that exist in the schema.
For some reason, several attributes which were accessible
in Windows 2000 are not accessible in the .net server.
An example is the attribute unicodePwd or CN=Unicode-Pwd
When we try to get this attribute we get the
error: "0x80005004L E_ADS_UNKNOWN_OBJECT: An unknown ADSI
object was requested".

When using ADSIEdit snapin, all attributes are displayed,
including unicodePwd.

So we used the utility ADSVW.exe (Active Directory
Browser).
We could reproduce the same error that we got:

When we bind the the schema using the
string: "LDAP://schema" we get all attributes
When we bind to:
LDAP://CN=Schema,CN=Configuration,DC=myDomain,DC=com
we get list of attributes that is not full, and the
unicodePwd attribute is missing.

Can anyone help us understand why the attributes are not
accesssible?

Thank you,
Ran

 
 
 

1. Using .NET DirectoryServices to access an AD Attribute

I am interested in disecting the blob of data that a specialist
application stores in the extensionData attribute in AD ( which
ADSIEdit shows to be an OctetString ).  I have tried using the
following ( cribbed ) code :

Dim root As New DirectoryServices.DirectoryEntry("LDAP://home/cn=Users,dc=home,dc=home,dc=com")
        Dim searcher As New DirectoryServices.DirectorySearcher(root)
        Dim results As SearchResultCollection
        Dim result As SearchResult

        searcher.Filter = "(mailNickname=dave)"
        searcher.PropertiesToLoad.Add("displayName")
        searcher.PropertiesToLoad.Add("telephoneNumber")
        searcher.PropertiesToLoad.Add("extensionData")

        results = searcher.FindAll()

        For Each result In results

            Console.WriteLine(result.Properties("displayName")(0))
            Console.WriteLine(result.Properties("telephoneNumber")(0))
            Console.WriteLine(result.Properties("extensionData")(0))

        Next result

Although the display name and telephone number attributes are written
correctly to the console, the extensionData attribute is written as
"System.Byte[]".  As a complete VB/.NET beginner I don't really
understand what this is telling me.

How should I address, read and manipulate this attribute ?

Thanks

2. Allow access only to registered users?

3. retrieving extended schema attributes using ADSI

4. Specs of encryption algorithms

5. ADSI Schema Attributes

6. CIPT question

7. trying to create a new schema attribute via adsi/asp

8. Performance of .NET

9. MemberOf-Attribute in AD missing

10. How Add Schema Attribute to Schema Class?

11. adsi and what I'am missing

12. Get All the Properties of a Schema Using .Net

13. what's wrong using .net to connect ad?