From: Francis Cianfrocca Date: 2006-09-23T03:29:50+09:00 Subject: Re: Accessing LDAP jpegPhoto attribute in Ruby... On 9/22/06, augustf@gmail.com wrote: > Hi everyone, > In writing my Ruby LDAP application, I'm able (with activeldap) to > access any ldap attribute I need - except binary ones. user.uid, for > instance would get me the userid of the user. But user.jpegPhoto yields > binary rubbish. > Have you tried querying this attribute with the Net::LDAP library? It recently acquired some significant improvements in how it handles binary attributes. I can tell you from my own research that some versions of the native-code LDAP libraries (which Ruby/LDAP and ActiveLDAP are based on) have some possibly incorrect behavior with regard to binary values.