From: P.S.Saragiotis <ps...@au...> - 2001-01-09 15:05:44
|
"P.S.Saragiotis" wrote: > > Hello all, > I've searched the lists archives but i couldnt find anything about > LDAP_CONTROL_REFERRALS and how can i use it. I 'm making a connection to > my ldap server (netscape v 4.11) and i wish to manage (add , delete the > ref: attribute) the referral entries. I used the following control in my > search : > my $ctrl = Net::LDAP::Control->new( > type => LDAP_CONTROL_REFERRALS, > value => 0, > critical=> 0 > ); > > $mesg = $cldap->search ( > base => "ou=$server,o=auth,c=gr", > scope => "base", > filter => "objectclass=*", > control => [ $ctrl ] > ); > > It returns the referrals and code 10 instead of the actual entries. > Should nt this work ? Am i on the wrong path ? Any sugestions ? > > Thank you. Dont bother i found a solution to my problem. When i wish to have the actual referral entries, intead of the referrals i use : my $ctrl = Net::LDAP::Control->new( type => LDAP_CONTROL_MANAGEDSAIT, ); $mesg = $cldap->search ( base => $base scope => base filter => "objectclass=*", control => [ $ctrl ] ); |