don't allow uid changes when usermod_pwonly set
[freeside.git] / FS / FS / part_export / shellcommands.pm
index edc9440..8d9795a 100644 (file)
@@ -90,6 +90,9 @@ sub _export_replace {
     if ( $old_domain ne $new_domain ) {
       $error ||= "can't change domain";
     }
+    if ( $old_uid != $new_uid ) {
+      $error ||= "can't change uid";
+    }
     return $error. ' ('. $self->exporttype. ' to '. $self->machine. ')'
       if $error;
   }