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/"
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; masterLDAP} ", masterPort} ", masterLDAPS} ", masterPort} ", tools/smbldap. conf "ldaps: //myldapserver/ "
>
> if (($config{ldapSSL} != 1) and ($config{ldapTLS} != 1)) {
> print "re\n";
> $ldap_master = Net::LDAP->new(
> "$config{
> port => "$config{
> )
> or die "LDAP error: Can't contact master ldap server ($@)";
> }
> if ($config{ldapSSL} eq "1") {
> $ldap_master = Net::LDAPS->new(
> "$config{
> port => "$config{
> verify => "$config{verify}",
> cafile => "$config{cafile}"
> )
> or die "LDAP error: Can't contact master ldap server with SSL ($@)";
> }
>
> with in /etc/smbldap-
> masterLDAPS=
-- www.uv. es/~sto/>
Sergio Talens-Oliag <email address hidden> <http://
Key fingerprint = 29DF 544F 1BD9 548C 8F15 86EF 6770 052B B8C1 FA69