Cuz Ican
2010-Sep-03 18:55 UTC
net-ldap-0.1.1 gives invalid filter syntax cuz of parenthesi
Things like this won''t work.. they fail with Invalid filter syntax filter = Net::LDAP::Filter.construct("nisnetgrouptriple=(,user,)") If I remove the parenthesis and it works fine. or if you use filter = Net::LDAP::Filter.eq( "nisnetgrouptriple", "(,user,)" ) then that works fine.. but i want to have compound statements and take them from a web front end so this is all tedious to construct. This will fail with invalid filter syntax as well: filter Net::LDAP::Filter.construct("(&(objectClass=Person)(|(sn=Jensen)(cn=Babs J*)))") Anyone found better work arounds for things like this other than going to ruby/ldap c based gem? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.