Ignore:
Timestamp:
05/24/09 17:55:03 (15 years ago)
Author:
nanardon
Message:
  • fix cryptmd5 salt
  • w/o options sync_access use defaults values
File:
1 edited

Legend:

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

    r164 r178  
    241241        my @salt_char = (('a' .. 'z'), ('A' .. 'Z'), (0 .. 9), '/', '.'); 
    242242        my $salt = join('', map { $salt_char[rand(scalar(@salt_char))] } (1 .. 8)); 
    243         $self->set_fields($field, crypt($clear_pass, $salt)); 
     243        $self->set_fields($field, crypt($clear_pass, '$1$' . $salt)); 
    244244    } 
    245245} 
Note: See TracChangeset for help on using the changeset viewer.