X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fshellcommands_withdomain.pm;h=7c5d9045f8b1bdf84e16616d5b150dfac40ae9c8;hb=b57b4b058ee83adb39f66d26d27f249f027f23cf;hp=8a56bab1cf3018ccd6e65174805650538f91c55e;hpb=e53cf6b04ea8c6f10c331d46372c486128478df0;p=freeside.git diff --git a/FS/FS/part_export/shellcommands_withdomain.pm b/FS/FS/part_export/shellcommands_withdomain.pm index 8a56bab1c..7c5d9045f 100644 --- a/FS/FS/part_export/shellcommands_withdomain.pm +++ b/FS/FS/part_export/shellcommands_withdomain.pm @@ -29,9 +29,12 @@ tie my %options, 'Tie::IxHash', type =>'textarea', #default=>"$_password\n$_password\n", }, - 'usermod_pwonly' => { label=>'Disallow username changes', + 'usermod_pwonly' => { label=>'Disallow username, domain, uid, dir and RADIUS group changes', type =>'checkbox', }, + 'usermod_nousername' => { label=>'Disallow just username changes', + type =>'checkbox', + }, 'suspend' => { label=>'Suspension command', default=>'', }, @@ -44,6 +47,10 @@ tie my %options, 'Tie::IxHash', 'unsuspend_stdin' => { label=>'Unsuspension command STDIN', default=>'', }, + 'crypt' => { label => 'Default password encryption', + type=>'select', options=>[qw(crypt md5)], + default => 'crypt', + }, ; %info = ( @@ -73,7 +80,7 @@ the same username with different domains. You will need to this.form.useradd_stdin.value = ""; this.form.userdel.value = "/usr/local/ispman/bin/ispman.delUser -d $domain $username"; this.form.userdel_stdin.value=""; - this.form.usermod.value = "/usr/local/ispman/bin/ispman.passwd.user $username\\\@$domain $new_quoted_password"; + this.form.usermod.value = "/usr/local/ispman/bin/ispman.passwd.user $new_username\\\@$new_domain $new_quoted_password"; this.form.usermod_stdin.value = ""; this.form.usermod_pwonly.checked = true; '> @@ -85,8 +92,8 @@ The following variables are available for interpolation (prefixed with
  • $username
  • $domain
  • $_password -
  • $quoted_password - unencrypted password quoted for the shell -
  • $crypt_password - encrypted password +
  • $quoted_password - unencrypted password, already quoted for the shell (do not add additional quotes) +
  • $crypt_password - encrypted password, already quoted for the shell (do not add additional quotes)
  • $uid
  • $gid
  • $finger - GECOS, already quoted for the shell (do not add additional quotes) @@ -95,6 +102,7 @@ The following variables are available for interpolation (prefixed with
  • $dir - home directory
  • $shell
  • $quota +
  • @radius_groups
  • All other fields in svc_acct are also available. END