X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_passwd%2Ffs_passwd_server;h=f4b67ae98d865aa660c65327b7f40b627be43b7f;hb=04ac51dff5dd29a1c674168f5d3396acbb158dbc;hp=42f930e6d3983052c5998c8dce516ece282eb7b0;hpb=9d0bb3df7e808506ee1bb758973a9fba66b6b448;p=freeside.git diff --git a/fs_passwd/fs_passwd_server b/fs_passwd/fs_passwd_server index 42f930e6d..f4b67ae98 100755 --- a/fs_passwd/fs_passwd_server +++ b/fs_passwd/fs_passwd_server @@ -12,7 +12,7 @@ use strict; use IO::Handle; -use FS::SSH qw(sshopen2); +use Net::SSH qw(sshopen2); use FS::UID qw(adminsuidsetup); use FS::Record qw(qsearchs); use FS::svc_acct; @@ -22,7 +22,8 @@ adminsuidsetup $user; my($shellmachine)=shift or die &usage; -$SIG{CHLD} = sub { wait() }; +#causing trouble for some folks +#$SIG{CHLD} = sub { wait() }; my($fs_passwdd)="/usr/local/sbin/fs_passwdd"; @@ -57,7 +58,7 @@ while (1) { unless ( $svc_acct ) { print $writer "Incorrect password.\n"; next; } my(%hash)=$svc_acct->hash; - my($new_svc_acct) = create FS::svc_acct ( \%hash ); + my($new_svc_acct) = new FS::svc_acct ( \%hash ); $new_svc_acct->setfield('_password',$new_password) if $new_password && $new_password ne $old_password; $new_svc_acct->setfield('finger',$new_gecos) if $new_gecos;