[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Atrribute Types/ ObjectClass
At 03:52 PM 9/16/00 +0800, Ravi Mittal wrote:
>Can any1 pls. tell me that how do I come to know what all object classes allow which attributes in an entry and how all attribute types define the format of the value that attribute shall have.
You can read the subschema subentry referred to by the entry's subsubschemaSubentry
attribute value. This subschema subentry contains a number of operational values
listing supported object classes, attributes types, and other schema elements.
The format of the values is per the syntax listed in the attribute type description.
ldapsearch -LLL -b "cn=foo,dc=example,dc=com" -s base subschemaSubentry
This should return something like:
dn: cn=foo, dc=example, dc=com
subschemaSubentry: cn=Subschema
Then you can obtain the object classes and attribute types by doing:
ldapsearch -LLL -b "cn=Subschema" -s base '(objectclass=subschema)' \
objectClasses attributeTypes ldapSyntaxes
Note: these attributes often contain MANY values.
If you want to know more about the values returned and what they mean, see
RFC 2252 and X.501(93) (or a good book on the subject, see FAQ for a list
of X.500/LDAP books, websites, and other resources).
As far as the specifications for the listed syntaxes, most are described in
RFC 2252 or other RFCs.