develooper Front page | perl.ldap | Postings from December 2021

Net::LDAP not returning SEQUENCE data type

Thread Next
johnhirsch via perl-ldap
December 15, 2021 22:27
Net::LDAP not returning SEQUENCE data type
Message ID:
Hi. I am working on migrating a perl script that uses Net::LDAP from HP-UX to RedHat Linux. When running the script on RedHat Linux, the debug seems to indicate that Net:LDAP is returning a 00 for the ASN1 data type instead of the standard 30:

00 82 07 4D 02 01 03 64 82 07 46 04 2D 75 69 64 ...M...d..F.-uid

Everything else is identical to the script running on HP-UX, including all of the data returned. Only the ASN1 type is different. This is what I see in HP-UX

30 82 07 4D 02 01 03 64 82 07 46 04 2D 75 69 64 0..M...d..F.-uid

This results in a decode error since the data type is incorrect.

decode error 00<=>30 0 8  at /opt/perl/Convert-ASN1-0.33/lib/Convert/ASN1/ line 117

The working script is actually using a very old version of Net::LDAP and Convert:ASN1, while the non-working script was updated to the latest versions to see if that would resolve the issue. It hasn't, so I'm guessing that there is something else preventing Net::LDAP from returning the correct value for the ASN1 data type. Any ideas on why this would be happening and how to get Net::LDAP to return the correct data type? Any assistance would be appreciated. Thanks!

John Hirsch

This e-mail and any attachments may contain confidential information of Northwestern Mutual. If you are not the intended recipient of this message, be aware that any disclosure, copying, distribution or use of this e-mail and any attachments is prohibited. If you have received this e-mail in error, please notify Northwestern Mutual immediately by returning it to the sender and delete all copies from your system. Please be advised that communications with {SECURE MESSAGE} in the subject line have been sent using a secure messaging system. Communications that do not have this tag may not be secure and could be observed by a third party. Our commitment to privacy: At Northwestern Mutual, your privacy is important to us. For more information about our privacy practices, please review our privacy notices. 

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About