verif definition password
This commit is contained in:
@@ -43,7 +43,8 @@ if( $mesg-> count() == 0 ) { exit(0) ; }
|
||||
|
||||
foreach my $entry ( $mesg-> entries ){
|
||||
my $userPassword = $entry->get_value('userPassword') ;
|
||||
my $sshaPassword = `slappasswd -n -s $userPassword` ;
|
||||
my $sshaPassword='';
|
||||
if ( $userPassword ) { $sshaPassword= `slappasswd -n -s $userPassword` ;}
|
||||
if( $userPassword =~ /^{SSHA/ ) {
|
||||
print $entry->dn() . " already hashed\n" ;
|
||||
next ; }
|
||||
|
||||
Reference in New Issue
Block a user