Changeset 2051


Ignore:
Timestamp:
07/07/17 18:25:58 (7 years ago)
Author:
nanardon
Message:

Add tls support

Location:
trunk/LATMOS-Accounts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Ad.pm

    r1086 r2051  
    115115        return; # cannot connect to any ldap :\ 
    116116    }; 
     117     
     118    if ($self->config('tls')) { 
     119        $self->log(LA_DEBUG, "Running start_tls()"); 
     120        $ldap->start_tls( 
     121            verify => 'none', 
     122        ); 
     123    } 
    117124 
    118125    my $login = $self->config('login'); 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Ldap.pm

    r1605 r2051  
    126126    }; 
    127127 
     128    if ($self->config('tls')) { 
     129        $self->log(LA_DEBUG, "Running start_tls()"); 
     130        $ldap->start_tls( 
     131            verify => 'none', 
     132        ); 
     133    } 
    128134 
    129135    my $msg = $ldap->bind($self->config('login'), password => $self->config('password')); 
  • trunk/LATMOS-Accounts/man/man8/latmos-accounts-base-ad.pod

    r1117 r2051  
    3232If set, try to connect using ssl 
    3333 
    34 Notice using ssl is mandatory to be able to setup password. 
     34Notice using ssl or tls is mandatory to be able to setup password. 
     35 
     36=head2 tls 
     37 
     38If set start tls encryption on standard ldap port. 
     39 
     40C<ssl> parameter must not set in this case. 
    3541 
    3642=head2 user_container 
  • trunk/LATMOS-Accounts/man/man8/latmos-accounts-base-ldap.pod

    r1117 r2051  
    2525If set, try to connect using ssl 
    2626 
     27=head2 tls 
     28 
     29If set start tls encryption on standard ldap port. 
     30 
     31C<ssl> parameter must not set in this case. 
     32 
    2733=head2 user_container 
    2834 
Note: See TracChangeset for help on using the changeset viewer.