What is 'attribute'?
1. An 'attribute' is the basic piece of data. One or more attributes are packag
ed into units before
it can be used in Entries. This packaging unit is called 'objectclass'. The obje
ctclass provides
us with information on where and when to use attributes.
An object's (e.g. Person) Entry in an Address Directory is comprised of attribu
tes, like,
a. cn (common name)
b. sn (surname name)
c. uid (user identification)
d. userPassword(user password)
e. mail(mail address)
f. ou(organizational unit)
g. teleponenumber
h. carlicense
i. dc
j. etc.
2. When used in Entries there are two forms for using attribute. The first form
is 'attribute=value' used
when it is part of a DN, and the other form is 'attribute: value' when it is u
sed elsewhere in an
Entry. For example,
dn: dc=example,dc=com,dc=au
dc: example,
objectClass: dcObject
objectClass: organization
o: example
description: The Example Company used in this tutorial.
3. Attribute and objectClass are physically contained in schema file. Schema fi
le is simply a physical
container used to hold the definitions of attributes and objectclasses. Apart fr
om it, schema files have no
functional value in OpenLDAP. There are a number of schema files that come with
each OpenLDAP
installation like:
a.
b.
c.
d.
core.schema
cosine.schema
inetorgperson.schema
misc.schema