CRUD
dn: uid=smith ❶,dc=betrayer,dc=com ❷ changetype: add ❸ objectClass: inetOrgPerson ❹ objectClass: organizationalPerson ❹ objectClass: Person ❹ objectClass: top ❹ uid: smith ❺ cn: Jill Smith ❻ sn: Smith ❻
Adding an entry having the primary key value
|
|
To be appended to. In this case its simply the DIT's root. |
|
The operation creates an adds a new node to the tree. This line may be omitted since adding a node is the default. |
|
Object classes represent a schema describing the
structure of instances. The |
|
The |
|
|
Operation | Result |
---|---|
dn: uid=smith,dc=betrayer,dc=com ❶ changetype: modify ❷ add: description ❸ description: New employee ❹ |
dn: uid=smith,dc=betrayer,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
cn: Jill Smith
sn: Smith
uid: smith
description: New employee |
Addressing an existing |
|
Operation: Modify entry. |
|
Add a |
|
The value to be set. |
Operation | Result |
---|---|
dn: uid=smith,dc=betrayer,dc=com ❶ changetype: modify ❷ replace: description ❸ description: Long term employee ❹ |
dn: uid=smith,dc=betrayer,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
cn: Jill Smith
sn: Smith
uid: smith
description: Long term employee |
Addressing an existing |
|
Operation: Modify entry. |
|
Replace the |
|
The replacement value to be set. |
Base state | Operation | Result |
---|---|---|
dn: uid=smith,dc=betrayer,dc=com
...
uid: smith
commonName: Jill Smith
surname: Smith
description: Long term employee |
|
|
Base state | Operation |
---|---|
|
dn: uid=smith,dc=betrayer,dc=com changetype: modify add: mail ❶ mail: smith@company.com ❷ mail: jsmith@privateaccount.org ❸ mail: smith@company.com ❹ ERR_13207_VALUE_ALREADY_EXISTS ❹ The value 'smith@company.com' already exists in the attribute (mail) |
Base state | Operation | Result |
---|---|---|
dn: uid=smith,dc=betrayer,dc=com ... cn: Jill Smith mail: jsmith@privateaccount.org mail: smith@company.com mail: anonymous@keeput.org |
dn: uid=smith,dc=... changetype: modify delete: mail mail: smith@company.com mail: anonymous@keeput.org |
|