 |
Forums |
Admin Start New Thread
By: Daniel Berger
RE: String to Filter? [ reply ] 2006-07-21 20:15
|
I, too, would like this feature. It's just more convenient to type "ldap.search(:filter => 'uid=djberge') than to have to create a filter object first, and then pass it to LDAP#search.
I would say don't worry about making sure the string is compliant - it's the users job to get it right, not yours.
- Dan
|
By: Francis Cianfrocca
RE: String to Filter? [ reply ] 2006-05-15 13:49
|
Andre, I apologize for missing this message. I just responded on Ruby-talk as follows:
I assume by "LDAP filter string" you mean an RFC-2254 compliant string,
correct? Net::LDAP intentionally avoided supporting this kind of textual representation of filters, partly because they're ugly and partly because they don't map to anything in the LDAP wire protocol.
However, we've thought about adding methods that would convert Net::LDAP::Filters to and from RFC-2254 strings. Would that help you? Is it because you have these strings lying around in existing code? Are you trying to port from an application that uses the native-LDAP wrapper library?
|
|
 |