Example LDAP entries

These examples use EXAMPLE.org (dc=EXAMPLE,dc=org) as Base DN.

Internal Vertex Nodes (Non-leaf nodes)

These examples are for nodes that exist only to host a subtree (i.e. they have no data of their own).

organizationalUnit (OU)

 # auth, EXAMPLE, org
 dn: ou=auth,dc=EXAMPLE,dc=org
 objectClass: top
 objectClass: organizationalUnit
 ou: node

or, if you need the associated domain (as with LDAPMigrationTools)

 # auth, EXAMPLE, org
 dn: ou=auth,dc=EXAMPLE,dc=org
 objectClass: top
 objectClass: organizationalUnit
 objectClass: domainRelatedObject
 ou: auth
 associatedDomain: EXAMPLE.org

dcObject (dc)

 # auth, EXAMPLE, org
 dn: dc=dns,dc=EXAMPLE,dc=org
 objectClass: top
 objectClass: dcObject
 dc: dns

or, if you need the associated domain (as with LDAPMigrationTools)

 # dns, EXAMPLE, org
 dn: dc=dns,dc=EXAMPLE,dc=org
 objectClass: top
 objectClass: dcObject
 objectClass: domainRelatedObject
 associatedDomain: EXAMPLE.org
 dc: dns

Aliases

Storing /etc/aliases in LDAP

 dn: cn=postmaster,ou=Aliases,dc=EXAMPLE,dc=org
 cn: postmaster
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root

or using distinct subtrees (for example using ou=nss,dc=EXAMPLE,dc=org as the subtree:

 dn: cn=mailer-daemon,ou=Aliases,ou=nss,dc=EXAMPLE,dc=org
 cn: postmaster
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root


CategorySoftware | CategoryNetwork | CategorySystemAdministration