Changeset 792
- Timestamp:
- 02/03/10 19:03:41 (14 years ago)
- Location:
- LATMOS-Accounts
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Ad.pm
r775 r792 87 87 sub load { 88 88 my ($self) = @_; 89 90 # If already load, just say ok ! 91 $self->{_ldap} and return 1; 92 89 93 # At this point, if still no $server, DNS search 90 94 -
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Ldap.pm
r288 r792 98 98 sub load { 99 99 my ($self) = @_; 100 # At this point, if still no $server, DNS search 100 101 # If already loaded, just say ok ! 102 $self->{_ldap} and return 1; 101 103 102 104 my $ldapurl = $self->_ldap_url($self->{_server}); -
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Mail.pm
r488 r792 28 28 my ($self) = @_; 29 29 30 # If aleady loaded just say ok ! 31 $self->{_loaded} and return 1; 32 30 33 # warning, comment will be strip ! 31 34 if (open(my $handle, '<', $self->{file}{aliases})) { 35 $self->log(LA_DEBUG, "Reading file %s", $self->{file}{aliases}); 32 36 while (my $line = <$handle>) { 33 37 chomp($line); … … 49 53 50 54 if (open(my $handle, '<', $self->{file}{revaliases})) { 55 $self->log(LA_DEBUG, "Reading file %s", $self->{file}{revaliases}); 51 56 while (my $line = <$handle>) { 52 57 chomp($line); … … 63 68 return; 64 69 } 70 71 $self->{_loaded} = 1; 65 72 66 73 return 1; -
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Unix.pm
r784 r792 122 122 my ($self, $file, $callback) = @_; 123 123 open(my $handle, '<', $file) or do { 124 la_log(LA_ERR, "Cannot open unix file `%s' for reading (%s)", $file, $!);124 $self->log(LA_ERR, "Cannot open unix file `%s' for reading (%s)", $file, $!); 125 125 return; 126 126 }; 127 $self->log(LA_DEBUG, "Reading file $file"); 127 128 while (my $line = <$handle>) { 128 129 chomp($line); … … 142 143 sub load { 143 144 my ($self) = @_; 145 146 # If already loaded, just say ok ! 147 $self->{_loaded} and return 1; 144 148 145 149 $self->_load_unix_file( … … 227 231 228 232 } # use shadow ? 233 234 $self->{_loaded} = 1; 229 235 230 236 1;
Note: See TracChangeset
for help on using the changeset viewer.