list of al the possible attributes of the class user in the schema

list of al the possible attributes of the class user in the schema

Post by Claerhout Ber » Wed, 13 Feb 2002 07:14:29


I'm looking for a way to query all the possible user-class attributes in the
schema. I want to become a list that is a bit look-a-like on 'the active
directory scheme mmc plugin'

is there any adsi script available for doing this? you can ask all the
possible attributes from the schema by following code, but you can't query
the description with this.

Dim obj
Set obj = GetObject("LDAP://CN=administrator,DC=sesamstraat,DC=be")
Set cls = GetObject(obj.Schema)

' Inspecting mandatory and optional properties.
msgbox  "Must-have:"
For Each p In cls.MandatoryProperties
    msgbox  p
msgbox "May-have:'
For Each p In cls.OptionalProperties
    msgbox p

thanks in advance,

bert claerhout


list of al the possible attributes of the class user in the schema

Post by Max L. Vaug » Thu, 14 Feb 2002 00:54:13

Your question does not make a great deal of sense.  You are binding to the Schema object and retrieving all of the attributes that can be part of a user object
i.e., looking at the Mandatory and Optional attribute collections.

What is your specific question?

Max Vaughn [MS]
Microsoft Developer Support

Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use.


1. How Add Schema Attribute to Schema Class?

How Add Schema Attribute to Schema Class?
What is the Problem follow code?  this was not able to add a schema
attribute ....

IADsClass *padsClass = NULL;
HRESULT hr = ADsGetObject(L"LDAP://schema/user",

hr = padsClass->put_OptionalProperties(_variant_t(
L"ncstRankGroupPath1" ) );
of course,  "ncstRankGroupPath1" is a new Schema Attribute before time.

please help me.....

2. Using IsPostBack or something else?

3. How to List all Class and Attribute OID's

4. FreePDF (onely German Version)

5. list of possible classes in SharePoint


7. Attribute permissions for User class

8. Paint programs for 64

9. Custom Object Class and User attribute

10. Changing User class attributes

11. accessing new attributes in user schema

12. How to add auxiliary class to structural class (user) using ldf script ?

13. Accessing OU attributes and User attributes