From 63325581339451d50049b85b39c5ed2ef80fc339 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Thu, 18 Jun 2020 14:09:26 +0200 Subject: [PATCH] add_attribute.pl no longer update userpassword --- add_attribute.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/add_attribute.pl b/add_attribute.pl index d62cbb7..ffb654f 100644 --- a/add_attribute.pl +++ b/add_attribute.pl @@ -48,8 +48,7 @@ while ($csv->getline ($data)) { my $civilite = $row->{civilite} ? $row->{civilite} : "UNDEFINED" ; my $phoneNumber = $row->{telephoneNumber} ? $row->{telephoneNumber} : "UNDEFINED" ; my $birthDate = $row->{birthDate} ? $row->{birthDate} : "UNDEFINED" ; - my $userPassword = $row->{userPassword} ; - if ( $userPassword ) { $userPassword= `slappasswd -n -s $userPassword` ; } + } warn "$dn\n" ; my $mesg = $ldap -> search( @@ -80,7 +79,6 @@ while ($csv->getline ($data)) { replace => [ 'reponse2' => $reponse2 ], replace => [ 'reponse3' => $reponse3 ], replace => [ 'civilite' => $civilite], - replace => [ 'userPassword' => $userPassword ], ] ) ; $mesg->code and warn $dn."\t".$mesg->error;