Populating your DIT.

Add the content outlined in Figure 1152, “An example LDAP Tree ”.

For your convenience we have installed the Apache Directory Studio Eclipse plugin which allows for convenient editing of LDAP trees.

Tip

You may want to adjust occurrences of dc=betrayer;dc=com by your configured DIT root.

  1. You need your initial configuration admin password to perform a bind operation using the cn=admin,dc=betrayer,dc=com DN.

  2. If you choose Use existing entry as template don't forget to purge your copy's entryCsn attribute belonging to your template data record being unique within your DIT.

  3. Suitable objectClass and other attribute choices:

    Organisational units department, software, financial, devel, testing
    objectClass:

    organizationalUnit

    RDN attribute:

    uid

    Employees Jim Smith, Audrey Bean:
    objectClass:

    inetOrgPerson

    RDN attribute:

    uid

    Other attributes:

    sn, cn, givenName, mail

When you are finished an Apache Directory Studio export dump might look like:

dn: dc=betrayer,dc=com
objectClass: organization
objectClass: dcObject
objectClass: top
dc: betrayer
o: betrayer.com

dn: cn=admin,dc=betrayer,dc=com
objectClass: organizationalRole
objectClass: simpleSecurityObject
cn: admin
userPassword:: e1NTSEF9cEhFK0VQT0cyZ3lSeU9nanZGcXNXT2I1ekdzR2w5Q0Q=
description: LDAP administrator

dn: ou=departments,dc=betrayer,dc=com
objectClass: top
objectClass: organizationalUnit
ou: departments

dn: ou=software,ou=departments,dc=betrayer,dc=com
objectClass: top
objectClass: organizationalUnit
ou: software

dn: ou=financial,ou=departments,dc=betrayer,dc=com
objectClass: top
objectClass: organizationalUnit
ou: financial

dn: ou=devel,ou=software,ou=departments,dc=betrayer,dc=com
objectClass: top
objectClass: organizationalUnit
ou: devel

dn: ou=testing,ou=software,ou=departments,dc=betrayer,dc=com
objectClass: top
objectClass: organizationalUnit
ou: testing

dn: uid=bean,ou=devel,ou=software,ou=departments,dc=betrayer,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
cn: Jim Bean
sn: Bean
givenName: Jim
mail: bean@betrayer.com
uid: smith
userPassword:: e3NtZDV9YVhKL2JlVkF2TDRENk9pMFRLcDhjM3ovYTZQZzBXeHA=