Hello,
I've got a question about the behavior of Net::LDAP::Control and it's
child classes. =20
Should a call to $control->value() return an ASN value? I instantiated
a few controls to see their behavior and they are all the same. They
return an ASN value. I guess I expected the original, untainted, value
to be returned. (The value of Net::LDAP::Control->value() is untouched
but I suspect that is because it is a simplified stub for subclasses.)
Thanks,
-David Faltermier
david.faltermier@hp.com
#---------------------------------------
# Testing Net::LDAP::Control
#---------------------------------------
Calling Net::LDAP::Control->new(
type =3D> '2.16.840.1.113730.3.4.18',
value =3D> 'uid=3Ddavid.faltermier@hp.com,ou=3DPeople,o=3Dhp.com',
critical =3D> 1,
);
Dumping Control contents:
type =3D> 2.16.840.1.113730.3.4.18
value =3D> uid=3Ddavid.faltermier@hp.com,ou=3DPeople,o=3Dhp.com
critical =3D> 1
#---------------------------------------
# Testing Net::LDAP::Control::ProxyAuth
#---------------------------------------
Calling Net::LDAP::Control::ProxyAuth->new(
proxyDN =3D> 'uid=3Ddavid.faltermier@hp.com,ou=3DPeople,o=3Dhp.com',
);
Dumping ProxyAuth Control contents:
type =3D> 2.16.840.1.113730.3.4.12
value =3D> 00.uid=3Ddavid.faltermier@hp.com,ou=3DPeople,o=3Dhp.com
critical =3D> 1
proxyDN =3D> uid=3Ddavid.faltermier@hp.com,ou=3DPeople,o=3Dhp.com
#---------------------------------------
# Testing Net::LDAP::Control::Sort
#---------------------------------------
Calling Net::LDAP::Control::Sort->new(
order =3D> 'cn -telephone',
);
Dumping Sort Control contents:
type =3D> 1.2.840.113556.1.4.473
value =3D> 00cn0 telephone(binary value not shown)
critical =3D> 0
order =3D> 2