projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
send_email export, RT#10884
[freeside.git]
/
FS
/
FS
/
part_export
/
everyone_net.pm
diff --git
a/FS/FS/part_export/everyone_net.pm
b/FS/FS/part_export/everyone_net.pm
index
221940d
..
e04318e
100644
(file)
--- a/
FS/FS/part_export/everyone_net.pm
+++ b/
FS/FS/part_export/everyone_net.pm
@@
-10,6
+10,8
@@
tie my %options, 'Tie::IxHash',
'clientID' => { label=>'clientID' },
'password' => { label=>'Password' },
#'workgroup' => { label=>'Default Workgroup' },
'clientID' => { label=>'clientID' },
'password' => { label=>'Password' },
#'workgroup' => { label=>'Default Workgroup' },
+ 'debug' => { label=>'Enable debugging',
+ type=>'checkbox' },
;
%info = (
;
%info = (
@@
-51,6
+53,9
@@
sub _xrc_command {
eval "use Net::XRC qw(:types);";
return $@ if $@;
eval "use Net::XRC qw(:types);";
return $@ if $@;
+ local($Net::XRC::DEBUG) = 1
+ if $self->option('debug');
+
my $xrc = new Net::XRC (
'clientID' => $self->option('clientID'),
'password' => $self->option('password'),
my $xrc = new Net::XRC (
'clientID' => $self->option('clientID'),
'password' => $self->option('password'),
@@
-82,7
+87,6
@@
sub _export_replace {
$self->_xrc_command( 'setUserPassword',
$new->domain,
$self->_xrc_command( 'setUserPassword',
$new->domain,
- $domain_clientID,
string($new->username),
string($new->_password),
);
string($new->username),
string($new->_password),
);
@@
-108,7
+112,6
@@
sub _export_suspend {
$self->_xrc_command( 'suspendUser',
$svc_acct->domain,
$self->_xrc_command( 'suspendUser',
$svc_acct->domain,
- $domain_clientID,
string($svc_acct->username),
);
}
string($svc_acct->username),
);
}