dn attribute defaults to the resource name

This allows you to do
  ldapdn{'cn=test,ou=engineering,o=mycompany':
    attributes => [ 'objectClass: top', 'objectClass: person'],
  }

without explicitly setting the dn attribute