On Nov 25, 2008, at 9:45 AM, Clément OUDOT wrote:
Hello,

after some research on the net, I can't find any perl code that can
read/write IA5strings.

IA5Strings are basically ASCII strings. The only printable differences
is that IA5 does not have $ or ~

see http://www.zytrax.com/tech/ia5.html

I suppose we have to use the ASN1 functions, is it right? The goal for is to be able to read/write values for example the logonHours attribute in
Active Directory.

It would seem to me that AD defined logonHours as IA5String as it allows
bytes of any value as logonHours seems to be a bit packed string, see

http://forums.sun.com/thread.jspa?messageID=10389841#10389841

With Net::LDAP you should be able to pack the string as required for
the logonHours definition and pass it as the attribute value

Graham.



If you have some code to do that, please let me know.

Thanks for your help,

Clément OUDOT.


Reply via email to