From: Francis Cianfrocca Date: 2006-05-18T05:56:24+09:00 Subject: Re: Net::LDAP filters ------=_Part_124518_12230690.1147899376463 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I addressed that in a different way, which may or may not be ideal. The object which comes back from #search has methods defined on it to match the attributes that were returned. And the method names are case-insensitive. You ought to able to say result.shadowFlag and get the result you expect. Try it. On 5/17/06, Andre Nathan wrote: > > On Thu, 2006-05-18 at 04:54 +0900, Francis Cianfrocca wrote: > > LDAP attribute names are usually not case-sensitive. I had a couple of > > reasons for handling those the way I did, but I can be persuaded > > otherwise! > > Well, my only argument is that if I search for something, I'd expect > that the return result to include the same attribute name that I > searched for. > > It's nothing overly important, I was just writing some unit tests and > was surprised to see that results[:shadowFlag] was nil, so I had to dump > the whole results to find out the key is actually :shadowflag. > > Andre > > > ------=_Part_124518_12230690.1147899376463--