From: Graham B. <gb...@po...> - 2002-10-24 12:58:22
|
Net::LDAP has not used Convert::BER for a long time, it changed to Convert::ASN1 a long time ago. The internal data-structure of the Filter object is the data structure expected by the ASN1 encode as described by the ASN1 definition in Net::LDAP::ASN Graham. On Tue, Oct 22, 2002 at 03:19:43PM -0700, Yary Hluchan wrote: > Once upon a time my LDAP server used Net::LDAP::BER->read to get and > parse binary data all at once. It then used the "tag" and "decode" > methods to see what it had to do. > > Now I'm converting to an OpenLDAP server w/a perl backend. The filter > is passed as a flat string. I see that Net::LDAP::Filter will parse > the string for me- but after that, I'm lost. What do I do with the > Filter object? I would like to turn it into a BER object so I can > re-use my code, but if there was any other way to traverse the tree > I can use that too. > > I could use the internal representation of the Filter object, looks > pretty straightforward, but don't want to be doing something undocumented > that could break. > > -y > > ~~~~~ > The Moon is Waning Gibbous (99% of Full) > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote |