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.)

Thanks,
-David Faltermier
[EMAIL PROTECTED]

#---------------------------------------
# Testing Net::LDAP::Control
#---------------------------------------
Calling Net::LDAP::Control->new(
  type     => '2.16.840.1.113730.3.4.18',
  value    => '[EMAIL PROTECTED],ou=People,o=hp.com',
  critical => 1,
);
Dumping Control contents:
  type     => 2.16.840.1.113730.3.4.18
  value    => [EMAIL PROTECTED],ou=People,o=hp.com
  critical => 1

#---------------------------------------
# Testing Net::LDAP::Control::ProxyAuth
#---------------------------------------
Calling Net::LDAP::Control::ProxyAuth->new(
  proxyDN => '[EMAIL PROTECTED],ou=People,o=hp.com',
);
Dumping ProxyAuth Control contents:
  type     => 2.16.840.1.113730.3.4.12
  value    => [EMAIL PROTECTED],ou=People,o=hp.com
  critical => 1
  proxyDN  => [EMAIL PROTECTED],ou=People,o=hp.com

#---------------------------------------
# Testing Net::LDAP::Control::Sort
#---------------------------------------
Calling Net::LDAP::Control::Sort->new(
  order => 'cn -telephone',
);
Dumping Sort Control contents:
  type     => 1.2.840.113556.1.4.473
  value    => 00cn0     telephone(binary value not shown)
  critical => 0
  order    => 2

Reply via email to