in reply to Re: Peculiar problem with Net::LDAPS and AD LDAP
in thread Peculiar problem with Net::LDAPS and AD LDAP
Thanks for the suggestion!
That returns an error: Can't call method "print" on an undefined value for the 'bad' GUID .
#!/usr/bin/perl use strict; use Net::LDAP::Filter; use MIME::Base64 qw(encode_base64 decode_base64); my $goodFilter = '(objectGUID = '.decode_base64('XrfAr5bivU61wz1WCgsxW +A==').')'; my $badFilter = '(objectGUID = '.decode_base64('6CncwjzJ/Umi4iIdB88efw +==').')'; print "Good filter:\n"; my $f1 = Net::LDAP::Filter->new($goodFilter); $f1->print; print "Bad filter:\n"; my $f2 = Net::LDAP::Filter->new($badFilter); $f2->print;
Output:
./filtertest.pl Good filter: (objectGUID= ^\b7\c0\af\96\e2\bdN\b5\c3=V\0a\0b1X) Bad filter: Can't call method "print" on an undefined value at ./filtertest.pl lin +e 17.
So, a bug in Net::LDAP::Filter, I think.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Peculiar problem with Net::LDAPS and AD LDAP
by desertrat (Sexton) on Feb 19, 2021 at 22:37 UTC | |
by jcb (Parson) on Feb 21, 2021 at 04:32 UTC |