Hello,
the task is to change common names in active directory via perl script. The problem is that I can retrieve data with my script but can't change CN. During execution I have not any errors. Here is my code:
$ldap->modify($dn, replace => { "cn" => $data_concat } );
if ($?==0){
print " $cn successfully changed to => $data_concat \n";
}
if ($?>0){
print "there were problems during changes of $cn, please check ... ";
}
Give advice!
the task is to change common names in active directory via perl script. The problem is that I can retrieve data with my script but can't change CN. During execution I have not any errors. Here is my code:
$ldap->modify($dn, replace => { "cn" => $data_concat } );
if ($?==0){
print " $cn successfully changed to => $data_concat \n";
}
if ($?>0){
print "there were problems during changes of $cn, please check ... ";
}
Give advice!