From: John B. <joh...@ne...> - 2000-07-27 12:22:05
|
On Thu, 27 Jul 2000, Graham Barr wrote: > > I can't think of a simple and portable way to do this in LDAPv2. > > You mean instead of deliberatly sending a malformed packet and expecting > an error response. But thats probbaly too evil :) Heh. I didn't have the gall to suggest that. You could do something like issue a hopefully-low-impact search request. (scope=single entry, pick a base, have an explicit filter (cn=hopedoesntexist), ask for only 'cn' attribute back). But it still feels icky. On the issue of 'layers over Net::LDAP', I must have missed the "we don't want sizelimit etc. management". Is there a real desire for a more 'cooked' API? (I quite like the current one...). Things like $ldap->exists( $dn ) might be nice though. Whether that API lived in the Net::LDAP namespace/bundle or elsewhere shouldn't be relevant to what it could do - what do people want? Do we want a Net::LDAP::Cooked or Net::LDAPCooked module? If so what kind of features would people want? jb |