Comment 1 for bug 185832

Revision history for this message
In , Sergio Talens-Oliag (sto) wrote : Re: Bug#344422: smbldap-tools: LDAP + SSL not working

El Thu, Dec 22, 2005 at 05:33:21PM +0100, Yann Forget va escriure:
> Package: smbldap-tools
> Version: 0.9.1-2
> Severity: normal
> Tags: patch
>
> Hi,
>
> I added/change the following to use LDAP + SSL:

What you have sent is not a patch, so I don't really know what I'm
supposed to do with it... what is not working? where is the code you have sent
supposed to go?

Greetings,

  Sergio.

> use Net::LDAPS;
>
> if (($config{ldapSSL} != 1) and ($config{ldapTLS} != 1)) {
> print "re\n";
> $ldap_master = Net::LDAP->new(
> "$config{masterLDAP}",
> port => "$config{masterPort}",
> )
> or die "LDAP error: Can't contact master ldap server ($@)";
> }
> if ($config{ldapSSL} eq "1") {
> $ldap_master = Net::LDAPS->new(
> "$config{masterLDAPS}",
> port => "$config{masterPort}",
> verify => "$config{verify}",
> cafile => "$config{cafile}"
> )
> or die "LDAP error: Can't contact master ldap server with SSL ($@)";
> }
>
> with in /etc/smbldap-tools/smbldap.conf
> masterLDAPS="ldaps://myldapserver/"

--
Sergio Talens-Oliag <email address hidden> <http://www.uv.es/~sto/>
Key fingerprint = 29DF 544F 1BD9 548C 8F15 86EF 6770 052B B8C1 FA69