diff options
author | ivan <ivan> | 2002-08-24 07:43:18 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-08-24 07:43:18 +0000 |
commit | 04b8684b43afb358a77fe1af8dea18519111ef54 (patch) | |
tree | 13d232bf31ab473aa469ba87d83c48cd36c1c13c | |
parent | 86dccb51c86156fcf06b981a48fd2a40d204cc53 (diff) |
allow $domain as a variable in commands
-rw-r--r-- | FS/FS/part_export/shellcommands.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/part_export/shellcommands.pm b/FS/FS/part_export/shellcommands.pm index 869544da5..d69848f22 100644 --- a/FS/FS/part_export/shellcommands.pm +++ b/FS/FS/part_export/shellcommands.pm @@ -30,6 +30,7 @@ sub _export_command { ${$_} = $svc_acct->getfield($_) foreach $svc_acct->fields; } $finger = shell_quote $finger; + $domain = $svc_acct->domain; $crypt_password = ''; #surpress "used only once" warnings $crypt_password = crypt( $svc_acct->_password, $saltset[int(rand(64))].$saltset[int(rand(64))] ); @@ -52,6 +53,7 @@ sub _export_replace { ${"new_$_"} = $new->getfield($_) foreach $new->fields; } $new_finger = shell_quote $new_finger; + $new_domain = $new->domain; $new_crypt_password = ''; #surpress "used only once" warnings $new_crypt_password = crypt( $new->_password, $saltset[int(rand(64))].$saltset[int(rand(64))]); |