From: Graham B. <gb...@po...> - 2001-11-28 11:54:23
|
On Tue, Nov 27, 2001 at 07:31:21PM +0000, John Berthels wrote: > > > This sounds like an excellent idea. But I think it should be a sub-class > > > of Net::LDAP. > > > > > > In fact, if it was a package that understood the data structures > > > passed to Convert::ASN1. Then it could have many uses. > > > > > > Your subclass you mention could just call it instead of encoding > > > with Convert::ASN1. But we could also write a simple server that > > > could be used for testing within the distribution. > > OK. I was trying to avoid ASN.1 entirely. An outline of what I intended is > attached. (Only enough implemented to demonstrate the concept I had in > mind - the search implementation currently matches everything in the > LDIF). I was not suggesting that you actually use ASN.1, but the data structures that get passed to the Convert::ASN1 module. Then there is little work todo to create a subclass of Net::LDAP as you only have to override the send/recv instead of having to reimplement everything > The idea is that (whilst testing away from a server) you can instantiate a > Net::LDAPL (poor name I think) instead of a Net::LDAP and still test your > app. Sure. Graham. > Anyone sufficiently interested in this for me to finish it? > > regards, > > jb |