.schema format
attributetype ( $OIDNUMBER NAME '$attribute-name'
DESC '$description-of-attribute'
SUP distinguishedName )
Ainda será necessário definir um objectclass
que may
/ must
use este attributetype
.
(No OpenLDAP distinguishedName
está embutido no esquema do sistema.)
Isso não é na verdade um aliasing, mas sim um tipo de atributo que permite entradas com valores dn.
O exemplo mais comum disso seria groupOfNames
e member
de core.schema
.
attributetype ( 2.5.4.49 NAME 'distinguishedName'
EQUALITY distinguishedNameMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )
attributetype ( 2.5.4.31 NAME 'member'
DESC 'RFC2256: member of a group'
SUP distinguishedName )
objectclass ( 2.5.6.9 NAME 'groupOfNames'
DESC 'RFC2256: a group of names (DNs)'
SUP top STRUCTURAL
MUST ( member $ cn )
MAY ( businessCategory $ seeAlso $ owner $ ou $ o $ description ) )
dn: cn=postmasters,ou=groups,dc=domain,dc=tld
objectClass: groupOfNames
cn: postmasters
member: uid=user1,ou=users,dc=domain,dc=tld
member: uid=user2,ou=users,dc=domain,dc=tld