Hi guys,

I'm developing a web gateway to LDAP servers, basically a piece of
software that presents a JSON-RPC interface to browser apps so they can
work with data in directories.

For ADD and MODIFY operations involving binary attributes clients to the
service pass the values as BASE64 encoded strings. Now, there is a
method (using a regexp) to try to infer whether a particular string
could have been encoded with BASE64 and hence represent a binary value.
But I wonder if this is the most correct way to go about binary syntax
detection. The alternative strategy I see is to check the server schema
for the particular attribute.

What do you think would be most appropriate here?

Or, is perhaps the right question to ask - whose responsibility is to
check that input data is valid - the client's or the server's?


Regards,

Vladimir
-- 
Vladimir Dzhuvinov * www.dzhuvinov.com * PGP key ID AC9A5C6C


Reply via email to