verif definition password

This commit is contained in:
2019-10-24 22:09:09 +02:00
parent fa54d2e280
commit 45df467dca

View File

@@ -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 ; }