Hi Saul, thanks for writing this. Embarrassingly I wasn't even aware of the UnboundID LDAP SDK, so it's great to find two useful things I can use right away!
I would like to implement a LDAP authentication in Clojure, based around clj-ldap. Do you think it is necessary for the bind-request function to be private? In LDAP v3 bind requests can be sent at any time during a connection, so I can run a small connection pool for authentication without the overhead of creating a new connection every time someone authenticates. My plan is to take the UID and password, search the directory for the matching DN, and then bind with that DN given the provided password. Any enormous flaws in this approach? More specifically, would you consider a public bind-request function in an upcoming release? Paul On Feb 11, 1:37 am, Saul Hazledine <shaz...@gmail.com> wrote: > On Feb 10, 8:36 am, Jozef Wagner <jozef.wag...@gmail.com> wrote: > > > One question, If I search for some entries, you return results as a sequence > > of maps. How do I get dn of some result? It seems that your entry-as-map > > converts attributes but strips away entry dn. > > > I've solved this by adding :dn key in each entry map, > > seehttps://github.com/wagjo/dredd/blob/master/src/dredd/ldap.clj#L19 > > Many thanks for spotting this important missing attribute. Thanks also > for the link to your code. After reading your version I realised that > clj-ldap should also allow attributes to be selected for an ldap/get. > > I've fixed the problem with dn, added attribute selection to ldap/get, > improved the README slightly and released this as version 0.0.2 which > is now on clojars.org. > > Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en