Skip to content

Commit

Permalink
REPL tested controls and modify-increment.
Browse files Browse the repository at this point in the history
Not unittested due to lack of support from ApacheDS.
  • Loading branch information
alienscience committed Feb 24, 2011
1 parent 37dd656 commit 148ec19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Expand Up @@ -183,10 +183,13 @@ e.g

Throws a [LDAPSearchException](http://www.unboundid.com/products/ldap-sdk/docs/javadoc/com/unboundid/ldap/sdk/LDAPSearchException.html) if an error occurs during search. Throws an [EntrySourceException](http://www.unboundid.com/products/ldap-sdk/docs/javadoc/com/unboundid/ldap/sdk/EntrySourceException.html) if there is an eror obtaining search results.

## delete [connection dn]
## delete [connection dn] [connection dn options]

Deletes the entry with the given DN on the connected ldap server.
Deletes the given entry in the connected ldap server. Optionally takes a map that can contain the entry :pre-read to indicate the attributes that should be read before deletion.

(ldap/delete conn "cn=dude,ou=people,dc=example,dc=com")

(ldap/delete conn "cn=dude,ou=people,dc=example,dc=com"
{:pre-read #{"telephoneNumber"}})
Throws a [LDAPException](http://www.unboundid.com/products/ldap-sdk/docs/javadoc/com/unboundid/ldap/sdk/LDAPException.html) if the object does not exist or an error occurs.
2 changes: 1 addition & 1 deletion test/clj_ldap/test/client.clj
Expand Up @@ -22,7 +22,7 @@
(def *side-effects* nil)

;; Result of a successful write
(def success* [0 "success"])
(def success* {:code 0 :name "success"})

;; People to test with
(def person-a*
Expand Down

0 comments on commit 148ec19

Please sign in to comment.