Changeset 298
- Timestamp:
- 07/28/09 02:38:56 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Objects.pm
r257 r298 4 4 use strict; 5 5 use warnings; 6 use LATMOS::Accounts::Log; 6 7 7 8 our $VERSION = (q$Rev$ =~ /^Rev: (\d+) /)[0]; … … 241 242 my @salt_char = (('a' .. 'z'), ('A' .. 'Z'), (0 .. 9), '/', '.'); 242 243 my $salt = join('', map { $salt_char[rand(scalar(@salt_char))] } (1 .. 8)); 243 $self->set_fields($field, crypt($clear_pass, '$1$' . $salt)); 244 return $self->set_fields($field, crypt($clear_pass, '$1$' . $salt)); 245 } else { 246 $self->log(LA_WARN, 247 "Cannot set password: userPassword attributes is unsupported"); 244 248 } 245 249 } … … 328 332 1; 329 333 $max ||= 65635; 334 $base->log(LA_DEBUG, "Trying to find %s in range %d - %d", 335 $field, $min, $max); 330 336 my %existsid; 331 337 foreach ($base->list_objects($class->type)) {
Note: See TracChangeset
for help on using the changeset viewer.