Ignore:
Timestamp:
05/26/09 16:28:27 (15 years ago)
Author:
nanardon
Message:
  • add set_password() to AD
File:
1 edited

Legend:

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

    r181 r189  
    1111use Net::LDAP::Constant qw( LDAP_CONTROL_PAGED );  
    1212use Net::LDAP::Util     qw( escape_filter_value ); 
     13use Unicode::Map8; 
     14use Unicode::String qw(utf16); 
    1315 
    1416our $VERSION = (q$Rev$ =~ /^Rev: (\d+) /)[0]; 
     
    109111    } 
    110112 
    111     $ldap or return; # connot connect to any ldap :\ 
     113    $ldap or do { 
     114        warn "Cannot to ldap server"; 
     115        return; # connot connect to any ldap :\ 
     116    }; 
    112117 
    113118    my $login = $self->{_login}; 
     
    145150        sort { $a->priority <=> $b->priority || $a->weight <=> $b->weight } 
    146151        grep { $_->type eq 'SRV' } $query->answer) { 
    147         push(@urllist, $self->_ldap_url($rr->target, $rr->port)); 
     152        push(@urllist, $self->_ldap_url($rr->target)); # $rr->port)); don't use port 
    148153    } 
    149154 
Note: See TracChangeset for help on using the changeset viewer.