Net::LDAP::Control returns 'ASN' value?

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

0
david
2/14/2005 11:12:45 PM
perl.ldap 1268 articles. 0 followers. Follow

1 Replies
693 Views

Similar Articles

[PageSpeed] 15

On Mon, February 14, 2005 5:12 pm, Faltermier, David (HP Directory) said:
>
> Hello,
>
> I've got a question about the behavior of Net::LDAP::Control and it's
> child classes.
>
> 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.)

It will usually be an ASN value. It is whatever the control defines
to be in the value part of the ASN definition for a control.

Graham.


0
gbarr
2/15/2005 2:55:30 PM
Reply:

Web resources about - Net::LDAP::Control returns 'ASN' value? - perl.ldap

Resources last updated: 1/1/2016 9:18:13 PM