Hi,
I'm trying to make Net::LDAP use a specific control while executing a
search. However, if I add the control part to the search parameter, it
actually executes a search on the server.
My code is:
#!/usr/pubsw/bin/perl
use Net::LDAP;
use Net::LDAP::LDIF;
use MIME::Base64;
use Authen::SASL;
$ldap = Net::LDAP->new( 'ldap-dev1.stanford.edu' ) or die "$@";
$sasl = Authen::SASL->new(GSSAPI);
$status = $ldap->bind("", sasl=>$sasl);
$status = $ldap->search(base=>"cn=people,dc=stanford,dc=edu", scope=>"sub",
filter=>"uid=quanah",attrs=>"ou",control=>['type' =>
'1.3.6.1.4.1.4203.666.5.14', 'value'=>TRUE ]);
$status = $ldap->unbind();
If I remove the control bit, the search executes just fine...
Thoughts?
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html