Re: Authen::SASL and Net::LDAP::LDAPI

[email protected] (Kartik Subbarao)
Newsgroups perl.ldap
Message-ID <[email protected]>
On 11/13/2009 04:16 PM, Dieter Kluenter wrote:
>> $ldap = Net::LDAP->new('ldapi://');
>> $sasl = Authen::SASL->new(mechanism =>  'EXTERNAL');
>> $sasl_client = $sasl->client_new('ldap', 'localhost');
>> $ldap->bind(undef, sasl =>  $sasl_client);
>
> I think you should define a path to ldapi, something like
>
> my $host = 'ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi';
> my $ldap = Net::LDAP->new("$host");

Tried that too, same problem.

	-Kartik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.