The UPDATEADD statement adds values to the exiting attributes, creating the attribute if it does not already exists. The basic UpdateAdd statement has 4 clauses:
The UPDATEADD clause specifies the entry(ies) to update. The SET clause specifies the attributes to update. The WHERE clause specifies the condition. The WHERE clause is optional; if missing, all the entries within the container will be updated depending upon the query scope. The QUERY SCOPE is new for ldap query, if missing the default is subtree scope and will return all the subentries (you can change the default from the radio buttons at the bottom of sql editor). UpdateAdd statement has the following general format
UPDATEADD Entry SET set-list [WHERE predicate] [QuerryScope]
Before and after snapshot after running the following UPDATEADD statement:
UPDATEADD cn=testuser1,ou=testusers,o=stooges SET description ='description2'
Difference b/w Update, UpdateAll and UpdateReplace
Update statement examples
|LDAP Admin Tool Home Page|