On Feb 7, 2007, at 1:09 PM, Jeff Kalbfleisch wrote:

$secureLDAP->root_dse->supported_extension (1.3.6.1.4.1.4203.1.11.1);

perl -le 'print(1.3.6.1.4.1.4203.1.11.1)'
Wide character in print at -e line 1.
ၫ

$secureLDAP->root_dse->supported_extension ("LDAP_EXTENSION_PASSWORD_MODIFY");

No, you need to pass the string representation of the OID. Either

$secureLDAP->root_dse->supported_extension ("1.3.6.1.4.1.4203.1.11.1"); # note the "'s

or

  use Net::LDAP::Constant qw(LDAP_EXTENSION_PASSWORD_MODIFY);
$secureLDAP->root_dse->supported_extension (LDAP_EXTENSION_PASSWORD_MODIFY); # note no "'s

        my $dse = $secureLDAP->root_dse;

        my @extn = $dse->get_value('supportedExtension');

         print "\n[" . join("::",@extn) . "]";

 which results in

[1.3.6.1.4.1.1466.20037::1.3.6.1.4.1.1466.101.119.1::1.2.840.113556.1. 4.1781]

Which means your server does not support LDAP_EXTENSION_PASSWORD_MODIFY
Which I looked up and they correspond to START_TLS, DYNAMIC_REFRESH, LDAP_SERVER_FAST_BIND_OID

I have tried enabling the LDAP_EXTENSION_PASSWORD_MODIFY

As shown for WHOAMI here that I think you wrote

http://beta.nntp.perl.org/group/perl.ldap/2005/09/msg1704.html

and the extension is still not enabled.

That does not enable it. That tests is the server supports it.

Graham.

Reply via email to